forked from alejandrogallo/python-doi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
60 lines (50 loc) · 1.74 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
def get_version(filename):
"""Extract the package version"""
with open(filename) as in_fh:
for line in in_fh:
if line.startswith('__version__'):
return line.split('=')[1].strip()[1:-1]
raise ValueError("Cannot extract version from %s" % filename)
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = []
dev_requirements = [
'coverage', 'pytest', 'pytest-cov==2.5.0', 'twine', 'pep8',
'flake8', 'wheel', 'mypy',
'sphinx', 'sphinx-autobuild', 'sphinx-autodoc-typehints',
'sphinx_rtd_theme']
version = get_version('./src/doi/__init__.py')
setup(
author="Alejandro Gallo",
author_email='[email protected]',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
description="Python package to work with Document Object Identifier (doi)",
install_requires=requirements,
extras_require={
'dev': dev_requirements,
},
license="GNU General Public License v3",
long_description=readme,
include_package_data=True,
keywords='doi',
name='python-doi',
package_data={"doi": ["py.typed"]},
packages=find_packages(where="src"),
package_dir={"": "src"},
url='https://github.com/papis/python-doi',
version=version,
zip_safe=False,
)