Skip to content

Commit

Permalink
Merge 87de484 into 3981884
Browse files Browse the repository at this point in the history
  • Loading branch information
ungarj committed Nov 9, 2022
2 parents 3981884 + 87de484 commit 5ea77e7
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 64 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
CURL_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r test/requirements.txt
pip install -e .[test]
- name: Lint with flake8
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install hatch
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }}
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
hatch build
hatch publish
11 changes: 6 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tile pyramids, it also supports geodetic (WGS84) tile pyramids.
------------
Installation
------------

Use ``conda`` to install the latest stable version:

.. code-block:: shell
Expand Down Expand Up @@ -121,11 +122,11 @@ pyramid:
$ tmx -output_format GeoJSON -grid mercator bbox 4 15 15
{"type": "Polygon", "coordinates": [[[20037508.342789203, -20037508.3427892], [20037508.342789203, -17532819.799940553], [17532819.799940553, -17532819.799940553], [17532819.799940553, -20037508.3427892], [20037508.342789203, -20037508.3427892]]]}
----------
----------------
Conda Publishing
----------
----------------

Use bot pull requests generated with every release at `tilematrix-feedstock`_ repository for releasing new versions on `conda-forge`
Use bot pull requests generated with every release at tilematrix-feedstock_ repository for releasing new versions on ``conda-forge``.


-------
Expand All @@ -134,8 +135,8 @@ License

MIT License

Copyright (c) 2015, 2016, 2017 `EOX IT Services`_
Copyright (c) 2015-2022 `EOX IT Services`_

.. _`EOX IT Services`: https://eox.at/

.. _`tilematrix-feedstock`: <https://github.com/conda-forge/tilematrix-feedstock>
.. _`tilematrix-feedstock`: https://github.com/conda-forge/tilematrix-feedstock
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "tilematrix"
dynamic = ["version"]
description = "helps handling tile pyramids"
readme = "README.rst"
license = "MIT"
authors = [
{ name = "Joachim Ungar", email = "joachim.ungar@gmail.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: GIS",
]
dependencies = [
"affine",
"click",
"geojson",
"rasterio>=1.0.21",
"shapely",
]

[project.scripts]
tmx = "tilematrix.tmx.main:tmx"

[project.urls]
Homepage = "https://github.com/ungarj/tilematrix"

[project.optional-dependencies]
test = [
"black",
"coveralls",
"flake8",
"pre-commit",
"pytest",
"pytest-cov"
]

[tool.hatch.version]
path = "tilematrix/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/tilematrix",
]

[tool.black]
include = '\.pyi?$'
exclude = '''
Expand Down
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

0 comments on commit 5ea77e7

Please sign in to comment.