From 09ca607c66282982800aa2f31a183d92d1d7ebc7 Mon Sep 17 00:00:00 2001 From: James Parrott <80779630+JamesParrott@users.noreply.github.com> Date: Thu, 9 Oct 2025 18:33:36 +0100 Subject: [PATCH 1/2] Remove project script - need to run from project root to find shapefiles --- README.md | 12 ++---------- pyproject.toml | 3 --- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 53f23ec..30d3156 100644 --- a/README.md +++ b/README.md @@ -1496,16 +1496,8 @@ python -m pytest Additionally, all the code and examples located in this file, README.md, is tested and verified with the builtin doctest framework. -A special routine for invoking the doctest is run when calling directly on shapefile.py. -In the same folder as README.md and shapefile.py, from the command line run: - -```shell -python shapefile.py -``` - -This tests the code inside shapefile.py itself. To test an installed PyShp wheel against -the doctests, the same special routine can be invoked (in an env with the wheel and pytest -installed) from the test file: +A special routine for invoking the doctests against an installed PyShp wheel +can be invoked (in an env with the wheel and pytest installed) from the test file: ```shell diff --git a/pyproject.toml b/pyproject.toml index 7bcb24e..2578661 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,9 +36,6 @@ test = ["pytest"] [project.urls] Repository = "https://github.com/GeospatialPython/pyshp" -[project.scripts] -shapefile="shapefile.__main__:main" - [tool.hatch.build.targets.sdist] only-include = ["src", "shapefiles", "test_shapefile.py"] From 31e0cc9479bfae112553da0529e40e8c4f0d0974 Mon Sep 17 00:00:00 2001 From: James Parrott <80779630+JamesParrott@users.noreply.github.com> Date: Thu, 9 Oct 2025 18:36:21 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 30d3156..739214f 100644 --- a/README.md +++ b/README.md @@ -1496,7 +1496,7 @@ python -m pytest Additionally, all the code and examples located in this file, README.md, is tested and verified with the builtin doctest framework. -A special routine for invoking the doctests against an installed PyShp wheel +A special routine for invoking the doctests against an installed PyShp wheel can be invoked (in an env with the wheel and pytest installed) from the test file: