This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
85 lines (68 loc) · 2.1 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
"pyrsi~=0.1.0",
"pycryptodome~=3.9.0",
"zstandard~=0.12.0",
"python-nubia==0.2b2",
"ipython"
]
setup_requirements = [
"setuptools-scm",
"sphinx==3.0.3"
]
test_requirements = []
if len(sys.argv) >= 2 and sys.argv[1] == 'docs':
import shutil
from sphinx.ext import apidoc
from subprocess import call
print("Auto-generating API docs")
proj_dir = os.path.dirname(os.path.realpath(__file__))
api_dir = os.path.join(proj_dir, 'docs', 'api')
shutil.rmtree(api_dir, ignore_errors=True)
_orig_sysargv = sys.argv
if len(sys.argv) > 2:
args = sys.argv[2:]
else:
args = ['-e', '-M']
args += ['-o', os.path.join(proj_dir, 'docs', 'api'), os.path.join(proj_dir, 'scdatatools')]
print(args)
apidoc.main(args)
print("Generated API docs - run `python setup.py build_sphinx` to build docs")
sys.exit(0)
setup(
author="Ventorvar",
author_email='ventorvar@gmail.com',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
],
description="Python tools for working with Star Citizen data files.",
install_requires=requirements,
license="MIT license",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='scdatatools',
name='scdatatools',
packages=find_packages(include=['scdatatools']),
entry_points={
'console_scripts': ['scdt=scdatatools.cli:main'],
},
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/ExterraGroup/scdatatools',
version='0.1.5',
zip_safe=True,
)