Skip to content

Commit

Permalink
Hatchlinger Update
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddyFox892 committed Sep 20, 2024
1 parent 1272fb3 commit 0423ed6
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 62 deletions.
4 changes: 1 addition & 3 deletions dev_requirements/requirements-test_packaging.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# specific requirements for the tox test_packaging env
build
twine
# tools below for the actual packaging
setuptools
setuptools-scm

6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# `sphinx-build -b html . _build/html`. See Issue:
# https://github.com/rtfd/readthedocs.org/issues/1139
# DON'T FORGET: Check the box "Install your project inside a virtualenv using
# setup.py install" in the RTD Advanced Settings.
# pyproject.toml install" in the RTD Advanced Settings.
# Additionally, it helps us to avoid running apidoc manually

try: # for Sphinx >= 1.7
Expand Down 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
67 changes: 62 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,44 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[project]
name = "ahbicht"
description = "Python Library to parse AHB expressions."
license = { text = "MIT" }
requires-python = ">=3.8"
authors = [{ name = "Annika Schlögl", email = "annika.schloegl@hochfrequenz.de" }]
keywords = ["AHB", "Parsing", "Expressions"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
]

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

dependencies = [
"attrs>=21.4.0",
"lark>=1.1.4",
"inject",
"marshmallow",
"marshmallow_enum",
"maus>=0.6.0",
"pytz",
"efoli>=1.1.0"
] # add all the dependencies here
dynamic = ["readme", "version"]

[project.optional-dependencies]

[tool.setuptools_scm]

[tool.black]
line-length = 120
Expand All @@ -25,4 +61,25 @@ markers = [
]

[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
# 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/markdown"
fragments = [{ path = "README.md" }]

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



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

[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
48 changes: 0 additions & 48 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 0423ed6

Please sign in to comment.