File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 8080 working-directory : ${{ inputs.pyshp_repo_directory }}
8181 env :
8282 REPLACE_REMOTE_URLS_WITH_LOCALHOST : ${{ inputs.replace_remote_urls_with_localhost }}
83- run : python shapefile.py ${{ inputs.extra_args }}
83+ run : python src/ shapefile.py ${{ inputs.extra_args }}
8484
8585 - name : Install test dependencies.
8686 shell : bash
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" setuptools " ]
3- build-backend = " setuptools.build_meta "
2+ requires = [" hatchling " ]
3+ build-backend = " hatchling.build "
44
55[project ]
66name = " pyshp"
@@ -33,8 +33,15 @@ test = ["pytest"]
3333[project .urls ]
3434Repository = " https://github.com/GeospatialPython/pyshp"
3535
36- [tool .setuptools .dynamic ]
37- version = {attr = " shapefile.__version__" }
36+ [tool .hatch .build .targets .sdist ]
37+ only-include = [" src" , " shapefiles" , " test_shapefile.py" ]
38+
39+ [tool .hatch .build .targets .wheel ]
40+ only-include = [" src" ]
41+ sources = {"src" = " " } # move from "src" directory for wheel
42+
43+ [tool .hatch .version ]
44+ path = " src/shapefile.py"
3845
3946[tool .ruff ]
4047# Exclude a variety of commonly ignored directories.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments