-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
61 lines (56 loc) · 2.05 KB
/
setup.py
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
51
52
53
54
55
56
57
58
59
60
61
import sys
from setuptools import setup, find_packages
import versioneer
# from https://github.com/pytest-dev/pytest-runner#conditional-requirement
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
short_description = "zenopy: A Python wrapper package for Zenodo API"
try:
with open("README.md", "r") as f:
long_description = f.read()
except FileNotFoundError:
long_description = short_description
with open('requirements.txt') as fd:
requirements = fd.read()
if __name__ == "__main__":
setup(
name='zenopy',
description=short_description,
author="Mohammad Mostafanejad",
author_email='[email protected]',
url='https://github.com/MolSSI/zenopy',
license="GNU Lesser General Public License v3",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(include=['zenopy']),
setup_requires=[] + pytest_runner,
include_package_data=True,
install_requires=requirements,
extras_require={
"docs": [
"sphinx==1.2.3",
"sphinxcontrib-napoleon",
"pydata-sphinx-theme",
"sphinx-design",
"sphinx-copybutton",
"numpydoc",
],
"tests": ["pytest", "pytest-cov"],
"lint": ["black"],
},
test_suite='tests',
tests_require=["pytest", "pytest-cov"],
keywords='zenopy',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
('License :: OSI Approved :: GNU Lesser General Public License v3 or '
'later (LGPLv3+)'),
'Natural Language :: English',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.10',
],
zip_safe=False,
long_description=long_description,
long_description_content_type="text/markdown",
)