Skip to content
Open
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ in every released version.
### Version 1.x.x (unreleased)

## What's Changed
* Keep project URLs under project metadata so dependency groups remain valid
and built distributions include their documentation and source links.
* Fix issue where sometimes the plot sectors showed a straight line instead of a curved one (#137)
* `wrscatter` now converts the wind direction from degrees to radians, so scatter
plots use the same North-up, clockwise convention as the other plots (#99)
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ optional-dependencies.extras = [
"pandas",
"scipy",
]
urls.documentation = "https://python-windrose.github.io/windrose"
urls.homepage = "https://github.com/python-windrose/windrose"
urls.repository = "https://github.com/python-windrose/windrose"

[dependency-groups]
dev = [
Expand All @@ -47,9 +50,6 @@ dev = [
{ include-group = "docs" },
]
docs = [ "jupyter", "nbsphinx", "seaborn", "sphinx", "sphinx-copybutton", "sphinx-rtd-theme" ]
urls.documentation = "https://python-windrose.github.io/windrose"
urls.homepage = "https://github.com/python-windrose/windrose"
urls.repository = "https://github.com/python-windrose/windrose"

[tool.setuptools]
packages = [ "windrose" ]
Expand Down
23 changes: 23 additions & 0 deletions tests/test_project_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""Checks for the source distribution's project metadata."""

import tomllib
from pathlib import Path


def test_dependency_groups_are_lists():
with (Path(__file__).parents[1] / "pyproject.toml").open("rb") as stream:
metadata = tomllib.load(stream)

for name, dependencies in metadata["dependency-groups"].items():
assert isinstance(dependencies, list), name


def test_project_urls():
with (Path(__file__).parents[1] / "pyproject.toml").open("rb") as stream:
metadata = tomllib.load(stream)

assert metadata["project"]["urls"] == {
"documentation": "https://python-windrose.github.io/windrose",
"homepage": "https://github.com/python-windrose/windrose",
"repository": "https://github.com/python-windrose/windrose",
}