roman-snpit-snappl 0.2.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.
Potentially problematic release.
This version of roman-snpit-snappl might be problematic. Click here for more details.
- roman_snpit_snappl-0.2.2/.cruft.json +34 -0
- roman_snpit_snappl-0.2.2/.github/CODEOWNERS +9 -0
- roman_snpit_snappl-0.2.2/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +21 -0
- roman_snpit_snappl-0.2.2/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md +47 -0
- roman_snpit_snappl-0.2.2/.github/ISSUE_TEMPLATE/PR_TEMPLATE.md +39 -0
- roman_snpit_snappl-0.2.2/.github/dependabot.yml +38 -0
- roman_snpit_snappl-0.2.2/.github/labeler.yml +34 -0
- roman_snpit_snappl-0.2.2/.github/workflows/changelog.yml +37 -0
- roman_snpit_snappl-0.2.2/.github/workflows/run_labeler.yml +22 -0
- roman_snpit_snappl-0.2.2/.github/workflows/run_snappl_tests.yml +49 -0
- roman_snpit_snappl-0.2.2/.github/workflows/sphinx-deploy.yml +27 -0
- roman_snpit_snappl-0.2.2/.github/workflows/sub_package_update.yml +84 -0
- roman_snpit_snappl-0.2.2/.gitignore +172 -0
- roman_snpit_snappl-0.2.2/.pre-commit-config.yaml +16 -0
- roman_snpit_snappl-0.2.2/CHANGES.rst +4 -0
- roman_snpit_snappl-0.2.2/CITATION.cff +11 -0
- roman_snpit_snappl-0.2.2/CODE_OF_CONDUCT.md +24 -0
- roman_snpit_snappl-0.2.2/CONTRIBUTING.md +163 -0
- roman_snpit_snappl-0.2.2/LICENSE +27 -0
- roman_snpit_snappl-0.2.2/MANIFEST.in +11 -0
- roman_snpit_snappl-0.2.2/PKG-INFO +55 -0
- roman_snpit_snappl-0.2.2/README.rst +23 -0
- roman_snpit_snappl-0.2.2/changes/.gitkeep +0 -0
- roman_snpit_snappl-0.2.2/changes/10.snappl.rst +1 -0
- roman_snpit_snappl-0.2.2/changes/13.bugfix.rst +1 -0
- roman_snpit_snappl-0.2.2/changes/3.snappl.rst +1 -0
- roman_snpit_snappl-0.2.2/changes/5.snappl.rst +1 -0
- roman_snpit_snappl-0.2.2/changes/8.snappl.rst +1 -0
- roman_snpit_snappl-0.2.2/codespell-ignore.txt +2 -0
- roman_snpit_snappl-0.2.2/docs/Makefile +20 -0
- roman_snpit_snappl-0.2.2/docs/_static/logo_black_filled.png +0 -0
- roman_snpit_snappl-0.2.2/docs/changes.rst +5 -0
- roman_snpit_snappl-0.2.2/docs/conf.py +146 -0
- roman_snpit_snappl-0.2.2/docs/index.rst +33 -0
- roman_snpit_snappl-0.2.2/docs/installation.rst +58 -0
- roman_snpit_snappl-0.2.2/docs/make.bat +35 -0
- roman_snpit_snappl-0.2.2/docs/usage.rst +7 -0
- roman_snpit_snappl-0.2.2/examples/config_example.py +48 -0
- roman_snpit_snappl-0.2.2/examples/config_example.yaml +12 -0
- roman_snpit_snappl-0.2.2/licenses/.DS_Store +0 -0
- roman_snpit_snappl-0.2.2/licenses/LICENSE.rst +25 -0
- roman_snpit_snappl-0.2.2/licenses/README.rst +9 -0
- roman_snpit_snappl-0.2.2/licenses/TEMPLATE_LICENSE.rst +31 -0
- roman_snpit_snappl-0.2.2/pyproject.toml +202 -0
- roman_snpit_snappl-0.2.2/roman_snpit_snappl.egg-info/PKG-INFO +55 -0
- roman_snpit_snappl-0.2.2/roman_snpit_snappl.egg-info/SOURCES.txt +69 -0
- roman_snpit_snappl-0.2.2/roman_snpit_snappl.egg-info/dependency_links.txt +1 -0
- roman_snpit_snappl-0.2.2/roman_snpit_snappl.egg-info/not-zip-safe +1 -0
- roman_snpit_snappl-0.2.2/roman_snpit_snappl.egg-info/requires.txt +19 -0
- roman_snpit_snappl-0.2.2/roman_snpit_snappl.egg-info/top_level.txt +1 -0
- roman_snpit_snappl-0.2.2/setup.cfg +4 -0
- roman_snpit_snappl-0.2.2/setup.py +4 -0
- roman_snpit_snappl-0.2.2/snappl/__init__.py +10 -0
- roman_snpit_snappl-0.2.2/snappl/_dev/__init__.py +6 -0
- roman_snpit_snappl-0.2.2/snappl/_dev/scm_version.py +12 -0
- roman_snpit_snappl-0.2.2/snappl/_version.py +21 -0
- roman_snpit_snappl-0.2.2/snappl/data/README.rst +6 -0
- roman_snpit_snappl-0.2.2/snappl/image.py +412 -0
- roman_snpit_snappl-0.2.2/snappl/psf.py +208 -0
- roman_snpit_snappl-0.2.2/snappl/tests/__init__.py +1 -0
- roman_snpit_snappl-0.2.2/snappl/tests/conftest.py +6 -0
- roman_snpit_snappl-0.2.2/snappl/tests/docker-compose.yaml +44 -0
- roman_snpit_snappl-0.2.2/snappl/tests/image_test_data/Roman_TDS_simple_model_F184_662_11.fits.gz +0 -0
- roman_snpit_snappl-0.2.2/snappl/tests/image_test_data/test_cutout.npy +0 -0
- roman_snpit_snappl-0.2.2/snappl/tests/psf_test_data/testpsfarray.npz +0 -0
- roman_snpit_snappl-0.2.2/snappl/tests/test_opensim2024fitsimage.py +41 -0
- roman_snpit_snappl-0.2.2/snappl/tests/test_oversampled_image_psf.py +25 -0
- roman_snpit_snappl-0.2.2/snappl/tests/test_version_string.py +3 -0
- roman_snpit_snappl-0.2.2/snappl/tests/test_yaml_serialized_oversampled_image_psf.py +46 -0
- roman_snpit_snappl-0.2.2/snappl/wcs.py +32 -0
- roman_snpit_snappl-0.2.2/tox.ini +64 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "https://github.com/Roman-Supernova-PIT/package-template",
|
|
3
|
+
"commit": "9d156bb4c476043b6c616e3e41047b68d4d89cdd",
|
|
4
|
+
"checkout": null,
|
|
5
|
+
"context": {
|
|
6
|
+
"cookiecutter": {
|
|
7
|
+
"package_name": "roman_snpit_snappl",
|
|
8
|
+
"module_name": "snappl",
|
|
9
|
+
"short_description": "Photometry utilities for the Roman SNPIT",
|
|
10
|
+
"author_name": "Roman SN PIT",
|
|
11
|
+
"author_email": "raknop@lbl.gov",
|
|
12
|
+
"github_username": "rknop",
|
|
13
|
+
"minimum_python_version": "3.11",
|
|
14
|
+
"use_compiled_extensions": "n",
|
|
15
|
+
"include_example_code": "n",
|
|
16
|
+
"include_github_workflows": "y",
|
|
17
|
+
"_project_url": "https://github.com/Roman-Supernova-PIT",
|
|
18
|
+
"_pit_github_org": "Roman-Supernova-PIT",
|
|
19
|
+
"_pit_name": "Roman Supernove Project Infrastructure Team",
|
|
20
|
+
"_sphinx_theme": "alabaster",
|
|
21
|
+
"_parent_project": "",
|
|
22
|
+
"install_requires": "",
|
|
23
|
+
"_copy_without_render": [
|
|
24
|
+
"docs/_templates",
|
|
25
|
+
"docs/_static",
|
|
26
|
+
".github/workflows",
|
|
27
|
+
".github/"
|
|
28
|
+
],
|
|
29
|
+
"_template": "https://github.com/Roman-Supernova-PIT/package-template",
|
|
30
|
+
"_commit": "9d156bb4c476043b6c616e3e41047b68d4d89cdd"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"directory": null
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# automatically requests pull request reviews for files matching the given pattern; the last match takes precendence. Make sure the software-admin team has write on your repo
|
|
2
|
+
|
|
3
|
+
* @rknop @Roman-Supernova-Pit/software-admins
|
|
4
|
+
|
|
5
|
+
# maintainers, add specifics of what you want to maintain for your package
|
|
6
|
+
# the software-admins should remain owners of everything as above
|
|
7
|
+
|
|
8
|
+
/docs/** @rknop
|
|
9
|
+
/changes/** @rknop
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "Feature request"
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: "[New Feature]: "
|
|
5
|
+
labels: enhancement, needs triage
|
|
6
|
+
assignees: ''
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Is your feature request related to a problem? Please describe.
|
|
10
|
+
<!--A clear and concise description of what the problem is.
|
|
11
|
+
Ex. I'm always frustrated when [...] -->
|
|
12
|
+
|
|
13
|
+
## Describe the solution you'd like
|
|
14
|
+
<!--A clear and concise description of what you want to happen.-->
|
|
15
|
+
|
|
16
|
+
## Describe alternatives you've considered
|
|
17
|
+
<!--A clear and concise description of any alternative solutions or features you've considered.-->
|
|
18
|
+
|
|
19
|
+
## Additional context
|
|
20
|
+
<!--Add any other context or screenshots about the feature request here.-->
|
|
21
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "🐞 Issue report for roman_snpit_snappl"
|
|
3
|
+
about: Create a report describing unexpected or incorrect behavior.
|
|
4
|
+
title: "[Issue]: <title>"
|
|
5
|
+
labels: bug
|
|
6
|
+
assignees: ''
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!--
|
|
10
|
+
Thanks for taking the time to fill out this report!
|
|
11
|
+
Please have a search on our repository to see if a similar
|
|
12
|
+
issue has already been posted. If a similar issue is closed, have a
|
|
13
|
+
quick look to see if you are satisfied by the resolution.
|
|
14
|
+
|
|
15
|
+
If not please go ahead and open an issue!
|
|
16
|
+
-->
|
|
17
|
+
|
|
18
|
+
### Current Behavior:
|
|
19
|
+
<!-- A concise description of what you're experiencing. -->
|
|
20
|
+
|
|
21
|
+
### Expected Behavior:
|
|
22
|
+
<!-- A concise description of what you expected to happen. -->
|
|
23
|
+
|
|
24
|
+
### Steps To Reproduce:
|
|
25
|
+
<!--
|
|
26
|
+
Example: steps to reproduce the behavior:
|
|
27
|
+
1. In this environment...
|
|
28
|
+
1. With this config...
|
|
29
|
+
1. Run '...'
|
|
30
|
+
1. See error...
|
|
31
|
+
-->
|
|
32
|
+
|
|
33
|
+
### Environment:
|
|
34
|
+
<!--
|
|
35
|
+
Example:
|
|
36
|
+
- OS: Ubuntu 20.04
|
|
37
|
+
- Node: 13.14.0
|
|
38
|
+
- npm: 7.6.3
|
|
39
|
+
- python: 3.13
|
|
40
|
+
- numpy: 2.0
|
|
41
|
+
-->
|
|
42
|
+
|
|
43
|
+
### Anything else:
|
|
44
|
+
<!--
|
|
45
|
+
Links? References? Anything that will give us more context about the issue that you are encountering!
|
|
46
|
+
-->
|
|
47
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "Pull Request for roman_snpit_snappl"
|
|
3
|
+
about: Create a pull request to submit new or updated code to the repository
|
|
4
|
+
title: "[PR]: "
|
|
5
|
+
labels: possible solution
|
|
6
|
+
assignees: ''
|
|
7
|
+
---
|
|
8
|
+
## What type of PR is this? (check all applicable)
|
|
9
|
+
|
|
10
|
+
- [ ] Refactor
|
|
11
|
+
- [ ] Feature
|
|
12
|
+
- [ ] Bug Fix
|
|
13
|
+
- [ ] Optimization
|
|
14
|
+
- [ ] Documentation Update
|
|
15
|
+
- [ ] Have you followed the guidelines in our Contributing document?
|
|
16
|
+
- [ ] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change?
|
|
17
|
+
|
|
18
|
+
<!-- describe the changes included with this PR here -->
|
|
19
|
+
This PR addresses ...
|
|
20
|
+
|
|
21
|
+
<!-- If this PR closes a GitHub issue, reference it here by its number -->
|
|
22
|
+
Closes #
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<!-- if you can't perform these tasks due to permissions, please ask a maintainer to do them -->
|
|
26
|
+
## Tasks
|
|
27
|
+
- [ ] **request a review from someone specific**, to avoid making the maintainers review every PR
|
|
28
|
+
- [ ] Does this PR change user-facing code / API? (if not, label with `no-changelog-entry-needed`)
|
|
29
|
+
- [ ] write news fragment(s) in `changes/`: `echo "changed something" > changes/<PR#>.<changetype>.rst` (see expansion below for change types)
|
|
30
|
+
- [ ] update or add relevant tests
|
|
31
|
+
- [ ] update relevant docstrings and / or `docs/` page
|
|
32
|
+
- [ ] Do truth files need to be updated?
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
<details><summary>news fragment change types...</summary>
|
|
36
|
+
|
|
37
|
+
- ``changes/<PR#>.general.rst``: infrastructure or miscellaneous change
|
|
38
|
+
- ``changes/<PR#>.docs.rst``: updates for documentation
|
|
39
|
+
</details>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: "Dependabot Checks"
|
|
2
|
+
version: 2
|
|
3
|
+
updates:
|
|
4
|
+
|
|
5
|
+
# maintain dependencies for pip
|
|
6
|
+
# this should help with pyproject.toml
|
|
7
|
+
- package-ecosystem: pip
|
|
8
|
+
directory: "/"
|
|
9
|
+
target-branch: "main"
|
|
10
|
+
schedule:
|
|
11
|
+
interval: weekly
|
|
12
|
+
open-pull-requests-limit: 10
|
|
13
|
+
reviewers:
|
|
14
|
+
- "rknop"
|
|
15
|
+
allow:
|
|
16
|
+
- dependency-type: direct
|
|
17
|
+
- dependency-type: indirect
|
|
18
|
+
commit-message:
|
|
19
|
+
prefix: "fix: "
|
|
20
|
+
labels:
|
|
21
|
+
- "CI/CD"
|
|
22
|
+
|
|
23
|
+
# maintain dependencies for github-actions
|
|
24
|
+
- package-ecosystem: "github-actions"
|
|
25
|
+
directory: ".github/workflows"
|
|
26
|
+
target-branch: "main"
|
|
27
|
+
reviewers:
|
|
28
|
+
- "rknop"
|
|
29
|
+
schedule:
|
|
30
|
+
interval: monthly
|
|
31
|
+
commit-message:
|
|
32
|
+
prefix: "fix: "
|
|
33
|
+
labels:
|
|
34
|
+
- "CI/CD"
|
|
35
|
+
groups:
|
|
36
|
+
actions:
|
|
37
|
+
patterns:
|
|
38
|
+
- "*"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# needs pull_request_target to label forks
|
|
2
|
+
documentation:
|
|
3
|
+
- changed-files:
|
|
4
|
+
- all-globs-to-any-file: ['*.rst', '!CHANGES.rst', '!licenses/LICENSE']
|
|
5
|
+
- any-glob-to-any-file:
|
|
6
|
+
- 'docs/**/*'
|
|
7
|
+
- '*.md'
|
|
8
|
+
- '.readthedocs.yaml'
|
|
9
|
+
- 'CITATION.cff'
|
|
10
|
+
|
|
11
|
+
installation:
|
|
12
|
+
- changed-files:
|
|
13
|
+
- any-glob-to-any-file:
|
|
14
|
+
- 'pyproject.toml'
|
|
15
|
+
- 'setup.*'
|
|
16
|
+
- 'requirements*.txt'
|
|
17
|
+
- 'MANIFEST.in'
|
|
18
|
+
|
|
19
|
+
# --------------------------------------- testing ---------------------------------------
|
|
20
|
+
|
|
21
|
+
automation:
|
|
22
|
+
- changed-files:
|
|
23
|
+
- any-glob-to-any-file:
|
|
24
|
+
- '.github/**'
|
|
25
|
+
- '.bandit.yaml'
|
|
26
|
+
- '.codecov.yml'
|
|
27
|
+
|
|
28
|
+
testing:
|
|
29
|
+
- changed-files:
|
|
30
|
+
- any-glob-to-any-file:
|
|
31
|
+
- '**/tests/**'
|
|
32
|
+
- '.github/workflows/*ci*.yml'
|
|
33
|
+
- 'conftest.py'
|
|
34
|
+
- 'tox.ini'
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: changelog
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- labeled
|
|
7
|
+
- unlabeled
|
|
8
|
+
- opened
|
|
9
|
+
- synchronize
|
|
10
|
+
- reopened
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
check:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
|
21
|
+
with:
|
|
22
|
+
python-version: 3
|
|
23
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
24
|
+
with:
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
- run: pip install .
|
|
27
|
+
- run: pip install towncrier
|
|
28
|
+
- run: towncrier check
|
|
29
|
+
- run: towncrier build --draft | grep -P '#${{ github.event.number }}'
|
|
30
|
+
prevent_manually_editing_changlog:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
34
|
+
with:
|
|
35
|
+
fetch-depth: 0
|
|
36
|
+
- name: prevent direct changes to `CHANGES.rst`
|
|
37
|
+
run: git diff HEAD ${{ github.event.pull_request.base.sha }} --no-patch --exit-code CHANGES.rst
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Label pull request
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronized
|
|
8
|
+
- reopened
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
labeler:
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
pull-requests: write
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
|
18
|
+
with:
|
|
19
|
+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
20
|
+
sync-labels: true # removes labels when files reverted
|
|
21
|
+
configuration-path: .github/labeler.yml
|
|
22
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Run SNAPPL Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
tests:
|
|
12
|
+
name: run snappl tests in docker container
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
env:
|
|
15
|
+
COMPOSE_FILE: snappl/tests/docker-compose.yaml
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Dump docker logs on failure
|
|
19
|
+
if: failure()
|
|
20
|
+
uses: jwalton/gh-docker-logs@v2
|
|
21
|
+
|
|
22
|
+
- name: checkout code
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
submodules: recursive
|
|
26
|
+
|
|
27
|
+
- name: log into github container registry
|
|
28
|
+
uses: docker/login-action@v3
|
|
29
|
+
with:
|
|
30
|
+
registry: ghcr.io
|
|
31
|
+
username: ${{ github.actor }}
|
|
32
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
+
|
|
34
|
+
- name: cleanup
|
|
35
|
+
run: |
|
|
36
|
+
# try to save HDD space on the runner by removing some unneeded stuff
|
|
37
|
+
# ref: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
|
|
38
|
+
sudo rm -rf /usr/share/dotnet
|
|
39
|
+
sudo rm -rf /opt/ghc
|
|
40
|
+
sudo rm -rf "/usr/local/share/boost"
|
|
41
|
+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
|
42
|
+
|
|
43
|
+
- name: pull latest SNPIT cpu image
|
|
44
|
+
run: |
|
|
45
|
+
docker pull rknop/roman-snpit-env:cpu
|
|
46
|
+
|
|
47
|
+
- name: run test
|
|
48
|
+
run: |
|
|
49
|
+
docker compose run runtests
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: "Deploy Package Documentation to Pages"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main] # branch to trigger deployment
|
|
6
|
+
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
pages:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
steps:
|
|
15
|
+
- id: deployment
|
|
16
|
+
uses: sphinx-notes/pages@3a7b173ecba074b270b37c64007c1edfd8465892 # v3.1
|
|
17
|
+
with:
|
|
18
|
+
publish: false
|
|
19
|
+
documentation_path: ./docs
|
|
20
|
+
pyproject_extras: docs
|
|
21
|
+
- uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
|
|
22
|
+
with:
|
|
23
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
+
publish_dir: ${{ steps.deployment.outputs.artifact }}
|
|
25
|
+
publish_branch: gh-pages # default: gh-pages
|
|
26
|
+
commit_message: ${{ github.event.head_commit.message }}
|
|
27
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# This template is taken from the cruft example code, for further information please see:
|
|
2
|
+
# https://cruft.github.io/cruft/#automating-updates-with-github-actions
|
|
3
|
+
name: Automatic Update from package template
|
|
4
|
+
permissions:
|
|
5
|
+
contents: write
|
|
6
|
+
pull-requests: write
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
# Allow manual runs through the web UI
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
schedule:
|
|
12
|
+
# ┌───────── minute (0 - 59)
|
|
13
|
+
# │ ┌───────── hour (0 - 23)
|
|
14
|
+
# │ │ ┌───────── day of the month (1 - 31)
|
|
15
|
+
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
|
|
16
|
+
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
|
|
17
|
+
- cron: '0 7 1 * *' # Every first day of the month 7am UTC
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
update:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
strategy:
|
|
23
|
+
fail-fast: true
|
|
24
|
+
matrix:
|
|
25
|
+
include:
|
|
26
|
+
- add-paths: .
|
|
27
|
+
body: apply the changes to this repo.
|
|
28
|
+
branch: cruft/update
|
|
29
|
+
commit-message: "Automatic package template update"
|
|
30
|
+
title: Updates from the package template
|
|
31
|
+
- add-paths: .cruft.json
|
|
32
|
+
body: reject these changes for this repo.
|
|
33
|
+
branch: cruft/reject
|
|
34
|
+
commit-message: "Reject this package template update"
|
|
35
|
+
title: Reject new updates from package template
|
|
36
|
+
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683. # v4.2.2
|
|
39
|
+
|
|
40
|
+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b. # v5.3.0
|
|
41
|
+
with:
|
|
42
|
+
python-version: "3.11"
|
|
43
|
+
|
|
44
|
+
- name: Install Cruft
|
|
45
|
+
run: python -m pip install cruft
|
|
46
|
+
|
|
47
|
+
- name: Check if update is available
|
|
48
|
+
continue-on-error: false
|
|
49
|
+
id: check
|
|
50
|
+
run: |
|
|
51
|
+
CHANGES=0
|
|
52
|
+
if [ -f .cruft.json ]; then
|
|
53
|
+
if ! cruft check; then
|
|
54
|
+
CHANGES=1
|
|
55
|
+
fi
|
|
56
|
+
else
|
|
57
|
+
echo "No .cruft.json file"
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
echo "has_changes=$CHANGES" >> "$GITHUB_OUTPUT"
|
|
61
|
+
|
|
62
|
+
- name: Run update if available
|
|
63
|
+
if: steps.check.outputs.has_changes == '1'
|
|
64
|
+
run: |
|
|
65
|
+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
|
66
|
+
git config --global user.name "${{ github.actor }}"
|
|
67
|
+
|
|
68
|
+
cruft update --skip-apply-ask --refresh-private-variables
|
|
69
|
+
git restore --staged .
|
|
70
|
+
|
|
71
|
+
- name: Create pull request
|
|
72
|
+
if: steps.check.outputs.has_changes == '1'
|
|
73
|
+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f. #v7.0.5
|
|
74
|
+
with:
|
|
75
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
76
|
+
add-paths: ${{ matrix.add-paths }}
|
|
77
|
+
commit-message: ${{ matrix.commit-message }}
|
|
78
|
+
branch: ${{ matrix.branch }}
|
|
79
|
+
delete-branch: true
|
|
80
|
+
branch-suffix: timestamp
|
|
81
|
+
title: ${{ matrix.title }}
|
|
82
|
+
body: |
|
|
83
|
+
This is an autogenerated PR, which will ${{ matrix.body }}.
|
|
84
|
+
[Cruft](https://cruft.github.io/cruft/) has detected updates from the Package Template
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# Emcas backup files
|
|
2
|
+
**~
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
.DS_Store
|
|
9
|
+
.project
|
|
10
|
+
.pydevproject
|
|
11
|
+
.vscode
|
|
12
|
+
*code-workspace
|
|
13
|
+
|
|
14
|
+
# C extensions
|
|
15
|
+
*.so
|
|
16
|
+
|
|
17
|
+
# Distribution / packaging
|
|
18
|
+
.Python
|
|
19
|
+
build/
|
|
20
|
+
develop-eggs/
|
|
21
|
+
dist/
|
|
22
|
+
downloads/
|
|
23
|
+
eggs/
|
|
24
|
+
.eggs/
|
|
25
|
+
lib/
|
|
26
|
+
lib64/
|
|
27
|
+
parts/
|
|
28
|
+
sdist/
|
|
29
|
+
var/
|
|
30
|
+
wheels/
|
|
31
|
+
share/python-wheels/
|
|
32
|
+
pip-wheel-metadata/
|
|
33
|
+
*.egg-info/
|
|
34
|
+
.installed.cfg
|
|
35
|
+
*.egg
|
|
36
|
+
MANIFEST
|
|
37
|
+
snappl/_version.py
|
|
38
|
+
|
|
39
|
+
# PyInstaller
|
|
40
|
+
# Usually these files are written by a python script from a template
|
|
41
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
42
|
+
*.manifest
|
|
43
|
+
*.spec
|
|
44
|
+
|
|
45
|
+
# Installer logs
|
|
46
|
+
pip-log.txt
|
|
47
|
+
pip-delete-this-directory.txt
|
|
48
|
+
|
|
49
|
+
# Unit test / coverage reports
|
|
50
|
+
htmlcov/
|
|
51
|
+
.tox/
|
|
52
|
+
.nox/
|
|
53
|
+
.coverage
|
|
54
|
+
.coverage.*
|
|
55
|
+
.cache
|
|
56
|
+
.tmp/
|
|
57
|
+
nosetests.xml
|
|
58
|
+
coverage.xml
|
|
59
|
+
*.cover
|
|
60
|
+
*.py,cover
|
|
61
|
+
.hypothesis/
|
|
62
|
+
.pytest_cache/
|
|
63
|
+
cover/
|
|
64
|
+
|
|
65
|
+
# Translations
|
|
66
|
+
*.mo
|
|
67
|
+
*.pot
|
|
68
|
+
|
|
69
|
+
# Django stuff:
|
|
70
|
+
*.log
|
|
71
|
+
local_settings.py
|
|
72
|
+
db.sqlite3
|
|
73
|
+
db.sqlite3-journal
|
|
74
|
+
|
|
75
|
+
# Flask stuff:
|
|
76
|
+
instance/
|
|
77
|
+
.webassets-cache
|
|
78
|
+
|
|
79
|
+
# Scrapy stuff:
|
|
80
|
+
.scrapy
|
|
81
|
+
|
|
82
|
+
# Sphinx documentation
|
|
83
|
+
docs/_build/
|
|
84
|
+
|
|
85
|
+
# PyBuilder
|
|
86
|
+
.pybuilder/
|
|
87
|
+
target/
|
|
88
|
+
|
|
89
|
+
# Jupyter Notebook
|
|
90
|
+
.ipynb_checkpoints
|
|
91
|
+
*/.ipynb_checkpoints/*.ipynb
|
|
92
|
+
|
|
93
|
+
# IPython
|
|
94
|
+
profile_default/
|
|
95
|
+
ipython_config.py
|
|
96
|
+
|
|
97
|
+
# pyenv
|
|
98
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
99
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
100
|
+
# .python-version
|
|
101
|
+
|
|
102
|
+
# pipenv
|
|
103
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
104
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
105
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
106
|
+
# install all needed dependencies.
|
|
107
|
+
#Pipfile.lock
|
|
108
|
+
|
|
109
|
+
# poetry
|
|
110
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
111
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
112
|
+
# commonly ignored for libraries.
|
|
113
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
114
|
+
#poetry.lock
|
|
115
|
+
|
|
116
|
+
# pdm
|
|
117
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
118
|
+
#pdm.lock
|
|
119
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
120
|
+
# in version control.
|
|
121
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
122
|
+
.pdm.toml
|
|
123
|
+
|
|
124
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
125
|
+
__pypackages__/
|
|
126
|
+
|
|
127
|
+
# Celery stuff
|
|
128
|
+
celerybeat-schedule
|
|
129
|
+
celerybeat.pid
|
|
130
|
+
|
|
131
|
+
# SageMath parsed files
|
|
132
|
+
*.sage.py
|
|
133
|
+
|
|
134
|
+
# Environments
|
|
135
|
+
.env
|
|
136
|
+
.venv
|
|
137
|
+
env/
|
|
138
|
+
venv/
|
|
139
|
+
ENV/
|
|
140
|
+
env.bak/
|
|
141
|
+
venv.bak/
|
|
142
|
+
|
|
143
|
+
# Spyder project settings
|
|
144
|
+
.spyderproject
|
|
145
|
+
.spyproject
|
|
146
|
+
|
|
147
|
+
# Rope project settings
|
|
148
|
+
.ropeproject
|
|
149
|
+
|
|
150
|
+
# mkdocs documentation
|
|
151
|
+
/site
|
|
152
|
+
|
|
153
|
+
# mypy
|
|
154
|
+
.mypy_cache/
|
|
155
|
+
.dmypy.json
|
|
156
|
+
dmypy.json
|
|
157
|
+
|
|
158
|
+
# Pyre type checker
|
|
159
|
+
.pyre/
|
|
160
|
+
|
|
161
|
+
# pytype static type analyzer
|
|
162
|
+
.pytype/
|
|
163
|
+
|
|
164
|
+
# Cython debug symbols
|
|
165
|
+
cython_debug/
|
|
166
|
+
|
|
167
|
+
# PyCharm
|
|
168
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
169
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
170
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
171
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
172
|
+
#.idea/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.6.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-case-conflict
|
|
6
|
+
- id: trailing-whitespace
|
|
7
|
+
- id: check-added-large-files
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: mixed-line-ending
|
|
10
|
+
# Ignore the template for checks which will be confused by jinja syntax
|
|
11
|
+
- id: check-ast
|
|
12
|
+
exclude: "roman_snpit_snappl"
|
|
13
|
+
- id: check-yaml
|
|
14
|
+
exclude: "roman_snpit_snappl"
|
|
15
|
+
- id: debug-statements
|
|
16
|
+
exclude: "roman_snpit_snappl"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use this software in your work, please cite it using the following metadata."
|
|
3
|
+
authors:
|
|
4
|
+
- family-names: "Sosey"
|
|
5
|
+
given-names: "Megan"
|
|
6
|
+
orcid: "https://orcid.org/0000-0002-4206-6492"
|
|
7
|
+
title: roman_snpit_snappl
|
|
8
|
+
version: 0.0
|
|
9
|
+
doi:
|
|
10
|
+
date-released:
|
|
11
|
+
url: "https://github.com/Roman-Supernova-PIT/roman_snpit_snappl"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Roman Supernova PIT Open Source Code of Conduct
|
|
2
|
+
|
|
3
|
+
We expect all "Roman Supernova PIT" organization projects to adopt a code of conduct that ensures a productive, respectful environment for all open source contributors and participants. We are committed to providing a strong and enforced code of conduct and expect everyone in our community to follow these guidelines when interacting with others in all forums. Our goal is to keep ours a positive, successful, and growing community. The community of participants in open source Astronomy projects is made up of members from around the globe with a diverse set of skills and experience. It is through these differences that our community experiences success and continued growth.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
As members of the community,
|
|
7
|
+
|
|
8
|
+
- We pledge to treat all people with respect and provide a harassment- and bullying-free environment. In particular, sexual language and imagery, sexist, racist, or otherwise exclusionary jokes are not appropriate.
|
|
9
|
+
|
|
10
|
+
- We pledge to respect the work of others by recognizing acknowledgment/citation requests of original authors. As authors, we pledge to be explicit about how we want our own work to be cited or acknowledged.
|
|
11
|
+
|
|
12
|
+
- We pledge to welcome those interested in joining the community, and realize that including people with a variety of opinions and backgrounds will only serve to enrich our community. In particular, discussions relating to pros/cons of various technologies, programming languages, and so on are welcome, but these should be done with respect, taking proactive measure to ensure that all participants are heard and feel confident that they can freely express their opinions.
|
|
13
|
+
|
|
14
|
+
- We pledge to welcome questions and answer them respectfully, paying particular attention to those new to the community. We pledge to provide respectful criticisms and feedback in forums, especially in discussion threads resulting from code contributions.
|
|
15
|
+
|
|
16
|
+
- We pledge to be conscientious of the perceptions of the wider community and to respond to criticism respectfully. We will strive to model behaviors that encourage productive debate and disagreement, both within our community and where we are criticized. We will treat those outside our community with the same respect as people within our community.
|
|
17
|
+
|
|
18
|
+
- We pledge to help the entire community follow the code of conduct, and to not remain silent when we see violations of the code of conduct. We will take action when members of our community violate this code such as talking privately with the person. The following email may be used to report any issue romansnpit@gmail.com. All emails sent to this address will be treated with the strictest confidence.
|
|
19
|
+
|
|
20
|
+
This code of conduct applies to all community situations online and offline, including mailing lists, forums, social media, conferences, meetings, associated social events, and one-to-one interactions.
|
|
21
|
+
|
|
22
|
+
Parts of this code of conduct have been adapted from the Astropy and Numfocus codes of conduct.
|
|
23
|
+
http://www.astropy.org/code_of_conduct.html
|
|
24
|
+
https://www.numfocus.org/about/code-of-conduct/
|