Skip to content

Commit

Permalink
setup options to setup.cfg (#240)
Browse files Browse the repository at this point in the history
* setup options to setup.cfg

* whats new
  • Loading branch information
mathause committed Jul 29, 2021
1 parent a34ad2e commit a889680
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 31 deletions.
3 changes: 3 additions & 0 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Docs
Internal Changes
~~~~~~~~~~~~~~~~

- Moved contents of setup.py to setup.cfg.


v0.7.0 (28.07.2021)
-------------------
Expand All @@ -45,6 +47,7 @@ finalizes a number of deprecations, and restores compatibility with xarray 0.19.

Breaking Changes
~~~~~~~~~~~~~~~~

- Removed support for Python 2. This is the first version of regionmask that is Python 3 only!

- The minimum versions of some dependencies were changed (:pull:`220`):
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is redundant with setup.cfg;
# it exists to let GitHub build the repository dependency graph
# https://help.github.com/en/github/visualizing-repository-data-with-graphs/listing-the-packages-that-a-repository-depends-on

geopandas >= 0.6
numpy >= 1.17
pooch >= 1.0
Expand Down
37 changes: 37 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
[metadata]
name = regionmask
author = regionmask Developers
author_email = mathias.hauser@env.ethz.com
license = MIT
description = plotting and creation of masks for spatial regions
long_description_content_type=text/x-rst
long_description = See https://regionmask.readthedocs.io
url = https://github.com/regionmask/regionmask
classifiers =
Development Status :: 5 - Production/Stable
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Intended Audience :: Science/Research
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Atmospheric Science
Topic :: Scientific/Engineering :: GIS

[options]
packages = find:
zip_safe = False # https://mypy.readthedocs.io/en/latest/installed_packages.html
include_package_data = True
python_requires = >=3.6
install_requires =
geopandas >= 0.6
numpy >= 1.17
pooch >= 1.0
rasterio >= 1.0
shapely >= 1.6
xarray >= 0.15

[tool:pytest]
python_files = test_*.py
testpaths = regionmask/tests
Expand Down
34 changes: 3 additions & 31 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,10 @@
from setuptools import find_packages, setup
#!/usr/bin/env python
from setuptools import setup

# get version
with open("regionmask/version.py") as f:
line = f.readline().strip().replace(" ", "").replace('"', "")
version = line.split("=")[1]
__version__ = version


setup(
name="regionmask",
version=__version__,
description="plotting and creation of masks for spatial regions",
author="mathause",
author_email="mathias.hauser@env.ethz.com",
packages=find_packages(),
url="https://github.com/regionmask/regionmask",
install_requires=open("requirements.txt").read().strip().split("\n"),
extras_require={"docs": ["numpydoc", "jupyter", "nbconvert"]},
long_description_content_type="text/x-rst",
long_description="See https://regionmask.readthedocs.io",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: GIS",
],
python_requires=">=3.6",
)
setup(version=__version__)

0 comments on commit a889680

Please sign in to comment.