-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What kind of change does this PR introduce? * Updates the template to the latest commit * GitHub Workflows now point to commits rather than tags * Dependabot will now only update on a monthly schedule * Dependencies have been updated and synchronized * `CODE_OF_CONDUCT.rst` file adapted to Contributor Covenant v2.1 ### Does this PR introduce a breaking change? Yes. * `CHANGES.rst` is now `CHANGELOG.rst` * The package now uses a `src` layout in lieu of a `flat` layout * Maintainer-specific directions are now found under `releasing.rst` > [!WARNING] > The changes to the package structure requires you to fully reinstall the library using `pip install -e .` > This is almost like installing a brand new library, except it's > virtually the same. ### Other information: https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/ https://keepachangelog.com/en/1.0.0/
- Loading branch information
Showing
63 changed files
with
457 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ on: | |
- .secrets.baseline | ||
- .yamllint.yaml | ||
- AUTHORS.rst | ||
- CHANGES.rst | ||
- CHANGELOG.rst | ||
- CONTRIBUTING.rst | ||
- MANIFEST.in | ||
- Makefile | ||
|
@@ -33,10 +33,10 @@ on: | |
- environment.yml | ||
- pyproject.toml | ||
- setup.py | ||
- src/xscen/__init__.py | ||
- templates | ||
- tests/*.py | ||
- tox.ini | ||
- xscen/__init__.py | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -58,10 +58,13 @@ jobs: | |
files.pythonhosted.org:443 | ||
github.com:443 | ||
pypi.org:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository (no persist-credentials) | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/[email protected] | ||
fetch-depth: 0 | ||
- name: Set up Python3 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Config Commit Bot | ||
|
@@ -74,7 +77,7 @@ jobs: | |
- name: Current Version | ||
run: | | ||
bump-my-version show current_version | ||
CURRENT_VERSION="$(grep -E '__version__' xscen/__init__.py | cut -d ' ' -f3)" | ||
CURRENT_VERSION="$(grep -E '__version__' src/xscen/__init__.py | cut -d ' ' -f3)" | ||
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV | ||
- name: Conditional Bump Version | ||
run: | | ||
|
@@ -87,7 +90,7 @@ jobs: | |
fi | ||
bump-my-version show-bump | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0 | ||
with: | ||
force: false | ||
github_token: ${{ secrets.BUMP_VERSION_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ jobs: | |
github.com:443 | ||
objects.githubusercontent.com:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
|
||
- name: Cleanup | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,8 @@ jobs: | |
allowed-endpoints: > | ||
api.github.com:443 | ||
- uses: actions/[email protected] | ||
- name: Verify Pull Request Opener | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
with: | ||
script: | | ||
// Get a list of all issues created by the PR opener | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ jobs: | |
allowed-endpoints: > | ||
api.github.com:44 | ||
- uses: actions/[email protected] | ||
- name: Label Pull Request | ||
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- main | ||
paths-ignore: | ||
- .cruft.json | ||
- CHANGES.rst | ||
- CHANGELOG.rst | ||
- README.rst | ||
- pyproject.toml | ||
- setup.cfg | ||
|
@@ -40,10 +40,12 @@ jobs: | |
files.pythonhosted.org:443 | ||
github.com:443 | ||
pypi.org:443 | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
- name: Setup Python${{ matrix.python-version }} | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install tox | ||
run: | | ||
python -m pip install tox | ||
|
@@ -78,17 +80,22 @@ jobs: | |
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | ||
with: | ||
egress-policy: audit | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
- name: Setup Conda (Micromamba) with Python ${{ matrix.python-version }} | ||
uses: mamba-org/[email protected] | ||
uses: mamba-org/setup-micromamba@422500192359a097648154e8db4e39bdb6c6eed7 # v1.8.1 | ||
with: | ||
cache-downloads: true | ||
environment-name: xscen-pypi | ||
create-args: >- | ||
esmf=${{ env.esmf-version }} | ||
mamba | ||
python=${{ matrix.python-version }} | ||
babel | ||
tox | ||
- name: Compile catalogs | ||
run: | | ||
make translate | ||
- name: Test with tox | ||
run: | | ||
python -m tox -e ${{ matrix.tox-build }} | ||
|
@@ -142,9 +149,10 @@ jobs: | |
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | ||
with: | ||
egress-policy: audit | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
- name: Setup Conda (Micromamba) with Python ${{ matrix.python-version }} | ||
uses: mamba-org/[email protected] | ||
uses: mamba-org/setup-micromamba@422500192359a097648154e8db4e39bdb6c6eed7 # v1.8.1 | ||
with: | ||
cache-downloads: true | ||
cache-environment: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,10 @@ jobs: | |
github.com:443 | ||
pypi.org:443 | ||
upload.pypi.org:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
- name: Set up Python3 | ||
uses: actions/[email protected] | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Install packaging libraries | ||
|
@@ -40,4 +41,4 @@ jobs: | |
make translate | ||
python -m build --sdist --wheel | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/[email protected] | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # 2.0.5 | ||
env: | ||
# This token is provided by Actions, you do not need to create your own token | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -51,9 +51,10 @@ jobs: | |
github.com:443 | ||
pypi.org:443 | ||
test.pypi.org:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
- name: Set up Python3 | ||
uses: actions/[email protected] | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Install packaging libraries | ||
|
@@ -64,7 +65,7 @@ jobs: | |
make translate | ||
python -m build --sdist --wheel | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/[email protected] | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
skip-existing: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.