diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c340d08..7239181 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,10 @@ jobs: python-version: ${{ matrix.python-version }} cache: "pip" + - name: Upgrade setuptools and pip + if: matrix.os == 'ubuntu-22.04' + run: pip install --upgrade setuptools pip + - name: Install dependencies run: pip install . diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..42db6c2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "geojsoncontour" +version = "0.5.0" +authors = [ + { name = "Bart Römgens", email = "bart.romgens@gmail.com" }, +] +license = { file = "LICENSE.md" } +description = "Convert matplotlib contour plots to geojson" +readme = "README.md" +keywords = ["contour", "plot", "geojson", "pyplot", "matplotlib", "gis", "map"] +requires-python = ">=3.9" +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] +dependencies = [ + "geojson", + "numpy", + "matplotlib>=3.8", + "xarray", +] +[project.urls] +Repository = "http://github.com/bartromgens/geojsoncontour" + +[tool.setuptools] +packages = ["geojsoncontour", "geojsoncontour.utilities"] diff --git a/setup.py b/setup.py deleted file mode 100644 index d472f7d..0000000 --- a/setup.py +++ /dev/null @@ -1,38 +0,0 @@ -from setuptools import setup - - -with open("README.md", "r") as fh: - long_description = fh.read() - - -setup( - name='geojsoncontour', - version='0.5.1', - description='Convert matplotlib contour plots to geojson', - long_description=long_description, - long_description_content_type="text/markdown", - keywords='contour plot geojson pyplot matplotlib gis map', - url='http://github.com/bartromgens/geojsoncontour', - author='Bart Römgens', - author_email='bart.romgens@gmail.com', - license='MIT', - packages=['geojsoncontour', 'geojsoncontour.utilities'], - install_requires=[ - 'geojson', - 'numpy', - 'matplotlib>=3.8', - 'xarray' - ], - zip_safe=False, - test_suite='tests', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - ], -)