-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
huge amount of misc maint fixes in preparation for 0.5 (#68)
* huge amount of misc maint fixes * add tools for release automation * add numpy to setup py installs
- Loading branch information
1 parent
8896a67
commit d2babe4
Showing
15 changed files
with
246 additions
and
122 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Python build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
create: | ||
branches: [master] | ||
tags: ['**'] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Update pip and wheel | ||
run: python -m pip install --upgrade pip wheel | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Build sdist | ||
run: python setup.py sdist | ||
- name: Install sdist | ||
run: pip install ./dist/pybv-* | ||
- name: Clean up working directory | ||
run: rm -rf ./* | ||
- name: Try importing pybv | ||
run: python -c 'import pybv; print(pybv.__version__)' | ||
- name: Remove sdist install | ||
run: pip uninstall -y pybv | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Build wheel | ||
run: python setup.py bdist_wheel | ||
- name: Install wheel | ||
run: pip install ./dist/pybv-*.whl | ||
- name: Clean up working directory | ||
run: rm -rf ./* | ||
- name: Try importing pybv | ||
run: python -c 'import pybv; print(pybv.__version__)' | ||
- name: Remove wheel install | ||
run: pip uninstall -y pybv |
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,31 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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 +1,18 @@ | ||
include MANIFEST.in | ||
include README.rst | ||
include LICENSE | ||
include requirements.txt | ||
include requirements-dev.txt | ||
|
||
graft docs | ||
graft pybv | ||
graft specification | ||
|
||
recursive-exclude pybv/__pycache__ * | ||
recursive-exclude pybv/tests/__pycache__ * | ||
recursive-exclude docs/_build * | ||
recursive-exclude docs/generated * | ||
recursive-exclude .github * | ||
|
||
exclude .gitignore | ||
exclude Makefile |
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.