sxscatalog 3.0.0__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.
- sxscatalog-3.0.0/.github/workflows/ci.yml +166 -0
- sxscatalog-3.0.0/.gitignore +179 -0
- sxscatalog-3.0.0/.nojekyll +0 -0
- sxscatalog-3.0.0/LICENSE.txt +22 -0
- sxscatalog-3.0.0/PKG-INFO +39 -0
- sxscatalog-3.0.0/README.md +12 -0
- sxscatalog-3.0.0/pyproject.toml +86 -0
- sxscatalog-3.0.0/scripts/catalog_notebook.py +379 -0
- sxscatalog-3.0.0/scripts/custom.css +3 -0
- sxscatalog-3.0.0/src/sxscatalog/__about__.py +4 -0
- sxscatalog-3.0.0/src/sxscatalog/__init__.py +34 -0
- sxscatalog-3.0.0/src/sxscatalog/metadata/__init__.py +10 -0
- sxscatalog-3.0.0/src/sxscatalog/metadata/metadata.py +641 -0
- sxscatalog-3.0.0/src/sxscatalog/metadata/metric.py +152 -0
- sxscatalog-3.0.0/src/sxscatalog/simulations/__init__.py +3 -0
- sxscatalog-3.0.0/src/sxscatalog/simulations/local.py +226 -0
- sxscatalog-3.0.0/src/sxscatalog/simulations/simulations.py +601 -0
- sxscatalog-3.0.0/src/sxscatalog/utilities/__init__.py +26 -0
- sxscatalog-3.0.0/src/sxscatalog/utilities/downloads.py +131 -0
- sxscatalog-3.0.0/src/sxscatalog/utilities/string_converters.py +50 -0
- sxscatalog-3.0.0/src/sxscatalog/utilities/sxs_directories.py +208 -0
- sxscatalog-3.0.0/src/sxscatalog/utilities/sxs_identifiers.py +127 -0
- sxscatalog-3.0.0/tests/__init__.py +3 -0
- sxscatalog-3.0.0/tests/test_import.py +7 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2025-present Mike Boyle <michael.oliver.boyle@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: MIT
|
|
4
|
+
|
|
5
|
+
name: CI
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
tags: ["*"]
|
|
12
|
+
pull_request:
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: test-${{ github.head_ref }}
|
|
16
|
+
cancel-in-progress: true
|
|
17
|
+
|
|
18
|
+
env:
|
|
19
|
+
PYTHONUNBUFFERED: "1"
|
|
20
|
+
FORCE_COLOR: "1"
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
test-and-release:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
environment:
|
|
26
|
+
name: github-pages
|
|
27
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
28
|
+
permissions:
|
|
29
|
+
pages: write
|
|
30
|
+
id-token: write
|
|
31
|
+
contents: write
|
|
32
|
+
# Provide an output so the next job knows whether to release
|
|
33
|
+
outputs:
|
|
34
|
+
RUN_RELEASE: ${{ steps.release_check.outputs.run_release }}
|
|
35
|
+
steps:
|
|
36
|
+
- name: Check out code
|
|
37
|
+
uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Set up Python
|
|
40
|
+
uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: '3.13'
|
|
43
|
+
|
|
44
|
+
- name: Install dependencies
|
|
45
|
+
run: pip install --upgrade pip hatch
|
|
46
|
+
|
|
47
|
+
- name: Run tests
|
|
48
|
+
run: hatch run tests:test
|
|
49
|
+
|
|
50
|
+
- name: Check marimo
|
|
51
|
+
if: "!contains(github.event.head_commit.message, '[skip marimo check]')"
|
|
52
|
+
run: hatch run marimo:check
|
|
53
|
+
|
|
54
|
+
- name: Export notebook
|
|
55
|
+
run: hatch run marimo:convert
|
|
56
|
+
|
|
57
|
+
- name: Determine bump type
|
|
58
|
+
id: version
|
|
59
|
+
run: |
|
|
60
|
+
OLD_VERSION="$(hatch version)"
|
|
61
|
+
BUMP_TYPE="patch"
|
|
62
|
+
if [[ "$OLD_VERSION" == *"a"* ]]; then
|
|
63
|
+
BUMP_TYPE="a"
|
|
64
|
+
elif [[ "$OLD_VERSION" == *"b"* ]]; then
|
|
65
|
+
BUMP_TYPE="b"
|
|
66
|
+
fi
|
|
67
|
+
COMMIT_MSG="$(git log -1 --pretty=%B)"
|
|
68
|
+
if [[ "$COMMIT_MSG" == *"#major"* ]]; then
|
|
69
|
+
BUMP_TYPE="major"
|
|
70
|
+
elif [[ "$COMMIT_MSG" == *"#minor"* ]]; then
|
|
71
|
+
BUMP_TYPE="minor"
|
|
72
|
+
elif [[ "$COMMIT_MSG" == *"#patch"* ]]; then
|
|
73
|
+
BUMP_TYPE="patch"
|
|
74
|
+
elif [[ "$COMMIT_MSG" == *"#alpha"* ]]; then
|
|
75
|
+
BUMP_TYPE="a"
|
|
76
|
+
elif [[ "$COMMIT_MSG" == *"#beta"* ]]; then
|
|
77
|
+
BUMP_TYPE="b"
|
|
78
|
+
elif [[ "$COMMIT_MSG" == *"#release"* ]]; then
|
|
79
|
+
BUMP_TYPE="release"
|
|
80
|
+
fi
|
|
81
|
+
echo "BUMP_TYPE=$BUMP_TYPE" >> $GITHUB_OUTPUT
|
|
82
|
+
|
|
83
|
+
- name: Bump version
|
|
84
|
+
id: bump_version
|
|
85
|
+
run: |
|
|
86
|
+
export NO_COLOR=1 # To turn off formatting in `hatch version`
|
|
87
|
+
hatch version ${{ steps.version.outputs.BUMP_TYPE }}
|
|
88
|
+
NEW_VERSION="$(hatch version | tr -d '\n')"
|
|
89
|
+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
90
|
+
echo "new_version=${NEW_VERSION}" >> $GITHUB_ENV
|
|
91
|
+
prerelease="false"
|
|
92
|
+
if [[ "$NEW_VERSION" == *"a"* ]]; then
|
|
93
|
+
prerelease="true"
|
|
94
|
+
elif [[ "$NEW_VERSION" == *"b"* ]]; then
|
|
95
|
+
prerelease="true"
|
|
96
|
+
fi
|
|
97
|
+
echo "prerelease=${prerelease}" >> $GITHUB_ENV
|
|
98
|
+
|
|
99
|
+
- name: Copy version to catalog_notebook.py dependencies
|
|
100
|
+
run: |
|
|
101
|
+
sed -i "s/sxscatalog==.*\"/sxscatalog==${{ env.new_version }}\"/" scripts/catalog_notebook.py
|
|
102
|
+
|
|
103
|
+
- name: Determine if release steps should run
|
|
104
|
+
id: release_check
|
|
105
|
+
run: |
|
|
106
|
+
# Default to skipping release steps
|
|
107
|
+
echo "run_release=false" >> $GITHUB_OUTPUT
|
|
108
|
+
|
|
109
|
+
# If the ref is main, check the commit message for [skip release]
|
|
110
|
+
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
|
|
111
|
+
COMMIT_MSG="$(git log -1 --pretty=%B)"
|
|
112
|
+
if [[ "$COMMIT_MSG" != *"[skip release]"* ]]; then
|
|
113
|
+
echo "run_release=true" >> $GITHUB_OUTPUT
|
|
114
|
+
echo "run_release=true"
|
|
115
|
+
fi
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
- name: Commit version bump
|
|
119
|
+
if: ${{ steps.release_check.outputs.run_release == 'true' }}
|
|
120
|
+
run: |
|
|
121
|
+
# Note that we need to set read and write permissions under
|
|
122
|
+
# "Settings" > "Actions" > "General" > "Workflow permissions"
|
|
123
|
+
git config user.name github-actions
|
|
124
|
+
git config user.email github-actions@github.com
|
|
125
|
+
git add src/sxscatalog/__about__.py scripts/catalog_notebook.py
|
|
126
|
+
git commit -m "Bump version to v${new_version}"
|
|
127
|
+
git tag -a "v${new_version}" -m "Version ${new_version}"
|
|
128
|
+
git status
|
|
129
|
+
git push --follow-tags # Will not trigger new workflow because it uses GITHUB_TOKEN
|
|
130
|
+
|
|
131
|
+
- name: Create GitHub Release
|
|
132
|
+
if: ${{ steps.release_check.outputs.run_release == 'true' }}
|
|
133
|
+
uses: softprops/action-gh-release@v2
|
|
134
|
+
env:
|
|
135
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
136
|
+
with:
|
|
137
|
+
tag_name: v${{ env.new_version }}
|
|
138
|
+
name: Release v${{ env.new_version }}
|
|
139
|
+
draft: false
|
|
140
|
+
prerelease: ${{ env.prerelease }}
|
|
141
|
+
|
|
142
|
+
- name: Publish to PyPI
|
|
143
|
+
if: ${{ steps.release_check.outputs.run_release == 'true' }}
|
|
144
|
+
env:
|
|
145
|
+
# 1) Get key from https://pypi.org/manage/account/token/
|
|
146
|
+
# 2) Copy it to Github > repo > Settings > Secrets > Actions > New repository secret
|
|
147
|
+
HATCH_INDEX_USER: __token__
|
|
148
|
+
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
|
|
149
|
+
shell: bash
|
|
150
|
+
run: |
|
|
151
|
+
hatch build
|
|
152
|
+
hatch publish
|
|
153
|
+
|
|
154
|
+
- name: Upload Pages Artifact
|
|
155
|
+
if: ${{ steps.release_check.outputs.run_release == 'true' }}
|
|
156
|
+
uses: actions/upload-pages-artifact@v3
|
|
157
|
+
with:
|
|
158
|
+
path: scripts/catalog_notebook_output
|
|
159
|
+
|
|
160
|
+
- name: Deploy to GitHub Pages
|
|
161
|
+
# Be sure to allow this under Settings > Pages > Build and deployment > Source > Github Actions
|
|
162
|
+
if: ${{ steps.release_check.outputs.run_release == 'true' }}
|
|
163
|
+
id: deployment
|
|
164
|
+
uses: actions/deploy-pages@v4
|
|
165
|
+
with:
|
|
166
|
+
artifact_name: github-pages
|
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# Ruff stuff:
|
|
171
|
+
.ruff_cache/
|
|
172
|
+
|
|
173
|
+
# PyPI configuration file
|
|
174
|
+
.pypirc
|
|
175
|
+
|
|
176
|
+
uv.lock
|
|
177
|
+
scripts/catalog_notebook_output
|
|
178
|
+
.vscode
|
|
179
|
+
notes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-present Mike Boyle <michael.oliver.boyle@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sxscatalog
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Interface to the catalog of SXS simulations
|
|
5
|
+
Project-URL: Documentation, https://github.com/Mike Boyle/sxscatalog#readme
|
|
6
|
+
Project-URL: Issues, https://github.com/Mike Boyle/sxscatalog/issues
|
|
7
|
+
Project-URL: Source, https://github.com/Mike Boyle/sxscatalog
|
|
8
|
+
Author-email: Mike Boyle <michael.oliver.boyle@gmail.com>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE.txt
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
20
|
+
Requires-Python: >=3.8
|
|
21
|
+
Requires-Dist: numpy
|
|
22
|
+
Requires-Dist: packaging
|
|
23
|
+
Requires-Dist: pandas
|
|
24
|
+
Requires-Dist: requests
|
|
25
|
+
Requires-Dist: tqdm
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# sxscatalog
|
|
29
|
+
|
|
30
|
+
[](https://pypi.org/project/sxscatalog)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
This package is a minimal set of tools for interacting with the SXS
|
|
34
|
+
Collaboration's catalog of numerical-relativity simulations. It is
|
|
35
|
+
intended to be used by other packages, such as
|
|
36
|
+
[`sxs`](https://github.com/sxs-collaboration/sxs/). It only needs to
|
|
37
|
+
exist separately for simple applications like [the web
|
|
38
|
+
interface](https://sxs-collaboration.github.io/sxscatalog/); users will most
|
|
39
|
+
likely never need this package directly.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# sxscatalog
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/sxscatalog)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
This package is a minimal set of tools for interacting with the SXS
|
|
7
|
+
Collaboration's catalog of numerical-relativity simulations. It is
|
|
8
|
+
intended to be used by other packages, such as
|
|
9
|
+
[`sxs`](https://github.com/sxs-collaboration/sxs/). It only needs to
|
|
10
|
+
exist separately for simple applications like [the web
|
|
11
|
+
interface](https://sxs-collaboration.github.io/sxscatalog/); users will most
|
|
12
|
+
likely never need this package directly.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sxscatalog"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = 'Interface to the catalog of SXS simulations'
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
keywords = []
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Mike Boyle", email = "michael.oliver.boyle@gmail.com" },
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Programming Language :: Python",
|
|
19
|
+
"Programming Language :: Python :: 3.8",
|
|
20
|
+
"Programming Language :: Python :: 3.9",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
25
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"requests",
|
|
29
|
+
"tqdm",
|
|
30
|
+
"pandas",
|
|
31
|
+
"numpy",
|
|
32
|
+
"packaging"
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Documentation = "https://github.com/Mike Boyle/sxscatalog#readme"
|
|
37
|
+
Issues = "https://github.com/Mike Boyle/sxscatalog/issues"
|
|
38
|
+
Source = "https://github.com/Mike Boyle/sxscatalog"
|
|
39
|
+
|
|
40
|
+
[tool.hatch.version]
|
|
41
|
+
path = "src/sxscatalog/__about__.py"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.envs.types]
|
|
44
|
+
extra-dependencies = [
|
|
45
|
+
"mypy>=1.0.0",
|
|
46
|
+
]
|
|
47
|
+
[tool.hatch.envs.types.scripts]
|
|
48
|
+
check = "mypy --install-types --non-interactive {args:src/sxscatalog tests}"
|
|
49
|
+
|
|
50
|
+
[tool.hatch.envs.marimo]
|
|
51
|
+
extra-dependencies = [
|
|
52
|
+
"marimo",
|
|
53
|
+
]
|
|
54
|
+
[tool.hatch.envs.marimo.scripts]
|
|
55
|
+
edit = "marimo edit --sandbox scripts/catalog_notebook.py"
|
|
56
|
+
run = "marimo run --sandbox scripts/catalog_notebook.py"
|
|
57
|
+
check = "uv run scripts/catalog_notebook.py" # Just to see if the script runs successfully
|
|
58
|
+
convert = "marimo export html-wasm scripts/catalog_notebook.py -o scripts/catalog_notebook_output --mode run"
|
|
59
|
+
|
|
60
|
+
[tool.hatch.envs.tests]
|
|
61
|
+
dependencies = [
|
|
62
|
+
"pytest",
|
|
63
|
+
"pytest-cov"
|
|
64
|
+
]
|
|
65
|
+
[tool.hatch.envs.tests.scripts]
|
|
66
|
+
# Run these as `hatch run tests:test`
|
|
67
|
+
test = "pytest {args:tests}"
|
|
68
|
+
|
|
69
|
+
[tool.coverage.run]
|
|
70
|
+
source_pkgs = ["sxscatalog", "tests"]
|
|
71
|
+
branch = true
|
|
72
|
+
parallel = true
|
|
73
|
+
omit = [
|
|
74
|
+
"src/sxscatalog/__about__.py",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[tool.coverage.paths]
|
|
78
|
+
sxscatalog = ["src/sxscatalog", "*/sxscatalog/src/sxscatalog"]
|
|
79
|
+
tests = ["tests", "*/sxscatalog/tests"]
|
|
80
|
+
|
|
81
|
+
[tool.coverage.report]
|
|
82
|
+
exclude_lines = [
|
|
83
|
+
"no cov",
|
|
84
|
+
"if __name__ == .__main__.:",
|
|
85
|
+
"if TYPE_CHECKING:",
|
|
86
|
+
]
|