Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/FST/UpdatePyProjectTomlSetup' in…
Browse files Browse the repository at this point in the history
…to FST/UpdatePyProjectTomlSetup
  • Loading branch information
hf-krechan committed Sep 24, 2024
2 parents 41861c5 + 64a58d8 commit df55225
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
# built documents.
#
# The short X.Y version.
version = "" # Is set by calling `setup.py docs`
version = "" # Is set by calling `pyproject.toml docs`
# The full version, including alpha/beta/rc tags.
release = "" # Is set by calling `setup.py docs`
release = "" # Is set by calling `pyproject.toml docs`

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
62 changes: 56 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name = "ahbicht"
description = "Python Library to parse AHB expressions."
license = { text = "MIT" }
requires-python = ">=3.9"
authors = [{ name = "Annika Schlögl", email = "annika.schloegl@hochfrequenz.de" }]
authors = [
{ name = "Annika Schlögl", email = "annika.schloegl@hochfrequenz.de" },
]
keywords = ["AHB", "Parsing", "Expressions"]
classifiers = [
"Development Status :: 4 - Beta",
Expand All @@ -27,10 +29,40 @@ dependencies = [
"marshmallow_enum",
"maus>=0.6.0",
"pytz",
"efoli>=1.1.0"
] # add all the dependencies here
"efoli>=1.1.0",
] # add all the dependencies here
dynamic = ["readme", "version"]

[project.optional-dependencies]
coverage = ["coverage==7.6.1"]
docs = ["sphinx==7.4.7", "sphinx-rtd-theme==2.0.0"]
formatting = ["black==24.8.0", "isort==5.13.2"]
json_schemas = ["marshmallow-jsonschema==0.13.0"]
linting = ["pylint==3.2.7"]
spellcheck = ["codespell==2.3.0"]
test_packaging = [
"build==1.2.2",
"setuptools==75.1.0",
"setuptools-scm==8.1.0",
"twine==5.1.1",
]
tests = [
"pytest==8.3.3",
"pytest-asyncio==0.24.0",
"pytest-datafiles==3.0.0",
"pytest-mock==3.14.0",
]
type_check = ["mypy==1.11.2", "types-pytz==2024.2.0.20240913"]
dev = ["pip-tools"]

[tool.setuptools.dynamic]
readme = { file = "README.rst" }

[project.urls]
Changelog = "https://github.com/Hochfrequenz/ahbicht/releases"
Homepage = "https://github.com/Hochfrequenz/ahbicht"
Documentation = "https://ahbicht.readthedocs.io/en/latest/"

[tool.black]
line-length = 120

Expand All @@ -47,9 +79,27 @@ disable = "fixme"
# even if they have no @pytest.mark.asyncio marker.
# https://github.com/pytest-dev/pytest-asyncio#auto-mode
asyncio_mode = "auto"
markers = [
"datafiles"
]
markers = ["datafiles"]

[tool.mypy]
# warn_unused_ignores = true # doesn't work,because either 'error: Cannot infer type argument 1 of "Tree" [misc]' but this is also flagged as unused ignore

[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"


[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/x-rst"
fragments = [{ path = "README.rst" }]

[tool.hatch.version]
source = "vcs"


[tool.hatch.build.targets.sdist]
exclude = ["/unittests"]

[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]

0 comments on commit df55225

Please sign in to comment.