Skip to content

Commit ec43361

Browse files
mwtoewsJamesParrott
authored andcommitted
Set minimum Python 3.9, move project metadata to pyproject.toml
1 parent 9e157d6 commit ec43361

6 files changed

Lines changed: 36 additions & 38 deletions

File tree

.github/actions/test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ runs:
8787
working-directory: ${{ inputs.pyshp_repo_directory }}
8888
run: |
8989
python -m pip install --upgrade pip
90-
pip install -r requirements.test.txt
90+
pip install -e .[test]
9191
9292
- name: Pytest
9393
shell: bash

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ Both the Esri and XBase file-formats are very simple in design and memory
7474
efficient which is part of the reason the shapefile format remains popular
7575
despite the numerous ways to store and exchange GIS data available today.
7676

77-
Pyshp is compatible with Python 2.7-3.x.
78-
7977
This document provides examples for using PyShp to read and write shapefiles. However
8078
many more examples are continually added to the blog [http://GeospatialPython.com](http://GeospatialPython.com),
8179
and by searching for PyShp on [https://gis.stackexchange.com](https://gis.stackexchange.com).

pyproject.toml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "pyshp"
7+
authors = [
8+
{name = "Joel Lawhead", email = "jlawhead@geospatialpython.com"},
9+
]
10+
maintainers = [
11+
{name = "Karim Bahgat", email = "karim.bahgat.norway@gmail.com"}
12+
]
13+
readme = "README.md"
14+
keywords = ["gis", "geospatial", "geographic", "shapefile", "shapefiles"]
15+
description = "Pure Python read/write support for ESRI Shapefile format"
16+
license = "MIT"
17+
license-files = ["LICENSE.TXT"]
18+
dynamic = ["version"]
19+
requires-python = ">=3.9"
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3 :: Only",
25+
"Topic :: Scientific/Engineering :: GIS",
26+
"Topic :: Software Development :: Libraries",
27+
"Topic :: Software Development :: Libraries :: Python Modules",
28+
]
29+
30+
[project.optional-dependencies]
31+
test = ["pytest"]
32+
33+
[project.urls]
34+
Repository = "https://github.com/GeospatialPython/pyshp"
35+
36+
[tool.setuptools.dynamic]
37+
version = {attr = "shapefile.__version__"}
38+
539
[tool.ruff]
640
# Exclude a variety of commonly ignored directories.
741
exclude = [
@@ -84,4 +118,4 @@ load-plugins=[
84118
per-file-ignores = """
85119
shapefile.py:W0212
86120
test_shapefile.py:W0212
87-
"""
121+
"""

requirements.test.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.cfg

Lines changed: 0 additions & 29 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)