-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Stamen to HOT * update tests * MAINT: update infrastructure * relax tests
- Loading branch information
1 parent
6c2feee
commit 603e3b5
Showing
9 changed files
with
165 additions
and
359 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Publish contextily to PyPI / GitHub | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish contextily to PyPI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Build a binary wheel and a source tarball | ||
run: | | ||
python -m pip install --upgrade build | ||
python -m build | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Get Asset name | ||
run: | | ||
export PKG=$(ls dist/ | grep tar) | ||
set -- $PKG | ||
echo "name=$1" >> $GITHUB_ENV | ||
- name: Upload Release Asset (sdist) to GitHub | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: dist/${{ env.name }} | ||
asset_name: ${{ env.name }} | ||
asset_content_type: application/zip |
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 @@ | ||
include LICENSE.txt README.md requirements.txt | ||
include LICENSE.txt README.md |
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,47 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
|
||
[project] | ||
name = "contextily" | ||
dynamic = ["version"] | ||
authors = [ | ||
{name = "Dani Arribas-Bel", email = "daniel.arribas.bel@gmail.com"}, | ||
] | ||
maintainers = [ | ||
{name = "contextily contributors"}, | ||
] | ||
license = {text = "3-Clause BSD"} | ||
description = "Context geo-tiles in Python" | ||
readme = "README.md" | ||
classifiers = [ | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
"Framework :: Matplotlib", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"geopy", | ||
"matplotlib", | ||
"mercantile", | ||
"pillow", | ||
"rasterio", | ||
"requests", | ||
"joblib", | ||
"xyzservices" | ||
] | ||
|
||
[project.urls] | ||
Home = "https://github.com/geopandas/contextily" | ||
Repository = "https://github.com/geopandas/contextily" | ||
|
||
[tool.setuptools.packages.find] | ||
include = [ | ||
"contextily", | ||
"contextily.*", | ||
] | ||
|
||
[tool.coverage.run] | ||
omit = ["tests/*"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.