-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (32 loc) · 1.09 KB
/
setup.py
File metadata and controls
46 lines (32 loc) · 1.09 KB
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
from pathlib import Path
from setuptools import setup
from setuptools import find_packages
from pip.req import parse_requirements
from pip.download import PipSession
def requirements(filename):
"""Parse requirements from requirements.txt."""
path = str(Path(filename))
reqs = parse_requirements(path, session=PipSession())
return [str(req.req) for req in reqs]
setup(
name='sipay',
version=Path('VERSION').read_text().strip(),
description='Python SDK',
long_description=Path('README.md').read_text(),
author='Sipay Plus SL',
author_email='develop@sipay.es',
url='https://github.com/sipay/python-sdk',
download_url='https://github.com/sipay/python-sdk',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.5'
],
python_requires='>=3.5',
platforms=['linux'],
packages=['sipay'] + list(map(lambda x: "sipay."+x, find_packages('sipay'))),
install_requires=requirements('requirements.txt'),
dependency_links=[],
data_files={},
include_package_data=True,
zip_safe=False
)