forked from EnterpriseyIntranet/nextcloud-API
-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
33 lines (28 loc) · 779 Bytes
/
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
"""
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('rm -rf dist build')
os.system('python %s sdist bdist_wheel' % (sys.argv[0]))
os.system('python3 %s sdist bdist_wheel' % (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/x-rst'
)