forked from Dosugamea/NEXT-OCS-API-forPy
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (26 loc) · 697 Bytes
/
setup.py
File metadata and controls
31 lines (26 loc) · 697 Bytes
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
"""
Setup script
Usage :
python setup.py build
python setup.py install
For repository admin:
python setup.py publish
For testing:
test.sh
"""
import os
import sys
from setuptools import setup, find_packages
# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
# see https://twine.readthedocs.io/en/latest/
os.system('%s %s sdist bdist_wheel' % (sys.executable, sys.argv[0]))
os.system('twine upload dist/*')
sys.exit()
setup(
# see setup.cfg
# some variables are defined here for retro compat with setuptools >= 33
package_dir = {'': 'src'},
packages=find_packages(where=r'./src'),
long_description_content_type = 'text/markdown'
)