-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
50 lines (39 loc) · 1.4 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
import re
from glob import glob
from setuptools import setup, find_packages
data_files = []
# declare your scripts:
# scripts in bin/ with a shebang containing python will be
# recognized automatically
scripts = []
for fname in glob('bin/*'):
with open(fname, 'r') as fh:
if re.search(r'^#!.*python', fh.readline()):
scripts.append(fname)
setup(name="SSMDocumentGenerator",
version="1.0",
# declare your packages
packages=find_packages(where="src", exclude=("test",)),
package_dir={"": "src"},
# declare your scripts
scripts=scripts,
# include data files
data_files=data_files,
# set up the shebang
options={
# make sure the right shebang is set for the scripts - use the environment default Python
'build_scripts': {
'executable': '/apollo/sbin/envroot "$ENVROOT/bin/python"',
},
},
# Ship the python 3.6 script in $ROOT/bin. Remove this flag to skip
# installing scripts into $ROOT/bin/
#
# Note that if your versionset doesn't build for 3.6, this won't do the right thing!
root_script_source_version="python3.6",
# When we have something that's only for one version, use 3.6
default_python="python3.6",
test_command='brazilpython_pytest',
# Use Sphinx for docs
doc_command='build_sphinx',
include_package_data=True)