-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf.py
132 lines (105 loc) · 4.66 KB
/
conf.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# This is the main settings file for package setup and PyPi deployment.
# Sphinx configuration is in the docsrc folder
# Main package name
PACKAGE_NAME = "sensitivity"
# Directory name of package
PACKAGE_DIRECTORY = "sensitivity"
# Name of Repo
REPO_NAME = "sensitivity"
# Github username of the user which owns the repo
REPO_USERNAME = "nickderobertis"
# List of maintainers of package, by default the same user which owns the repo
# Pull requests raised by these maintainers without the "no auto merge" label will be automatically merged
REPO_MAINTAINERS = [
REPO_USERNAME,
]
# Package version in the format (major, minor, release)
PACKAGE_VERSION_TUPLE = (0, 2, 8)
# Short description of the package
PACKAGE_SHORT_DESCRIPTION = "Python Sensitivity Analysis - Gradient DataFrames and Hex-Bin Plots"
# Long description of the package for PyPI
# Set to 'auto' to use README.md as the PyPI description
# Any other string will be used directly as the PyPI description
PACKAGE_DESCRIPTION = 'auto'
# Author
PACKAGE_AUTHOR = "Nick DeRobertis"
# Author email
PACKAGE_AUTHOR_EMAIL = "[email protected]"
# Name of license for package
PACKAGE_LICENSE = 'MIT'
# Classifications for the package, see common settings below
PACKAGE_CLASSIFIERS = [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
]
# Add any third party packages you use in requirements here
PACKAGE_INSTALL_REQUIRES = [
# Include the names of the packages and any required versions in as strings
# e.g.
# 'package',
# 'otherpackage>=1,<2'
'pandas>=1',
'matplotlib',
'IPython',
'tqdm',
]
# Add any third party packages you use in requirements for optional features of your package here
# Keys should be name of the optional feature and values are lists of required packages
# E.g. {'feature1': ['pandas', 'numpy'], 'feature2': ['matplotlib']}
OPTIONAL_PACKAGE_INSTALL_REQUIRES = {
}
# Packages added to Binder environment so that examples can be executed in Binder
# By default, takes this package (PACKAGE_NAME)
# everything the package requires (PACKAGE_INSTALL_REQUIRES) and everything
# that the package optionally requires (OPTIONAL_PACKAGE_INSTALL_REQUIRES) and adds them all to one list
# If a custom list is passed, it must include all the requirements for the Binder environment
BINDER_ENVIRONMENT_REQUIRES = list(
set(
PACKAGE_INSTALL_REQUIRES + [PACKAGE_NAME] +
[package for package_list in OPTIONAL_PACKAGE_INSTALL_REQUIRES.values() for package in package_list]
)
)
# Sphinx executes all the import statements as it generates the documentation. To avoid having to install all
# the necessary packages, third-party packages can be passed to mock imports to just skip the import.
# By default, everything in PACKAGE_INSTALL_REQUIRES will be passed as mock imports, along with anything here.
# This variable is useful if a package includes multiple packages which need to be ignored.
DOCS_OTHER_MOCK_IMPORTS = [
# Include the names of the packages as they would be imported, e.g.
# 'package',
]
# Add any Python scripts which should be exposed to the command line in the format:
# CONSOLE_SCRIPTS = ['funniest-joke=funniest.command_line:main']
CONSOLE_SCRIPTS = [],
# Add any arbitrary scripts to be exposed to the command line in the format:
# SCRIPTS = ['bin/funniest-joke']
SCRIPTS = []
# Optional Google Analytics tracking ID for documentation
# Go to https://analytics.google.com/ and set it up for your documentation URL
# Set to None or empty string to not use this
GOOGLE_ANALYTICS_TRACKING_ID = "UA-158144725-1"
PACKAGE_URLS = {
'Code': f'https://github.com/{REPO_USERNAME}/{REPO_NAME}',
'Documentation': f'https://{REPO_USERNAME}.github.io/{REPO_NAME}'
}
# Url of logo
PACKAGE_LOGO_URL = ""
# Does not affect anything about the current package. Simply used for tracking when this repo was created off
# of the quickstart template, so it is easier to bring over new changes to the template.
_TEMPLATE_VERSION_TUPLE = (0, 9, 2)
if __name__ == '__main__':
# Store config as environment variables
env_vars = dict(locals())
# Imports after getting locals so that locals are only environment variables
import shlex
for name, value in env_vars.items():
quoted_value = shlex.quote(str(value))
print(f'export {name}={quoted_value};')