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

MAINT: move generic project settings to pyproject.toml #469

Merged
merged 5 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
brendan-ward marked this conversation as resolved.
Show resolved Hide resolved
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS",
]
brendan-ward marked this conversation as resolved.
Show resolved Hide resolved
requires-python = ">=3.8"
jorisvandenbossche marked this conversation as resolved.
Show resolved Hide resolved
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"
brendan-ward marked this conversation as resolved.
Show resolved Hide resolved

[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
Loading