Skip to content

Commit

Permalink
MAINT: move generic project settings to pyproject.toml (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Sep 16, 2024
1 parent ea121c3 commit 262e925
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
36 changes: 34 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,42 @@ requires = [
# tomli is used by versioneer
"tomli; python_version < '3.11'",
]
build-backend = "setuptools.build_meta"

[project]
name = "pyogrio"
dynamic = ["version"]
authors = [
{ name = "Brendan C. Ward", email = "bcward@astutespruce.com" },
{ name = "pyogrio contributors" }
]
maintainers = [{ name = "pyogrio contributors" }]
license = { file = "LICENSE" }
description = "Vectorized spatial vector file format I/O using GDAL/OGR"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.8"
dependencies = ["certifi", "numpy", "packaging"]

[project.optional-dependencies]
dev = ["cython"]
test = ["pytest", "pytest-cov"]
benchmark = ["pytest-benchmark"]
geopandas = ["geopandas"]

[project.urls]
Home = "https://pyogrio.readthedocs.io/"
Repository = "https://github.com/geopandas/pyogrio"

[tool.cibuildwheel]
skip = ["cp36-*", "cp37-*", "pp*", "*musllinux*"]
skip = ["pp*", "*musllinux*"]
archs = ["auto64"]
manylinux-x86_64-image = "manylinux-vcpkg-gdal:latest"
manylinux-aarch64-image = "manylinux-aarch64-vcpkg-gdal:latest"
Expand Down Expand Up @@ -63,7 +96,6 @@ tag_prefix = "v"
[tool.ruff]
line-length = 88
extend-exclude = ["doc/*", "benchmarks/*", "pyogrio/_version.py"]
target-version = "py38"

[tool.ruff.lint]
select = [
Expand Down
16 changes: 0 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,24 +202,8 @@ def get_gdal_config():
cmdclass["build_ext"] = build_ext

setup(
name="pyogrio",
version=version,
packages=find_packages(),
url="https://github.com/geopandas/pyogrio",
license="MIT",
author="Brendan C. Ward",
author_email="bcward@astutespruce.com",
description="Vectorized spatial vector file format I/O using GDAL/OGR",
long_description_content_type="text/markdown",
long_description=open("README.md").read(),
python_requires=">=3.8",
install_requires=["certifi", "numpy", "packaging"],
extras_require={
"dev": ["Cython"],
"test": ["pytest", "pytest-cov"],
"benchmark": ["pytest-benchmark"],
"geopandas": ["geopandas"],
},
include_package_data=True,
exclude_package_data={'': ['*.h', '_*.pxd', '_*.pyx']},
cmdclass=cmdclass,
Expand Down

0 comments on commit 262e925

Please sign in to comment.