-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix manifest, use pep517/518, update GHA
- Loading branch information
Showing
16 changed files
with
72 additions
and
2,480 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
24 changes: 11 additions & 13 deletions
24
.github/workflows/publish.yml → .github/workflows/pypi.yml
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,47 +1,45 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
on: ["push", "pull_request"] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
packages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Get tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
shell: bash | ||
|
||
- name: Install build tools | ||
run: | | ||
python -m pip install --upgrade pip wheel setuptools setuptools_scm build jinja2 | ||
shell: bash | ||
python -m pip install --upgrade pip build wheel twine check-manifest | ||
- name: Build binary wheel | ||
run: python -m build --sdist --wheel . --outdir dist | ||
|
||
- name: CheckFiles | ||
run: | | ||
check-manifest --verbose | ||
ls dist | ||
shell: bash | ||
- name: Test wheels | ||
run: | | ||
cd dist && python -m pip install branca*.whl | ||
python -m twine check * | ||
shell: bash | ||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
if: ${{ github.event_name == 'release' }} | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
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,46 +1,33 @@ | ||
name: Code Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master, main] | ||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
- name: Setup Micromamba | ||
uses: mamba-org/provision-with-micromamba@v14 | ||
with: | ||
update-conda: true | ||
activate-conda: false | ||
conda-channels: conda-forge | ||
environment-file: false | ||
|
||
- name: Python ${{ matrix.python-version }} | ||
shell: bash -l {0} | ||
run: | | ||
conda create --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt | ||
source activate TEST | ||
micromamba create --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt --channel conda-forge | ||
micromamba activate TEST | ||
pip install -e . --no-deps --force-reinstall | ||
- name: Debug Installation | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
which python | ||
conda info --all | ||
conda list | ||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
pytest -vv -rxs tests -m "not headless" | ||
micromamba activate TEST | ||
python -m pytest -vv -rxs tests -m "not headless" |
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,35 +1,28 @@ | ||
name: Notebook Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
- name: Setup Micromamba | ||
uses: mamba-org/provision-with-micromamba@v14 | ||
with: | ||
update-conda: true | ||
activate-conda: false | ||
conda-channels: conda-forge | ||
environment-file: false | ||
|
||
- name: Python 3.9 | ||
- name: Python 3 | ||
shell: bash -l {0} | ||
run: | | ||
conda create --name TEST python=3.9 pip --file requirements.txt --file requirements-dev.txt | ||
source activate TEST | ||
micromamba create --name TEST python=3 pip --file requirements.txt --file requirements-dev.txt --channel conda-forge | ||
micromamba activate TEST | ||
pip install -e . --no-deps --force-reinstall | ||
conda info --all | ||
conda list | ||
- name: Notebook tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
pytest --nbval-lax examples | ||
micromamba activate TEST | ||
python -m pytest --nbval-lax examples |
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,35 +1,28 @@ | ||
name: Headless Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
- name: Setup Micromamba | ||
uses: mamba-org/provision-with-micromamba@v14 | ||
with: | ||
update-conda: true | ||
activate-conda: false | ||
conda-channels: conda-forge | ||
environment-file: false | ||
|
||
- name: Python 3.9 | ||
- name: Python 3 | ||
shell: bash -l {0} | ||
run: | | ||
conda create --name TEST python=3.9 pip --file requirements.txt --file requirements-dev.txt | ||
source activate TEST | ||
micromamba create --name TEST python=3 pip --file requirements.txt --file requirements-dev.txt --channel conda-forge | ||
micromamba activate TEST | ||
pip install -e . --no-deps --force-reinstall | ||
conda info --all | ||
conda list | ||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
micromamba activate TEST | ||
pytest -vv -rxs tests -m "headless" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -59,3 +59,4 @@ geckodriver.log | |
|
||
# Pycharm | ||
.idea/ | ||
branca/_version.py |
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,13 +1,21 @@ | ||
include *.txt | ||
include README.rst | ||
include README.md | ||
include branca/_cnames.json | ||
include branca/_schemes.json | ||
include branca/scheme_info.json | ||
include branca/scheme_base_codes.json | ||
include pyproject.toml | ||
|
||
recursive-include branca *.py | ||
recursive-include branca *.js | ||
recursive-include branca/plugins * | ||
recursive-include branca/templates * | ||
include versioneer.py | ||
include branca/_version.py | ||
graft branca | ||
|
||
prune docs | ||
prune tests | ||
prune examples | ||
prune *.egg-info | ||
|
||
exclude *.yml | ||
exclude .pre-commit-config.yaml | ||
exclude .gitignore | ||
exclude .isort.cfg | ||
exclude branca/_version.py | ||
exclude .github |
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.