Skip to content

Commit

Permalink
Merge pull request #80 from dwhswenson/bump-0.3.1.dev0
Browse files Browse the repository at this point in the history
Bump 0.3.1.dev0
  • Loading branch information
dwhswenson authored Jun 15, 2024
2 parents d94f993 + 85777bc commit 4a9d497
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 18 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/autorelease-default-env.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
INSTALL_AUTORELEASE="python -m pip install autorelease==0.2.6"
# Vendored from Autorelease 0.5.1
# Update by updating Autorelease and running `autorelease vendor actions`
INSTALL_AUTORELEASE="python -m pip install autorelease==0.5.1"
if [ -f autorelease-env.sh ]; then
source autorelease-env.sh
fi
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/autorelease-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Autorelease
# Vendored from Autorelease 0.5.1
# Update by updating Autorelease and running `autorelease vendor actions`
name: "Autorelease Deploy"
on:
release:
types: [published]

jobs:
deploy_pypi:
if: ${{ github.repository == 'openpathsampling/openpathsampling-cli' }}
runs-on: ubuntu-latest
name: "Deploy to PyPI"
steps:
Expand All @@ -17,7 +20,11 @@ jobs:
if [ -f "autorelease-env.sh" ]; then
cat autorelease-env.sh >> $GITHUB_ENV
fi
eval $INSTALL_AUTORELEASE
if [ -f "./.autorelease/install-autorelease" ]; then
source ./.autorelease/install-autorelease
else
eval $INSTALL_AUTORELEASE
fi
name: "Install autorelease"
- run: |
python -m pip install twine wheel
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/autorelease-gh-rel.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Autorelease
# Vendored from Autorelease 0.5.1
# Update by updating Autorelease and running `autorelease vendor actions`
name: "Autorelease Release"
on:
push:
branches:
# TODO: this should come from yaml conf
- stable

jobs:
release-gh:
if: ${{ github.repository == 'openpathsampling/openpathsampling-cli' }}
runs-on: ubuntu-latest
name: "Cut release"
steps:
Expand All @@ -18,7 +22,11 @@ jobs:
if [ -f "autorelease-env.sh" ]; then
cat autorelease-env.sh >> $GITHUB_ENV
fi
eval $INSTALL_AUTORELEASE
if [ -f "./.autorelease/install-autorelease" ]; then
source ./.autorelease/install-autorelease
else
eval $INSTALL_AUTORELEASE
fi
name: "Install autorelease"
- run: |
VERSION=`python setup.py --version`
Expand All @@ -27,3 +35,4 @@ jobs:
autorelease-release --project $PROJECT --version $VERSION --token $AUTORELEASE_TOKEN
env:
AUTORELEASE_TOKEN: ${{ secrets.AUTORELEASE_TOKEN }}
name: "Cut release"
31 changes: 25 additions & 6 deletions .github/workflows/autorelease-prep.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: "Autorelease"
# Vendored from Autorelease 0.5.1
# Update by updating Autorelease and running `autorelease vendor actions`
name: "Autorelease testpypi"
on:
pull_request:
branches:
# TODO: this should come from yaml conf
- stable

defaults:
Expand All @@ -10,6 +13,7 @@ defaults:

jobs:
deploy_testpypi:
if: ${{ github.repository == 'openpathsampling/openpathsampling-cli' }}
runs-on: ubuntu-latest
name: "Deployment test"
steps:
Expand All @@ -22,10 +26,14 @@ jobs:
if [ -f "autorelease-env.sh" ]; then
cat autorelease-env.sh >> $GITHUB_ENV
fi
eval $INSTALL_AUTORELEASE
if [ -f "./.autorelease/install-autorelease" ]; then
source ./.autorelease/install-autorelease
else
eval $INSTALL_AUTORELEASE
fi
name: "Install autorelease"
- run: |
python -m pip install twine wheel
python -m pip install twine wheel setuptools
name: "Install release tools"
- run: |
bump-dev-version
Expand All @@ -41,6 +49,7 @@ jobs:
repository_url: https://test.pypi.org/legacy/
name: "Deploy to testpypi"
test_testpypi:
if: ${{ github.repository == 'openpathsampling/openpathsampling-cli' }}
runs-on: ubuntu-latest
name: "Test deployed"
needs: deploy_testpypi
Expand All @@ -54,7 +63,17 @@ jobs:
if [ -f "autorelease-env.sh" ]; then
cat autorelease-env.sh >> $GITHUB_ENV
fi
eval $INSTALL_AUTORELEASE
if [ -f "./.autorelease/install-autorelease" ]; then
source ./.autorelease/install-autorelease
else
eval $INSTALL_AUTORELEASE
fi
name: "Install autorelease"
- run: test-testpypi

- name: "Install testpypi version"
run: install-testpypi
- name: "Test testpypi version"
run: |
if [ -f "autorelease-env.sh" ]; then
cat autorelease-env.sh >> $GITHUB_ENV
fi
test-testpypi
2 changes: 1 addition & 1 deletion autorelease-env.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
INSTALL_AUTORELEASE="python -m pip install autorelease==0.2.3 nose sqlalchemy dill"
INSTALL_AUTORELEASE="python -m pip install autorelease==0.5 nose sqlalchemy dill"
PACKAGE_IMPORT_NAME=paths_cli
9 changes: 3 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = openpathsampling-cli
version = 0.2.2.dev0
version = 0.3.1.dev0
# version should end in .dev0 if this isn't to be released
description = Command line tool for OpenPathSampling
long_description = file: README.md
Expand All @@ -18,16 +18,13 @@ classifiers =
Programming Language :: Python :: 3

[options]
python_requires = >= 3.7
python_requires = >= 3.10
install_requires =
click
tqdm
openpathsampling >= 1.2
openpathsampling >= 1.6
packages = find:

[options.entry_points]
console_scripts =
openpathsampling = paths_cli.cli:main

[bdist_wheel]
universal=1

0 comments on commit 4a9d497

Please sign in to comment.