tts-utilities 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tts_utilities-0.3.2/.gitignore +188 -0
- tts_utilities-0.3.2/PKG-INFO +63 -0
- tts_utilities-0.3.2/README.md +41 -0
- tts_utilities-0.3.2/ci/sphinx_ignore_tags.txt +19 -0
- tts_utilities-0.3.2/docs/_static/bugfix.css +12 -0
- tts_utilities-0.3.2/docs/conf.py +71 -0
- tts_utilities-0.3.2/docs/index.rst +18 -0
- tts_utilities-0.3.2/docs/logger.rst +5 -0
- tts_utilities-0.3.2/docs/setup_from_pyproject.rst +5 -0
- tts_utilities-0.3.2/docs/test_utilities.rst +5 -0
- tts_utilities-0.3.2/docs/util.rst +5 -0
- tts_utilities-0.3.2/license.md +14 -0
- tts_utilities-0.3.2/pyproject.toml +44 -0
- tts_utilities-0.3.2/setup.cfg +4 -0
- tts_utilities-0.3.2/setup.py +17 -0
- tts_utilities-0.3.2/src/__init__.py +0 -0
- tts_utilities-0.3.2/src/tts_utilities/__init__.py +0 -0
- tts_utilities-0.3.2/src/tts_utilities/doc_checker.py +176 -0
- tts_utilities-0.3.2/src/tts_utilities/jnb_util.py +15 -0
- tts_utilities-0.3.2/src/tts_utilities/logger.py +109 -0
- tts_utilities-0.3.2/src/tts_utilities/setup_from_pyproject.py +86 -0
- tts_utilities-0.3.2/src/tts_utilities/test/__init__.py +0 -0
- tts_utilities-0.3.2/src/tts_utilities/test/conftest.py +0 -0
- tts_utilities-0.3.2/src/tts_utilities/test/test_doc_checker.py +193 -0
- tts_utilities-0.3.2/src/tts_utilities/test/test_logger.py +74 -0
- tts_utilities-0.3.2/src/tts_utilities/test/test_setup_from_pyproject.py +103 -0
- tts_utilities-0.3.2/src/tts_utilities/test/test_unit_test_utilities.py +95 -0
- tts_utilities-0.3.2/src/tts_utilities/test/test_util.py +41 -0
- tts_utilities-0.3.2/src/tts_utilities/test_utilities.py +78 -0
- tts_utilities-0.3.2/src/tts_utilities/util.py +17 -0
- tts_utilities-0.3.2/src/tts_utilities.egg-info/PKG-INFO +63 -0
- tts_utilities-0.3.2/src/tts_utilities.egg-info/SOURCES.txt +33 -0
- tts_utilities-0.3.2/src/tts_utilities.egg-info/dependency_links.txt +1 -0
- tts_utilities-0.3.2/src/tts_utilities.egg-info/requires.txt +7 -0
- tts_utilities-0.3.2/src/tts_utilities.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
docsrc/_build/
|
|
75
|
+
|
|
76
|
+
# PyBuilder
|
|
77
|
+
.pybuilder/
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# IPython
|
|
84
|
+
profile_default/
|
|
85
|
+
ipython_config.py
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
89
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
90
|
+
.python-version
|
|
91
|
+
|
|
92
|
+
# pipenv
|
|
93
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
94
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
95
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
96
|
+
# install all needed dependencies.
|
|
97
|
+
#Pipfile.lock
|
|
98
|
+
|
|
99
|
+
# poetry
|
|
100
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
101
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
102
|
+
# commonly ignored for libraries.
|
|
103
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
104
|
+
#poetry.lock
|
|
105
|
+
|
|
106
|
+
# pdm
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
108
|
+
#pdm.lock
|
|
109
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
110
|
+
# in version control.
|
|
111
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
112
|
+
.pdm.toml
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
#.idea/
|
|
163
|
+
|
|
164
|
+
env
|
|
165
|
+
venv
|
|
166
|
+
|
|
167
|
+
# IDEs and editors
|
|
168
|
+
.idea/
|
|
169
|
+
.vscode/
|
|
170
|
+
*.sublime-project
|
|
171
|
+
*.sublime-workspace
|
|
172
|
+
|
|
173
|
+
# Jupyter notebooks
|
|
174
|
+
.ipynb_checkpoints/
|
|
175
|
+
|
|
176
|
+
# Jupyter lab workspace
|
|
177
|
+
.jupyter/
|
|
178
|
+
|
|
179
|
+
# Miscellaneous
|
|
180
|
+
.DS_Store
|
|
181
|
+
Thumbs.db
|
|
182
|
+
._*
|
|
183
|
+
|
|
184
|
+
# office tmp files
|
|
185
|
+
~$*
|
|
186
|
+
|
|
187
|
+
#nfs temp files
|
|
188
|
+
.nfs*
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tts-utilities
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: A starter repo to help users quickly set up a Teamtools Studio project with common structure, configs, and package scaffolding.
|
|
5
|
+
Author: shanemb
|
|
6
|
+
Author-email: shanemb <shane.m.bonkowski@jpl.nasa.gov>, muszynsk <matt.muszynski@jpl.nasa.gov>
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: pytest
|
|
14
|
+
Requires-Dist: tomli
|
|
15
|
+
Requires-Dist: datetime
|
|
16
|
+
Requires-Dist: rich
|
|
17
|
+
Requires-Dist: ipynbname
|
|
18
|
+
Requires-Dist: toml
|
|
19
|
+
Requires-Dist: setuptools_scm
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
|
|
23
|
+
# Teamtools Studio Utilities
|
|
24
|
+
|
|
25
|
+

|
|
26
|
+
|
|
27
|
+
## About Teamtools Studio
|
|
28
|
+
|
|
29
|
+
Teamtools Studio Utilities is part of JPL's Teamtools Studio (TTS).
|
|
30
|
+
|
|
31
|
+
TTS is an effort originated in JPL's Planning and Execution section to centralize shared repositories across missions. This benefits JPL by reducing cost through reducing duplicated code, collaborating across missions, and unifying standards for development and design across JPL.
|
|
32
|
+
|
|
33
|
+
Although Planning and Execution is primarily concerned with flight operations, the TTS suite has been generalized and atomized to the point where many of these tools are applicable during other mission phases and even in non-spaceflight contexts. Through our work flying space missions, we hope to provide tools to the open source community that have utility in data analysis or planning for any complex system where failure is not an option.
|
|
34
|
+
|
|
35
|
+
For more infomation on how to contribute, and how these libraries form a complete ecosystem for high reliability data analysis, see the [Full TTS Documentation](https://github.com/NASA-JPL-Teamtools-Studio/teamtools-documentation/).
|
|
36
|
+
|
|
37
|
+
## What is Teamtools Studio Utilities?
|
|
38
|
+
|
|
39
|
+
### Overview
|
|
40
|
+
|
|
41
|
+
Teamtools Studio Utilities is a helper library to improve the quality of life of Teamtools Studio developers. It is
|
|
42
|
+
required by all Teamtools Studio libraries in order to support versions of Python back to 3.6 while still using a modern
|
|
43
|
+
method of packaging. All TTS libraries include both a pyproject.toml and setup.py file, but only the pyproject.toml is
|
|
44
|
+
a source of truth. setup.py only calls a utility from this library to convert the information in the toml file into the
|
|
45
|
+
Pythonic format expected by Python versions prior to 3.8.
|
|
46
|
+
|
|
47
|
+
The most important thing here for most developrs is the common TTS logger.
|
|
48
|
+
|
|
49
|
+
### Projects Currently Supported
|
|
50
|
+
|
|
51
|
+
* Europa Clipper
|
|
52
|
+
* Mars 2020/Perseverance
|
|
53
|
+
* Mars Sample Return/Sample Retrieval Lander
|
|
54
|
+
* Mars Science Laboratory/Curiosity
|
|
55
|
+
* Mars Reconnaisance Orbiter
|
|
56
|
+
* NISAR
|
|
57
|
+
* Orbiting Carbon Observatory 2 (OCO-2)
|
|
58
|
+
|
|
59
|
+
## Architecture
|
|
60
|
+
|
|
61
|
+
### TTS dependencies
|
|
62
|
+
|
|
63
|
+
* None
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Teamtools Studio Utilities
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
## About Teamtools Studio
|
|
6
|
+
|
|
7
|
+
Teamtools Studio Utilities is part of JPL's Teamtools Studio (TTS).
|
|
8
|
+
|
|
9
|
+
TTS is an effort originated in JPL's Planning and Execution section to centralize shared repositories across missions. This benefits JPL by reducing cost through reducing duplicated code, collaborating across missions, and unifying standards for development and design across JPL.
|
|
10
|
+
|
|
11
|
+
Although Planning and Execution is primarily concerned with flight operations, the TTS suite has been generalized and atomized to the point where many of these tools are applicable during other mission phases and even in non-spaceflight contexts. Through our work flying space missions, we hope to provide tools to the open source community that have utility in data analysis or planning for any complex system where failure is not an option.
|
|
12
|
+
|
|
13
|
+
For more infomation on how to contribute, and how these libraries form a complete ecosystem for high reliability data analysis, see the [Full TTS Documentation](https://github.com/NASA-JPL-Teamtools-Studio/teamtools-documentation/).
|
|
14
|
+
|
|
15
|
+
## What is Teamtools Studio Utilities?
|
|
16
|
+
|
|
17
|
+
### Overview
|
|
18
|
+
|
|
19
|
+
Teamtools Studio Utilities is a helper library to improve the quality of life of Teamtools Studio developers. It is
|
|
20
|
+
required by all Teamtools Studio libraries in order to support versions of Python back to 3.6 while still using a modern
|
|
21
|
+
method of packaging. All TTS libraries include both a pyproject.toml and setup.py file, but only the pyproject.toml is
|
|
22
|
+
a source of truth. setup.py only calls a utility from this library to convert the information in the toml file into the
|
|
23
|
+
Pythonic format expected by Python versions prior to 3.8.
|
|
24
|
+
|
|
25
|
+
The most important thing here for most developrs is the common TTS logger.
|
|
26
|
+
|
|
27
|
+
### Projects Currently Supported
|
|
28
|
+
|
|
29
|
+
* Europa Clipper
|
|
30
|
+
* Mars 2020/Perseverance
|
|
31
|
+
* Mars Sample Return/Sample Retrieval Lander
|
|
32
|
+
* Mars Science Laboratory/Curiosity
|
|
33
|
+
* Mars Reconnaisance Orbiter
|
|
34
|
+
* NISAR
|
|
35
|
+
* Orbiting Carbon Observatory 2 (OCO-2)
|
|
36
|
+
|
|
37
|
+
## Architecture
|
|
38
|
+
|
|
39
|
+
### TTS dependencies
|
|
40
|
+
|
|
41
|
+
* None
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#When tts-build-sphinx-docs runs, it will collect all tags and branches and attempt to build
|
|
2
|
+
#docs for each in the gh-pages branch. This is a config file that allows developers to
|
|
3
|
+
#specifically exclude any branches or tags they need. Each line is the name of a tag or
|
|
4
|
+
#branch.
|
|
5
|
+
#
|
|
6
|
+
#This file makes no attemtpt to tell whether a line is a tag or a branch as TTS assumes that
|
|
7
|
+
#the naming conventions will always be different, and that tags should be tied to releases,
|
|
8
|
+
#so they should always have semvar names, whereas branches should be more descriptive using
|
|
9
|
+
#typical agile branch naming conventions.
|
|
10
|
+
#
|
|
11
|
+
#The most typical use case is to exclude tags that were created before you added the docs
|
|
12
|
+
#prerequisites, or to exclude the gh-pages branch itself since no code is expected to live
|
|
13
|
+
#there. All TTS repos are expected to have a gh-pages branch, but it is expected that it
|
|
14
|
+
#will always be managed by tts-build-sphinx-docs. You do not need to manually create
|
|
15
|
+
#a gh-pages branch because tts-build-sphinx-docs will create one if it does not exist.
|
|
16
|
+
#
|
|
17
|
+
#tts-build-sphinx-docs will also always remove all files from gh-pages and rebuild all docs
|
|
18
|
+
#from scratch
|
|
19
|
+
gh-pages
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Resolves a bug where the text in the header
|
|
3
|
+
"[package name] [package version] documentation"
|
|
4
|
+
was getting stacked up on top of itself when the variable portions were too long. Something with floats
|
|
5
|
+
and elements not taking up the whole width of their contents.
|
|
6
|
+
|
|
7
|
+
Needed to add it because setuptools-scm version names can be very long, especially for versions that
|
|
8
|
+
are build off of a commit with no tag
|
|
9
|
+
*/
|
|
10
|
+
.navbar-header-items__start {
|
|
11
|
+
width: auto;
|
|
12
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# TTS-specifc add ons
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
from setuptools_scm import get_version
|
|
5
|
+
import toml
|
|
6
|
+
|
|
7
|
+
# Configuration file for the Sphinx documentation builder.
|
|
8
|
+
#
|
|
9
|
+
# This file only contains a selection of the most common options. For a full
|
|
10
|
+
# list see the documentation:
|
|
11
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
12
|
+
|
|
13
|
+
# -- Path setup --------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
|
16
|
+
# add these directories to sys.path here. If the directory is relative to the
|
|
17
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
18
|
+
#
|
|
19
|
+
|
|
20
|
+
import os
|
|
21
|
+
import sys
|
|
22
|
+
import importlib.metadata
|
|
23
|
+
sys.path.insert(0, os.path.abspath('..'))
|
|
24
|
+
|
|
25
|
+
# -- Project information -----------------------------------------------------
|
|
26
|
+
|
|
27
|
+
pyproject = toml.load(Path(__file__).parent.parent.joinpath("pyproject.toml"))
|
|
28
|
+
project = pyproject["project"]["name"]
|
|
29
|
+
release = get_version(root='..', relative_to=__file__)
|
|
30
|
+
version = '.'.join(release.split('.')[:2])
|
|
31
|
+
|
|
32
|
+
copyright = f'{datetime.now().strftime('%Y')} JPL'
|
|
33
|
+
author = 'JPL Teamtools Studio'
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# -- General configuration ---------------------------------------------------
|
|
37
|
+
|
|
38
|
+
# Add any Sphinx extension module names here, as strings. They can be
|
|
39
|
+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
40
|
+
# ones.
|
|
41
|
+
extensions = ['sphinx.ext.autodoc']
|
|
42
|
+
|
|
43
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
44
|
+
templates_path = ['_templates']
|
|
45
|
+
|
|
46
|
+
# List of patterns, relative to source directory, that match files and
|
|
47
|
+
# directories to ignore when looking for source files.
|
|
48
|
+
# This pattern also affects html_static_path and html_extra_path.
|
|
49
|
+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
|
50
|
+
|
|
51
|
+
# The master toctree document.
|
|
52
|
+
master_doc = 'index'
|
|
53
|
+
|
|
54
|
+
pygments_style = 'sphinx'
|
|
55
|
+
# html_theme = 'nature'
|
|
56
|
+
# html_theme = 'sphinx_material'
|
|
57
|
+
html_theme = 'pydata_sphinx_theme'
|
|
58
|
+
|
|
59
|
+
# -- Options for HTML output -------------------------------------------------
|
|
60
|
+
|
|
61
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
62
|
+
# a list of builtin themes.
|
|
63
|
+
#
|
|
64
|
+
|
|
65
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
|
66
|
+
# relative to this directory. They are copied after the builtin static files,
|
|
67
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
68
|
+
html_static_path = ['_static']
|
|
69
|
+
html_css_files = ['bugfix.css']
|
|
70
|
+
html_copy_source = False
|
|
71
|
+
html_show_sourcelink = False
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Welcome to the Teamtools Starter Template documentation!
|
|
2
|
+
=============================================================
|
|
3
|
+
|
|
4
|
+
.. toctree::
|
|
5
|
+
:maxdepth: 2
|
|
6
|
+
:caption: Contents:
|
|
7
|
+
|
|
8
|
+
logger
|
|
9
|
+
util
|
|
10
|
+
setup_from_pyproject
|
|
11
|
+
test_utilities
|
|
12
|
+
|
|
13
|
+
Indices and tables
|
|
14
|
+
==================
|
|
15
|
+
|
|
16
|
+
* :ref:`genindex`
|
|
17
|
+
* :ref:`modindex`
|
|
18
|
+
* :ref:`search`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Copyright (c) 2025 California Institute of Technology (Caltech). U.S. Government sponsorship acknowledged.
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
8
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
Neither the name of Caltech nor its operating division, the Jet Propulsion Laboratory, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Open Source License Approved by Caltech/JPL APACHE LICENSE, VERSION 2.0
|
|
11
|
+
|
|
12
|
+
Text version: https://www.apache.org/licenses/LICENSE-2.0.txt
|
|
13
|
+
SPDX short identifier: Apache-2.0
|
|
14
|
+
OSI Approved License: https://opensource.org/licenses/Apache-2.0
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "tts-utilities"
|
|
3
|
+
description = "A starter repo to help users quickly set up a Teamtools Studio project with common structure, configs, and package scaffolding."
|
|
4
|
+
readme = "README.md"
|
|
5
|
+
requires-python = ">=3.6"
|
|
6
|
+
license = {text = "Apache-2.0"}
|
|
7
|
+
classifiers = [
|
|
8
|
+
"Programming Language :: Python :: 3",
|
|
9
|
+
"License :: OSI Approved :: Apache Software License",
|
|
10
|
+
"Operating System :: OS Independent",
|
|
11
|
+
]
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "shanemb", email = "shane.m.bonkowski@jpl.nasa.gov" },
|
|
14
|
+
{ name = "muszynsk", email = "matt.muszynski@jpl.nasa.gov" },
|
|
15
|
+
]
|
|
16
|
+
dependencies = [
|
|
17
|
+
"pytest",
|
|
18
|
+
"tomli",
|
|
19
|
+
"datetime",
|
|
20
|
+
"rich",
|
|
21
|
+
"ipynbname",
|
|
22
|
+
"toml",
|
|
23
|
+
"setuptools_scm"
|
|
24
|
+
]
|
|
25
|
+
dynamic = ["version"]
|
|
26
|
+
|
|
27
|
+
[tool.setuptools]
|
|
28
|
+
package-dir = {"" = "src"}
|
|
29
|
+
|
|
30
|
+
[tool.setuptools.packages.find]
|
|
31
|
+
where = ["src"]
|
|
32
|
+
|
|
33
|
+
[tool.setuptools_scm]
|
|
34
|
+
version_scheme = "guess-next-dev"
|
|
35
|
+
local_scheme = "no-local-version"
|
|
36
|
+
|
|
37
|
+
[build-system]
|
|
38
|
+
requires = [
|
|
39
|
+
"setuptools",
|
|
40
|
+
"setuptools_scm",
|
|
41
|
+
"toml",
|
|
42
|
+
"wheel",
|
|
43
|
+
]
|
|
44
|
+
build-backend = "setuptools.build_meta"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#Helper file to support installing locally on older Python systems
|
|
2
|
+
#once we can move 100% to a system like pyproject.toml or poetry
|
|
3
|
+
#we can ditch this file and setup_from_pyproject. But as long
|
|
4
|
+
#as we have missions on 3.6.4, we should keep it in place so
|
|
5
|
+
#we can dev locally on those projects and install this locally
|
|
6
|
+
import os
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
# Add src/ to sys.path so the package can be found.
|
|
10
|
+
# this is a special need for tts-deployments only.
|
|
11
|
+
# don't copy this line into other repos. Those other repos
|
|
12
|
+
# require tts-deployments as a build dependency, but
|
|
13
|
+
# tts-deployments can't require itself, so we have to
|
|
14
|
+
# import it locally like this at build time.
|
|
15
|
+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
|
|
16
|
+
from tts_utilities.setup_from_pyproject import setup_from_pyproject
|
|
17
|
+
setup_from_pyproject()
|
|
File without changes
|
|
File without changes
|