Skip to content

Commit

Permalink
Merge pull request #276 from ocefpaf/remove_setuppy
Browse files Browse the repository at this point in the history
Remove setuppy
  • Loading branch information
ocefpaf authored Jul 30, 2024
2 parents fa46b03 + 65a4447 commit acf177c
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 100 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ updates:
interval: "daily"
labels:
- "Bot"
groups:
github-actions:
patterns:
- '*'
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false

Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.5.5
hooks:
- id: ruff

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.1.3
rev: 2.1.4
hooks:
- id: pyproject-fmt

Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ prune notebooks
prune paper
prune *.egg-info
prune samples
prune .binder
prune .github

exclude *.yml
exclude .pre-commit-config.yaml
Expand Down
70 changes: 70 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,59 @@ requires = [
"wheel",
]

[project]
name = "windrose"
description = "Python Matplotlib, Numpy library to manage wind data, draw windrose (also known as a polar rose plot)"
readme = "README.md"
license = { text = "BSD-3-Clause OR BCeCILL-B" }
maintainers = [
{ name = "Sebastien Celles" },
{ name = "Filipe Fernandes", email = "[email protected]" },
]
authors = [
{ name = "Lionel Roubeyrie", email = "[email protected]" },
]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"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",
]
dynamic = [
"version",
]
dependencies = [
"matplotlib>=3",
"numpy>=1.21",
]
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"

[tool.setuptools]
packages = [ "windrose" ]
include-package-data = true
license-files = [
"LICENSE.txt",
"LICENCE_BSD-3-Clause.txt",
"LICENCE_CECILL-B.txt",
]
[tool.setuptools.dynamic]
dependencies = { file = [ "requirements.txt" ] }
readme = { file = "README.md", content-type = "text/markdown" }

[tool.setuptools_scm]
write_to = "windrose/_version.py"
write_to_template = "__version__ = '{version}'"
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"

[tool.ruff]
target-version = "py38"
line-length = 79
Expand All @@ -29,6 +82,23 @@ lint.per-file-ignores."samples/example_pdf_by.py" = [
"T201",
]

[tool.check-manifest]
ignore = [
"*.yaml",
".coveragerc",
"docs",
"docs/*",
"notebooks",
"notebooks/*",
"tests",
"tests/*",
"paper",
"paper/*",
"*.pyc",
".binder/",
".binder/*",
]

[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
Expand Down
67 changes: 0 additions & 67 deletions setup.cfg

This file was deleted.

12 changes: 0 additions & 12 deletions setup.py

This file was deleted.

56 changes: 38 additions & 18 deletions windrose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,44 @@
from matplotlib.projections import register_projection

from .windrose import (
D_KIND_PLOT, # noqa
DEFAULT_THETA_LABELS, # noqa
DPI_DEFAULT, # noqa
FIGSIZE_DEFAULT, # noqa
WindAxes, # noqa
WindAxesFactory, # noqa
WindroseAxes, # noqa
clean, # noqa
clean_df, # noqa
plot_windrose, # noqa
plot_windrose_df, # noqa
plot_windrose_np, # noqa
wrbar, # noqa
wrbox, # noqa
wrcontour, # noqa
wrcontourf, # noqa
wrpdf, # noqa
wrscatter, # noqa
D_KIND_PLOT,
DEFAULT_THETA_LABELS,
DPI_DEFAULT,
FIGSIZE_DEFAULT,
WindAxes,
WindAxesFactory,
WindroseAxes,
clean,
clean_df,
plot_windrose,
plot_windrose_df,
plot_windrose_np,
wrbar,
wrbox,
wrcontour,
wrcontourf,
wrpdf,
wrscatter,
)

__all__ = [
"D_KIND_PLOT",
"DEFAULT_THETA_LABELS",
"DPI_DEFAULT",
"FIGSIZE_DEFAULT",
"WindAxes",
"WindAxesFactory",
"WindroseAxes",
"clean",
"clean_df",
"plot_windrose",
"plot_windrose_df",
"plot_windrose_np",
"wrbar",
"wrbox",
"wrcontour",
"wrcontourf",
"wrpdf",
"wrscatter",
]
register_projection(WindroseAxes)

0 comments on commit acf177c

Please sign in to comment.