Skip to content

Commit

Permalink
Merge pull request #52 from Scartography/release_2022.11.0
Browse files Browse the repository at this point in the history
Release 2022.11.0
  • Loading branch information
ungarj committed Nov 4, 2022
2 parents 881e36b + ba1b5b7 commit 9395207
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 8 deletions.
1 change: 1 addition & 0 deletions .conda/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$PYTHON setup.py install
50 changes: 50 additions & 0 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{% set name = "tilematrix" %}
{% set version = "2022.11.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/tilematrix-{{ version }}.tar.gz
sha256: cc7c28faee8a6949dedaeb37dc0a3739cfa5e64a164eee0eb7558e2ce9b2ef16

build:
entry_points:
- tmx=tilematrix.tmx.main:tmx
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0

requirements:
host:
- python >=3.6
- pytest-runner
- pip
run:
- python >=3.6
- affine
- click
- geojson
- rasterio >=1.0.21
- shapely

test:
imports:
- tilematrix
commands:
- pip check
- tmx --help
requires:
- pip

about:
home: https://github.com/ungarj/tilematrix
summary: helps handling tile pyramids
license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- ungarj
- Scartography
18 changes: 18 additions & 0 deletions .github/workflows/conda-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Upload Conda Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: publish-to-conda
uses: MichaelsJP/conda-package-publish-action@v1.0.0
with:
subDir: '.conda'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
platforms: 'all'
override: true
8 changes: 2 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@

name: Python package test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: [ 3.7, 3.8 ]
python-version: [ 3.7, 3.8, 3.9 ]
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
#########

2022.11.0 - 2022-11-03
----------------------
* test also for python `3.9`
* renaming `master` branch to `main`
* add ``conda`` publish to github actions (workflows)

2022.3.0 - 2022-03-15
---------------------
* add option to exactly get intersection tiles using `TilePyramid.tiles_from_geom(exact=True)`
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ tile pyramids, it also supports geodetic (WGS84) tile pyramids.
------------
Installation
------------
Use ``conda`` to install the latest stable version:

.. code-block:: shell
conda install -c conda-forge -y tilematrix
Use ``pip`` to install the latest stable version:

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: GIS',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.6, 3.8, 3.9'
],
setup_requires=['pytest-runner'],
tests_require=['pytest']
Expand Down
2 changes: 1 addition & 1 deletion tilematrix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
]


__version__ = "2022.3.0"
__version__ = "2022.11.0"

0 comments on commit 9395207

Please sign in to comment.