-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (45 loc) · 1.29 KB
/
setup.py
File metadata and controls
50 lines (45 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import re
from setuptools import setup
requirements = []
with open('requirements.txt') as f:
requirements = f.read().splitlines()
version = ''
with open('mal/__init__.py') as f:
match = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE)
if match is not None:
version = match.group(1)
else:
raise RuntimeError('no version found')
readme = ''
with open('README.md') as f:
readme = f.read()
# keep this coherent with the requirements.txt in the docs
extras_require = {
'docs': [
'sphinx==7.1.0',
'sphinx-rtd-theme==1.3.0',
]
}
setup(
name='mal-api.py',
author='Skylake-dev',
url='https://github.com/Skylake-dev/mal.py',
version=version,
packages=['mal'],
license='MIT',
description='A MyAnimeListAPI wrapper written in Python.',
long_description=readme,
long_description_content_type='text/markdown',
install_requires=requirements,
extras_require=extras_require,
python_requires='>=3.8.0',
include_package_data=True,
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries',
'Typing :: Typed'
]
)