-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into time_conversion
- Loading branch information
Showing
21 changed files
with
470 additions
and
87 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
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 |
---|---|---|
@@ -1,28 +1,67 @@ | ||
name: Upload Python Package | ||
name: Bump version workflow | ||
|
||
on: | ||
release: | ||
types: [created] | ||
push: | ||
branches: | ||
- master | ||
- ci | ||
# - main | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
bump-version: | ||
name: Bump package version | ||
if: "!contains(github.event.head_commit.message, 'Bump version')" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: actions/checkout | ||
uses: actions/checkout@v2 | ||
# with: | ||
# persist-credentials: false | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
pip install build bump2version | ||
- name: Bump version | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ODA Release Bot" | ||
bump2version patch --verbose --commit --tag | ||
bump2version release --verbose --commit --tag | ||
git push --tags | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
|
||
- name: Build package | ||
run: python -m build | ||
|
||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
verify_metadata: false | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
#TODO: #211 fix this | ||
# - name: Conda publish | ||
# uses: silvxlabs/conda-skeleton-publish@v2 | ||
# with: | ||
# # Name of PyPI package | ||
# pypi_package: oda-api # optional | ||
# # Package version on PyPi | ||
# #package_version: # optional, default is latest | ||
# # Python version to build | ||
# #python_version: # optional | ||
# # Conda channels to use for building package | ||
# build_channels: conda-forge | ||
# # Conda channel to upload to | ||
# upload_channel: mmoda# optional | ||
# # Anaconda client access token | ||
# access_token: ${{ secrets.CONDA_ACCESS_TOKEN }} | ||
# # Platforms to publish | ||
# #platforms: # optional, default is win-64 osx-64 osx-arm64 linux-64 linux-aarch64 | ||
# # Set this to true if this is a stable release. Passese a `-l beta` arg if false. | ||
# #stable: # optional | ||
# # If true, waits for the PyPi package to become available. | ||
# wait: true # optional |
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 |
---|---|---|
@@ -1,2 +1,22 @@ | ||
github: | ||
build_pull_requests: true | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: doc/source/conf.py | ||
|
||
# We recommend specifying your dependencies to enable reproducible builds: | ||
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: doc/requirements.txt |
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
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
Oops, something went wrong.