-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pyproject.toml and setuptools_scm (#183)
* use pyproject.toml and setuptools_scm * end on newline for .gitignore * need to install pynws for tests now * need editable install * fix test paths * remove unused pytest option
- Loading branch information
1 parent
1f3b514
commit ea0ee5e
Showing
22 changed files
with
61 additions
and
95 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ jobs: | |
pip install -r requirements-test.txt | ||
- name: mypy | ||
run: | | ||
mypy pynws | ||
mypy src/pynws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ lib64 | |
.out | ||
venv | ||
.direnv | ||
.envrc | ||
.envrc | ||
**/_version.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,57 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
dynamic = ["version"] | ||
name = "pynws" | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"aiohttp", | ||
"metar" | ||
] | ||
description = "Python library to retrieve observations and forecasts from NWS/NOAA" | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
keywords = ["nws", "weather"] | ||
license = {text = "MIT License"} | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
authors = [ | ||
{name = "Matthew Flamm", email = "[email protected]"} | ||
] | ||
|
||
[project.optional-dependencies] | ||
retry = ["tenacity"] | ||
|
||
[project.urls] | ||
"Repository" = "https://github.com/MatthewFlamm/pynws" | ||
"Bug Tracker" = "https://github.com/MatthewFlamm/pynws/issues" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/pynws/_version.py" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = false | ||
|
||
[tool.mypy] | ||
files = ["src"] | ||
|
||
[[tool.mypy.overrides]] | ||
module = "metar" | ||
ignore_missing_imports = true | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
asyncio_mode = "auto" | ||
log_level = "DEBUG" | ||
|
||
[tool.ruff] | ||
required-version = ">=0.3.7" | ||
target-version = "py38" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.