-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix for Raster initiation due to rasterio.Band
- Loading branch information
1 parent
f9508f4
commit 499f2f0
Showing
4 changed files
with
134 additions
and
93 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,26 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- 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 }} | ||
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tqdm | ||
rasterio | ||
geopandas | ||
numpy | ||
scipy | ||
shapely | ||
pandas | ||
matplotlib | ||
scikit-learn |
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,46 @@ | ||
import pathlib | ||
from setuptools import setup, find_packages | ||
|
||
# The directory containing this file | ||
HERE = pathlib.Path(__file__).parent | ||
|
||
# The text of the README file | ||
README = (HERE / "README.md").read_text() | ||
|
||
setup( | ||
# package metadata | ||
name="pyspatialml", | ||
version="0.21", | ||
author="Steven Pawley", | ||
author_email="[email protected]", | ||
description=("Machine learning for GIS spatial modelling"), | ||
long_description=README, | ||
long_description_content_type="text/markdown", | ||
license="GNU", | ||
keywords="GIS", | ||
url="https://github.com/stevenpawley/pyspatialml", | ||
|
||
# files/directories to be installed with package | ||
packages=find_packages(), | ||
package_data={ | ||
'': ['*.tif', '*.dbf', '*.prj', '*.shp', '*.shx'], | ||
}, | ||
include_package_data=True, | ||
|
||
# package dependencies | ||
install_requires=[ | ||
'numpy', | ||
'scipy', | ||
'tqdm', | ||
'rasterio>=1.0', | ||
'pandas', | ||
'shapely', | ||
'geopandas', | ||
'matplotlib', | ||
'scikit-learn'], | ||
python_requires='>=3.9', | ||
|
||
# testing | ||
setup_requires=['pytest-runner'], | ||
tests_require=['pytest'] | ||
) |