Skip to content

Commit

Permalink
Improved packaging mark 8 (#302)
Browse files Browse the repository at this point in the history
* Trying out wait functionality

* Updated CI

* bumped version

* Moved aur build from CI to build after confirming it works

* Specified that pypi release is needed for aur release

* Specified that pypi release is need for aur release

* Updated CI

* Correct yaml

* Corrected yaml in build

* Removed cibuildwheels -- we don't need it for a pure python package

* downgraded relative number

* Added reviewers to pyproject.toml

* Moved contributors into authors
  • Loading branch information
williamjameshandley authored Jun 19, 2023
1 parent 9a542e8 commit 98a4eb2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}

aur-release:
needs: pypi-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -62,6 +63,17 @@ jobs:
python -m pip install tomli
- name: Generate PKGBUILD
run: python ./bin/gen_PKGBUILD.py > ./PKGBUILD
- name: Get version number
run: |
VERSION="$(cat ./PKGBUILD | grep pkgver= | awk -F= '{print $2}')"
echo "DIST_VERSION=${VERSION}" >> $GITHUB_ENV
- name: Wait for PyPi
uses: nev7n/wait_for_response@v1
with:
url: "https://files.pythonhosted.org/packages/source/a/anesthetic/anesthetic-${{ env.DIST_VERSION }}.tar.gz"
responseCode: 200
timeout: 600000
interval: 10000
- name: Publish AUR package
uses: KSXGitHub/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
anesthetic: nested sampling post-processing
===========================================
:Authors: Will Handley and Lukas Hergt
:Version: 2.0.0-beta.39
:Version: 2.0.0-beta.40
:Homepage: https://github.com/handley-lab/anesthetic
:Documentation: http://anesthetic.readthedocs.io/

Expand Down
2 changes: 1 addition & 1 deletion anesthetic/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0b39'
__version__ = '2.0.0b40'
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ authors = [
{ name="Andrew Fowlie", email="[email protected]" },
{ name="Thomas Gessey-Jones", email="[email protected]"},
{ name="Stefan Heimersheim", email="[email protected]" },
{ name="Pablo Lemos", email="[email protected]" },
{ name="Toby Lovick", email="[email protected]"},
{ name="Aleksandr Petrosyan", email="[email protected]" },
{ name="Liangliang Su", email="[email protected]"},
{ name="David Yallup", email="[email protected]" },
]
Expand Down

0 comments on commit 98a4eb2

Please sign in to comment.