Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move project metadata to setup.cfg #1533

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -12,7 +12,7 @@ on:
- "ci/*"
- "MANIFEST.in"
- "pyproject.toml"
- "setup.py"
- "setup.*"

jobs:
build_sdist:
Expand Down
49 changes: 2 additions & 47 deletions pyproject.toml
Expand Up @@ -2,56 +2,11 @@
requires = [
"cython",
"oldest-supported-numpy",
"setuptools>=61.0.0",
"setuptools",
]
build-backend = "setuptools.build_meta"

[project]
name = "shapely"
dynamic = ["version"]
authors = [
{name = "Sean Gillies"},
]
maintainers = [
{name = "Shapely contributors"},
]
description = "Manipulation and analysis of geometric objects"
readme = "README.rst"
keywords = ["geometry", "topology", "gis"]
license = {text = "BSD 3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.7"
dependencies = [
"numpy>=1.14",
]

[project.optional-dependencies]
test = ["pytest"]
docs = ["sphinx", "numpydoc"]

[project.urls]
Documentation = "https://shapely.readthedocs.io/"
Repository = "https://github.com/shapely/shapely"

[tool.setuptools.packages.find]
include = [
"shapely",
"shapely.*",
]
# [project] -- see setup.cfg for project metadata

[tool.coverage.run]
source = ["shapely"]
Expand Down
49 changes: 49 additions & 0 deletions setup.cfg
@@ -1,3 +1,52 @@
[metadata]
name = shapely
author = Sean Gillies
maintainer = Shapely contributors
description = Manipulation and analysis of geometric objects
long_description = file: README.rst
long_description_content_type = text/x-rst
keywords = geometry, topology, gis
license = BSD 3-Clause
url = https://github.com/shapely/shapely
project_urls =
Documentation = https://shapely.readthedocs.io/
Repository = https://github.com/shapely/shapely
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: Unix
Operating System :: MacOS
Operating System :: Microsoft :: Windows
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Scientific/Engineering :: GIS

[options]
include_package_data = True
packages = find:
python_requires = >=3.7
install_requires =
numpy>=1.14

[options.extras_require]
test =
pytest
docs =
matplotlib
numpydoc
sphinx
sphinx-book-theme

[options.packages.find]
include =
shapely
shapely.*

[versioneer]
VCS = git
style = pep440
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -208,7 +208,7 @@ def finalize_options(self):
cmdclass["build_ext"] = build_ext


# see pyproject.toml for static project metadata
# see setup.cfg for static project metadata
setup(
version=versioneer.get_version(),
ext_modules=ext_modules,
Expand Down