-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test-publish workflow * Update the release procedure * Add publish-on-pypi workflow * Try removing versioneer * remove get_version() from __init__.py * Move setup-config to cfg * Fix linebreak in requirements list and formatting * Fix more linebreaks in requirements * Add package-directory directive * Add explanations to the "publish"-workflow, remove test-publish workflow * Update the release procedure some more * Add a more elegant way to get the version number * Add highlights to release notes * Update the installation page * Make black * Python 3.7 doesn't support extras-require in setup.cfg with `-` * Remove argparse dependency * Shorten the badges for the listserv * Fix package name * Try alternative approach for version number * Try adding importlib-metadata explicitly * Try adding importlib explicitly * Yet another try to read the version number * Appease stickler * Add classifiers and documentation url * Add logos to the docs folder * Implement changes requested by @gidden * Add explicit item numbers in the release procedure, minor edits * Harmonize workflow names * Update R-tutorial to include reading data from an IIASA data resource
- Loading branch information
1 parent
bb3ded4
commit 2d9e0d8
Showing
22 changed files
with
304 additions
and
2,637 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
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
# build the package on any push to a release-candidate branch | ||
branches: [ "release/rc_v*" ] | ||
# deploy to test-pypi on any push of a version tag | ||
tags: [ "v*" ] | ||
release: | ||
# deploy to pypi when publishing a new release | ||
types: [ published ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
|
||
- name: Cache Python packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
key: publish-${{ runner.os }} | ||
|
||
- name: Upgrade pip, wheel, setuptools-scm | ||
run: python -m pip install --upgrade pip wheel setuptools-scm twine | ||
|
||
- name: Build package | ||
run: | | ||
python3 setup.py bdist_wheel sdist | ||
twine check dist/* | ||
- name: Publish to TestPyPI | ||
uses: pypa/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TESTPYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/[email protected] | ||
if: github.event_name == 'release' | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.