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:
parent
91bef4ea63
commit
66f20af368
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
docs-site/
|
||||||
|
docs/
|
||||||
|
uv.lock
|
||||||
|
.venv/
|
||||||
@ -6,14 +6,13 @@ readme = "README.md"
|
|||||||
license = "MIT"
|
license = "MIT"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "zleffke", email = ""},
|
{name = "zleffke"},
|
||||||
{name = "Ryan Malloy", email = "ryan@supported.systems"},
|
{name = "Ryan Malloy", email = "ryan@supported.systems"},
|
||||||
]
|
]
|
||||||
keywords = ["gnuradio", "sdr", "sarsat", "cospas", "beacon", "search-rescue"]
|
keywords = ["gnuradio", "sdr", "sarsat", "cospas", "beacon", "search-rescue"]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"License :: OSI Approved :: MIT License",
|
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Topic :: Communications :: Ham Radio",
|
"Topic :: Communications :: Ham Radio",
|
||||||
]
|
]
|
||||||
@ -31,4 +30,8 @@ requires = ["setuptools>=61.0"]
|
|||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
where = ["python"]
|
where = ["src"]
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
# Exclude non-package directories from sdist
|
||||||
|
exclude-package-data = {"*" = ["docs-site/**", "docs/**"]}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user