refactor: convert to src-layout for Python packaging

Rename python/ to src/ following PEP 517/518 modern packaging
conventions. Also adds .gitignore for docs and build artifacts.
This commit is contained in:
Ryan Malloy 2026-02-17 18:45:27 -07:00
parent 91bef4ea63
commit 66f20af368
6 changed files with 10 additions and 3 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
docs-site/
docs/
uv.lock
.venv/

View File

@ -6,14 +6,13 @@ readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{name = "zleffke", email = ""},
{name = "zleffke"},
{name = "Ryan Malloy", email = "ryan@supported.systems"},
]
keywords = ["gnuradio", "sdr", "sarsat", "cospas", "beacon", "search-rescue"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Communications :: Ham Radio",
]
@ -31,4 +30,8 @@ requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["python"]
where = ["src"]
[tool.setuptools]
# Exclude non-package directories from sdist
exclude-package-data = {"*" = ["docs-site/**", "docs/**"]}