-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
42 lines (35 loc) · 1.12 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
import ast
import pathlib
import setuptools
PROJECT_ROOT = pathlib.Path(__file__).parent
def _get_version():
with open('onfleet/_meta.py') as meta_file:
for line in meta_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.value
VERSION = _get_version() or '0.0.1'
README = (PROJECT_ROOT / 'README.md').read_text()
setuptools.setup(
name='pyonfleet',
version=VERSION,
author='James Li', # `setuptools` does not support using `author` as a list, nor 'contributors'
author_email='[email protected]',
description="Onfleet's Python API Wrapper Package",
long_description=README,
long_description_content_type='text/markdown',
url='http://docs.onfleet.com',
packages=setuptools.find_packages(),
include_package_data=True,
package_data={
'': ['*.json']
},
install_requires=[
'requests', 'ratelimit', 'backoff'
],
classifiers=[
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
license='LICENSE'
)