-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
72 lines (64 loc) · 2.96 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
import os
from setuptools import find_packages, setup
# Declare your non-python data files:
# Files underneath configuration/ will be copied into the build preserving the
# subdirectory structure if they exist.
data_files = []
for root, dirs, files in os.walk("configuration"):
data_files.append(
(os.path.relpath(root, "configuration"), [os.path.join(root, f) for f in files])
)
setup(
name="AwsGeminiScienceTransformerPrototype",
version="1.0",
# declare your packages
packages=find_packages(where="src", exclude=("test",)),
package_dir={"": "src"},
# include data files
data_files=data_files,
# declare your scripts
# If you want to create any Python executables in bin/, define them here.
# This is a three-step process:
#
# 1. Create the function you want to run on the CLI in src/aws_gemini_science_transformer_prototype/cli.py
# For convenience I usually recommend calling it main()
#
# 2. Uncomment this section of the setup.py arguments; this will create
# bin/AwsGeminiScienceTransformerPrototype (which you can obviously change!) as a script
# that will call your main() function, above.
#
# entry_points="""\
# [console_scripts]
# AwsGeminiScienceTransformerPrototype = aws_gemini_science_transformer_prototype.cli:main
# """,
#
# 3. Uncomment the Python interpreter and Python-setuptools in the
# dependencies section of your Config. This is necessary to guarantee the
# presence of a runtime interpreter and for the script generated by
# setuptools to find its function.
#
# Control whether to install scripts to $ENVROOT/bin. The valid values are:
# * "default-only": install scripts for the version corresponding to
# Python-default in your version set. If this package doesn't build for
# that version, you won't get root scripts.
# * True: always install scripts for some version of python that the package
# builds for (in practice, this will be the last version that is built).
# Note that in this case, you also need to ensure that the appropriate
# runtime interpreter is in the dependency closure of your environment.
# * <a specific python version, e.g. "python3.6" or "jython2.7">: only
# attempt to install root scripts for the specific interpreter version. If
# this package is in a version set where that interpreter is not enabled,
# you won't get root scripts. You almost certainly don't want this.
root_script_source_version="default-only",
# Use the pytest brazilpython runner. Provided by BrazilPython-Pytest.
test_command="brazilpython_pytest",
# Use custom sphinx command which adds an index.html that's compatible with
# code.amazon.com links.
doc_command="amazon_doc_utils_build_sphinx",
# Enable build-time format checking
check_format=False,
# Enable type checking
test_mypy=False,
# Enable linting at build time
test_flake8=False,
)