-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from lbl-anp/v0.4.2
Version v0.4.2 and pre-commit rules/CI integration
- Loading branch information
Showing
10 changed files
with
33 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
# Exclude CNF and cnf files | ||
exclude: '(?:\.cnf|\.CNF)$' | ||
repos: | ||
- repo: https://github.com/psf/black | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: check-toml | ||
- id: check-yaml | ||
- repo: https://github.com/psf/black | ||
rev: 21.4b2 | ||
hooks: | ||
- id: black |
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 |
---|---|---|
@@ -1,43 +1,13 @@ | ||
## 1. Create Tagged Release | ||
# Create Tagged Release | ||
|
||
We follow the `git flow` [release process](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow). | ||
We (loosely) follow the `git flow` [release process](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow). | ||
|
||
- [ ] Pull the most recent version of `main` | ||
- [ ] Branch off of `main` and name the branch `release-X.X.X` or `hotfix-X` | ||
- [ ] Update version number within the repository | ||
- in `setup.py` | ||
- in Copyright Notice in `README` | ||
- in the `LICENSE` | ||
- [ ] Update classifiers in `setup.py` | ||
- [ ] Verify that all tests pass (`python setup.py test`) | ||
- [ ] Branch off of `main` and name the branch `release-X.X.X` or `hotfix-X` or `vX.X.X` | ||
- [ ] Update version number within the repository with `bump2version` | ||
- [ ] Commit the changes, push to GitHub, and start a pull request into `main` | ||
- [ ] Approve PR, merge it into `main`, and delete release or hotfix branch | ||
- [ ] Create tagged version (`X.X.X`) on [GitHub](https://github.com/lbl-anp/becquerel/releases/new) pointing to the merge commit to `main` | ||
- [ ] Once PR approved, merge it into `main`, and delete release branch. | ||
- [ ] Create tagged version (`vX.X.X`) on [GitHub](https://github.com/lbl-anp/becquerel/releases/new) pointing to the merge commit to `main` | ||
- [ ] Add release notes to the tag on GitHub with a list of changes | ||
|
||
## 2. Distribution Creation/Upload | ||
|
||
- [ ] Create distribution | ||
```bash | ||
git pull | ||
git checkout X.X.X | ||
rm dist/* | ||
python3 -m pip install --user --upgrade setuptools wheel | ||
python3 setup.py sdist bdist_wheel --universal | ||
``` | ||
- [ ] Test distribution | ||
```bash | ||
python3 -m pip install dist/becquerel-X.X.X-py2.py3-none-any.whl | ||
python3 -m pip install dist/becquerel-X.X.X.tar.gz | ||
``` | ||
- [ ] Upload new version to PyPI | ||
```bash | ||
python3 -m pip install --user --upgrade twine | ||
python3 -m twine upload dist/* | ||
``` | ||
- [ ] Test new version installs from PyPI | ||
```bash | ||
cd .. | ||
python3 -m pip install becquerel | ||
python3 -c "import becquerel; print(becquerel.__version__)" | ||
``` | ||
Once the release is submitted and `main` is tagged, github actions will automatically deploy to `pypi`. |
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 @@ | |
__email__ = "[email protected]" | ||
__description__ = "Tools for radiation spectral analysis." | ||
__url__ = "https://github.com/lbl-anp/becquerel" | ||
__version__ = "0.4.1" | ||
__version__ = "0.4.2" | ||
# classifiers from list at https://pypi.org/classifiers/ | ||
__classifiers__ = [ | ||
"Development Status :: 4 - Beta", | ||
|
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
2 changes: 1 addition & 1 deletion
2
tests/samples_converted/01122014152731-GT01122014182338-GA37.4963000N-GO122.4633000W.spe
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
$SPEC_ID: | ||
Sample title. | ||
Sample title. | ||
|
||
$MEAS_TIM: | ||
841.42000 849.51000 | ||
|