forked from route4me/route4me-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·68 lines (57 loc) · 1.93 KB
/
setup.py
File metadata and controls
executable file
·68 lines (57 loc) · 1.93 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8 -*-
import os
from setuptools import setup
from setuptools import find_packages
from VERSION import PROJECT
from VERSION import COPYRIGHT
from VERSION import AUTHOR
from VERSION import AUTHOR_EMAIL
from VERSION import TITLE
from VERSION import LICENSE
from VERSION import RELEASE_STRING
def read(file_name):
folder = os.path.dirname(__file__)
fullname = os.path.join(folder, file_name)
with open(fullname) as f:
return f.read()
def rewrite_version():
with open('VERSION.py', 'r') as inp:
txt = inp.read()
outname = os.path.join('route4me', 'version.py')
with open(outname, 'w') as out:
out.write(txt)
rewrite_version()
setup(
name=TITLE,
url='https://github.com/route4me/route4me-python-sdk',
bugtrack_url='https://github.com/route4me/route4me-python-sdk/issues',
copyright=COPYRIGHT,
author=AUTHOR,
description=PROJECT,
version=RELEASE_STRING,
author_email=AUTHOR_EMAIL,
license=LICENSE,
keywords="rout4me, python, sdk, api",
packages=find_packages(
include=['route4me', 'route4me.*'],
exclude=['*_test*'],
),
zip_safe=True,
platforms='any',
long_description=read('README.md'),
long_description_content_type='text/markdown',
classifiers=[
'Environment :: Other Environment',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules'],
test_suite="tests",
install_requires=['six', 'requests'],
)