-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·36 lines (27 loc) · 977 Bytes
/
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
#!/usr/bin/env python
import os
from setuptools import setup
version_file = "marshmallow_autoschema/__version__.py"
version_data = {}
with open(version_file) as f:
code = compile(f.read(), version_file, 'exec')
exec(code, globals(), version_data)
def dep_list(filename):
out = []
path = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(path, filename)) as fp:
for line in fp:
clean = line.strip()
if clean:
out.append(clean)
return out
setup(name='marshmallow-autoschema',
version=version_data['__version__'],
description='Generate marshmallow schemas from type annotations and '
'decorators.',
author='Delve Labs inc.',
author_email='[email protected]',
url='https://github.com/delvelabs/marshmallow-autoschema',
packages=['marshmallow_autoschema'],
install_requires=dep_list("requirements.txt"),
license="MIT")