-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
69 lines (56 loc) · 1.88 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
from pathlib import Path
from setuptools import setup
from setuptools import find_packages
here = Path(__file__).absolute().parent
EXTRAS = frozenset({
'third_party',
})
def extras_require(all_extras=EXTRAS):
""" Get map of all extra requirements
"""
return {
x: requirements(here / 'requirements' / 'extras' / f'{x}.txt') for x in all_extras
}
def requirements(at_path: Path):
with at_path.open() as f:
rows = f.read().strip().split('\n')
requires = []
for row in rows:
row = row.strip()
if row and not (row.startswith('#') or row.startswith('http')):
requires.append(row)
return requires
with (here / 'README.rst').open() as f:
README = f.read()
# Setup
# ----------------------------
setup(name='typeit',
version='3.11.1.3',
description='typeit brings typed data into your project',
long_description=README,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Operating System :: POSIX',
],
author='Maxim Avanov',
author_email='maxim.avanov@gmail.com',
url='https://github.com/avanov/typeit',
keywords='utils typing json yaml serialization deserialization structured-data',
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
zip_safe=False,
test_suite='tests',
tests_require=['pytest', 'coverage'],
install_requires=requirements(here / 'requirements' / 'minimal.txt'),
extras_require=extras_require(),
entry_points={
'console_scripts': [
'typeit = typeit.cli:main'
],
}
)