File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2- _commit : v0.4.1
2+ _commit : v0.5.0
33_src_path : /Users/znicholls/Documents/repos/copier-core-python-repository
44email : zebedee.nicholls@climate-energy-college.org
55initial_setup : true
Original file line number Diff line number Diff line change 22name : Feature Request
33about : Request a feature or suggest an idea for this project
44title : ' '
5- labels : feature-request
5+ labels : feature
66assignees : ' '
7+
78---
89
910## The motivation
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ runs:
4040 shell : bash
4141 run : |
4242 # This line used to be needed, but seems to have been
43- # sorted with newer poetry versions. The check is whether
44- # the right version of python is shown below after running
45- # `poetry run which python` and whether the right version
46- # of python is used in the tests
43+ # sorted with newer poetry versions. We can still check whether
44+ # the right version of python is used by looking at the output of
45+ # `poetry run which python` below and whether the right version
46+ # of python is used in the tests (or whatever step is being done)
4747 # poetry env use "python${{ inputs.python-version }}"
4848 poetry config virtualenvs.create true
4949 poetry config virtualenvs.in-project true
5454 poetry install --no-interaction --no-root ${{ inputs.poetry-dependency-install-flags }}
5555 # Now run same command but let the package install too
5656 - name : Install package
57+ # To ensure that the package is always installed, this step is run even if the cache was hit
5758 if : ${{ inputs.run-poetry-install == 'true' }}
5859 shell : bash
5960 run : |
File renamed without changes.
Original file line number Diff line number Diff line change @@ -47,14 +47,21 @@ jobs:
4747 - name : Create bump and changelog
4848
4949 run : |
50- BASE_VERSION=`poetry version -s`
51- NEW_VERSION=`poetry version -s ${{ github.event.inputs.bump_rule }}`
52- poetry run towncrier build --yes --version v$NEW_VERSION
53-
5450 git config --global user.name "$GITHUB_ACTOR"
5551 git config --global user.email "$CI_COMMIT_EMAIL"
5652
53+ # Bump
54+ BASE_VERSION=`poetry version -s`
55+ NEW_VERSION=`poetry version -s ${{ github.event.inputs.bump_rule }}`
56+ echo "Bumping version $BASE_VERSION > $NEW_VERSION"
57+ poetry run towncrier build --yes --version v$NEW_VERSION
5758 git commit -a -m "bump: version $BASE_VERSION -> $NEW_VERSION"
5859 git tag v$NEW_VERSION
60+
61+ # Bump to alpha (so that future commits do not have the same
62+ # version as the tagged commit)
63+ BASE_VERSION=`poetry version -s`
64+ NEW_VERSION=`poetry version -s prerelease`
65+ echo "Bumping version $BASE_VERSION > $NEW_VERSION"
66+ git commit -a -m "bump(pre-release): version $BASE_VERSION > $NEW_VERSION"
5967 git push && git push --tags
60- echo "Bumped to version $NEW_VERSION"
Original file line number Diff line number Diff line change 1616 uses : actions/checkout@v3
1717 - uses : ./.github/actions/setup
1818 with :
19- os : ubuntu-latest
19+ os : " ubuntu-latest"
2020 python-version : " 3.9"
2121 venv-id : " docs"
2222 poetry-dependency-install-flags : " --all-extras --only 'main,dev'"
3131 uses : actions/checkout@v3
3232 - uses : ./.github/actions/setup
3333 with :
34- os : ubuntu-latest
34+ os : " ubuntu-latest"
3535 python-version : " 3.9"
3636 venv-id : " docs"
3737 poetry-dependency-install-flags : " --all-extras --only 'main,docs'"
5252 runs-on : " ${{ matrix.os }}"
5353 defaults :
5454 run :
55- shell : bash # Need this for windows to not explode apparently
55+ # This might be needed for Windows and doesn't seem to affect unix-based systems
56+ # so we include it. If you have better proof of whether this is needed or not,
57+ # feel free to update.
58+ shell : bash
5659 steps :
5760 - name : Check out repository
5861 uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1+ # ruff
2+ .ruff_cache
3+
14# Notebooks
25* .ipynb
36
Original file line number Diff line number Diff line change 1818export PRINT_HELP_PYSCRIPT
1919
2020
21+ .PHONY : help
2122help : # # print short description of each target
2223 @python3 -c " $$ PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST )
2324
Original file line number Diff line number Diff line change 1+ Updated to CICERO-SCM v1.1.1
2+
3+ This also removes the pin on Pandas when installing CICERO-SCM's python port
Original file line number Diff line number Diff line change 1+ Updated to use v0.5.0 of the copier template
2+
3+ This fixes up the docs theme and some other workflow bits and pieces.
You can’t perform that action at this time.
0 commit comments