Skip to content

Commit

Permalink
bump version for patch release (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns authored Oct 11, 2023
2 parents 8e3d1b5 + 3f58ac3 commit 08fa865
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 54 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/publish_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,9 @@ on:
workflow_dispatch:

jobs:
check-for-new-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Check PyPI version
uses: maybe-hello-world/pyproject-check-version@v3
id: versioncheck
with:
pyproject-path: "./pyproject.toml"

- name: Report Results
run: |
echo "New Release found? ${{ steps.versioncheck.outputs.local_version_is_higher }}"
echo "Local version: ${{ steps.versioncheck.outputs.local_version }}"
echo "Public version: ${{ steps.versioncheck.outputs.public_version }}"
outputs:
do_publish: ${{ steps.versioncheck.outputs.local_version_is_higher }}

pypi:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
needs: check-for-new-release
if: ${{ needs.check-for-new-release.outputs.do_publish == 'true' }}
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
Expand All @@ -56,36 +35,4 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
verbose: true
conda:
name: Build and publish Conda distrbutions
needs: pypi # wait for pypi build to finish
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0} # login bash for conda calls
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
activate-environment: ""
- name: Install build dependencies
run: |
conda install conda-build anaconda-client
conda install -c conda-forge grayskull
conda config --set anaconda_upload yes
- name: Build and Push astartes
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
cd ..
sleep 60s # wait for the PyPI package to be visible
grayskull pypi astartes
cd astartes
conda build .

2 changes: 1 addition & 1 deletion astartes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# convenience import to enable 'from astartes import train_test_split'
from .main import train_test_split, train_val_test_split

__version__ = "1.1.2"
__version__ = "1.1.3"

# DO NOT do this:
# from .molecules import train_test_split_molecules
Expand Down

0 comments on commit 08fa865

Please sign in to comment.