forked from Sipay/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (40 loc) · 1.37 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
from pathlib import Path
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
from setuptools import find_packages
from setuptools import setup
from os import path
def read_file(filename):
here = path.abspath(path.dirname(__file__))
with open(path.join(here, filename), encoding='utf-8') as f:
return f.read()
def requirements(filename):
"""Parse requirements from requirements.txt."""
path = str(Path(filename))
reqs = parse_requirements(path, session=False)
return [str(req.requirement) for req in reqs]
setup(
name='sipay',
version=read_file('VERSION'),
description='Python SDK',
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
author='Sipay Plus SL',
author_email='[email protected]',
url='https://github.com/sipay/python-sdk',
download_url='https://github.com/sipay/python-sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3.6',
],
python_requires='>=3.6',
platforms=['linux'],
packages=['sipay'] + list(map(lambda x: "sipay."+x, find_packages('sipay'))), # noqa
install_requires=requirements('requirements.txt'),
dependency_links=[],
data_files={},
include_package_data=True,
zip_safe=False
)