This repository has been archived by the owner on Dec 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (61 loc) · 1.96 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
62
63
64
65
66
67
68
69
import os
import pathlib
import shutil
import sys
from setuptools import find_packages, setup
here = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
print("Removing previous builds...")
if os.path.exists(os.path.join(here, 'dist')):
shutil.rmtree(os.path.join(here, 'dist'))
print("Building distribution...")
os.system('python setup.py sdist bdist_wheel')
print("Uploading the package to PyPi with Twine...")
os.system('twine upload dist/*')
print("Done !")
sys.exit()
with open(str(here / 'README.rst'), 'r') as f:
readme = f.read()
setup(
name='antidote_attrs',
use_scm_version=True,
setup_requires=['setuptools_scm'],
description='Attrs extension for Antidote.',
long_description=readme,
author='Benjamin Rabier',
url='https://github.com/Finistere/antidote_attrs',
packages=find_packages('src'),
package_dir={'': 'src'},
include_dirs=["src"],
install_requires=['antidote==0.4', 'attrs>=17.1'],
extras_require={
":python_version<'3.5'": ["typing"],
"docs": [
"sphinx",
"sphinx_autodoc_typehints",
"sphinx-rtd-theme",
"attrs"
],
"tests": [
"pytest",
"pytest-cov",
]
},
license='MIT',
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
),
keywords='dependency injection attrs antidote',
zip_safe=False,
)