-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into joss-submission
- Loading branch information
Showing
6 changed files
with
201 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
build_test: | ||
docker: | ||
- image: cimg/python:3.12 | ||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Build (build_test) | ||
command: python3 setup.py sdist bdist_wheel | ||
|
||
- run: | ||
name: Check if wheel file exists (build_test) | ||
command: ls -l dist/ | ||
|
||
- run: | ||
name: Set wheel filename (build_test) | ||
command: | | ||
export WHL_FILENAME=$(ls dist/*.whl) | ||
echo "WHEEL FILE: $WHL_FILENAME" | ||
- run: | ||
name: Install dependencies (build_test) | ||
command: | | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install -r requirements.txt | ||
- run: | ||
name: Install package (build_test) | ||
command: | | ||
. venv/bin/activate | ||
export WHL_FILENAME=$(ls dist/*.whl) | ||
pip install $WHL_FILENAME | ||
- run: | ||
name: Install pytest (build_test) | ||
command: | | ||
. venv/bin/activate | ||
pip install pytest | ||
- run: | ||
name: Run Tests (build_test) | ||
command: | | ||
. venv/bin/activate | ||
pytest | ||
- store_test_results: | ||
path: test-reports | ||
|
||
test_pypi_publish: | ||
docker: | ||
- image: cimg/python:3.12 | ||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Create whl (test_pypi_publish) | ||
command: python3 setup.py sdist bdist_wheel | ||
|
||
- run: | ||
name: Check if wheel file exists (test_pypi_publish) | ||
command: ls -l dist/ | ||
|
||
- run: | ||
name: Install dependencies (test_pypi_publish) | ||
command: | | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install -r requirements.txt | ||
- run: | ||
name: Install twine (test_pypi_publish) | ||
command: | | ||
. venv/bin/activate | ||
pip install twine | ||
- run: | ||
name: Publish on TestPyPI | ||
command: | | ||
. venv/bin/activate | ||
twine upload -u ${TESTPYPI_USERNAME} -p ${TESTPYPI_PASSWORD} --repository testpypi dist/* --verbose | ||
pypi_publish: | ||
docker: | ||
- image: cimg/python:3.12 | ||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Create whl (pypi_publish) | ||
command: python3 setup.py sdist bdist_wheel | ||
|
||
- run: | ||
name: Check if wheel file exists (pypi_publish) | ||
command: ls -l dist/ | ||
|
||
- run: | ||
name: Install dependencies (pypi_publish) | ||
command: | | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install -r requirements.txt | ||
- run: | ||
name: Install twine (pypi_publish) | ||
command: | | ||
. venv/bin/activate | ||
pip install twine | ||
- run: | ||
name: Publish on PyPI | ||
command: | | ||
. venv/bin/activate | ||
twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* --verbose | ||
workflows: | ||
build_test_publish: | ||
jobs: | ||
- build_test | ||
- test_pypi_publish: | ||
requires: | ||
- build_test | ||
filters: | ||
branches: | ||
only: | ||
- develop | ||
- pypi_publish: | ||
requires: | ||
- build_test | ||
filters: | ||
branches: | ||
only: | ||
- main |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [1.0.3] - 2024-07-27 | ||
### Bug Fixes | ||
- Deploying documentation | ||
|
||
## [1.0.2] - 2024-07-27 | ||
### Added | ||
- Improved CI/CD pipeline by ensuring up-to-date gh-pages branch before deployment. | ||
- Updated installation instructions to include pip installation from PyPI. | ||
|
||
## [1.0.1] - 2024-07-27 | ||
### Added | ||
- Added `CHANGELOG.md` file to document changes. | ||
- Published project to PyPI. | ||
- Integrated CircleCI for continuous integration and deployment. | ||
|
||
## [1.0.0] - 2024-07-16 | ||
### Initial Release | ||
- Initial release of LorenzCycleToolkit. | ||
- Implemented core functionalities for calculating the Lorenz Energy Cycle (LEC) in specific atmospheric regions. | ||
- Added support for both Eulerian and Semi-Lagrangian frameworks. | ||
- Provided options for fixed and moving computational domains. | ||
- Generated detailed results in CSV format for energy, conversion, and generation terms. | ||
- Included automatic plot generation for spatial and temporal analysis. | ||
- Utilized Xarray, Dask, Pandas, and MetPy for data handling and computations. | ||
- Comprehensive documentation and usage examples. |
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