-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
33 lines (25 loc) · 917 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
#!/usr/bin/env python
import os
from setuptools import setup
version_file = "marshmallow_har/__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-har',
version=version_data['__version__'],
description='Simple set of marshmallow schemas to load/dump the HTTP Archive (HAR) format.',
author='Delve Labs inc.',
author_email='info@delvelabs.ca',
url='https://github.com/delvelabs/marshmallow-har',
packages=['marshmallow_har'],
install_requires=dep_list("requirements.txt"))