Skip to content
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
5 changes: 3 additions & 2 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ runs:
shell: bash
working-directory: dist/
run: |
python -m pip install --upgrade pip
WHEEL_NAME=$(ls pyshp-*py3-none-any.whl)
python -m pip install $WHEEL_NAME[test]
python -m pip install $WHEEL_NAME --group ../Pyshp/pyproject.toml:test

- name: Doctests
shell: bash
Expand Down Expand Up @@ -113,4 +114,4 @@ runs:
shell: bash
run: |
echo Killing http server process ID: ${{ env.HTTP_SERVER_PID }}
kill ${{ env.HTTP_SERVER_PID }}
kill ${{ env.HTTP_SERVER_PID }}
13 changes: 6 additions & 7 deletions .github/workflows/speed_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,17 @@ jobs:
name: PyShp_wheel_and_sdist
path: dist

- uses: actions/checkout@v6
with:
path: ./Pyshp

- name: Install PyShp + test deps from the wheel (downloaded in prev step)
shell: bash
working-directory: dist/
run: |
python -m pip install --upgrade pip
WHEEL_NAME=$(ls pyshp-*py3-none-any.whl)
python -m pip install $WHEEL_NAME[test]

- uses: actions/checkout@v6
with:
path: ./Pyshp


python -m pip install $WHEEL_NAME --group ../Pyshp/pyproject.toml:test

- name: Checkout shapefiles and zip file artefacts repo
uses: actions/checkout@v6
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ part of your geospatial project.

# Version Changes

## 3.0.5

### Project structure:
- Use dependency groups for dev and test instead of optional-dependencies in pyproject.toml ([Mike Toews](https://github.com/mwtoews))


## 3.0.4

### Type checking
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
VERSION 3.0.5

2026-05-18
Project structure:
* Use dependency groups for dev and test instead of optional-dependencies in pyproject.toml (Mike Toews)

VERSION 3.0.4

2026-05-17
Expand Down
18 changes: 14 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,24 @@ classifiers = [
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
]

[project.optional-dependencies]
dev = ["pyshp[test]", "pre-commit", "ruff"]
test = ["pytest"]
stubs=["pyshp-stubs"]

[dependency-groups]
dev = [
{include-group = "lint"},
{include-group = "test"}
]
lint = [
"mypy",
"pre-commit",
"ruff",
]
test = [
"pytest",
]

[project.urls]
Repository = "https://github.com/GeospatialPython/pyshp"

Expand Down
2 changes: 1 addition & 1 deletion src/shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from __future__ import annotations

__version__ = "3.0.4"
__version__ = "3.0.5"

import array
import doctest
Expand Down
Loading