Skip to content
Merged
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
7 changes: 3 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools-scm wheel twine
- name: Build a binary wheel and a source tarball
run: |
python setup.py sdist bdist_wheel
pip install -r dev_requirements/requirements-packaging.txt
- name: Build wheel and source distributions
run: python -m build
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,7 @@ Temporary Items
docs/api
docs/plantuml.jar
docs/_static/images

# version number for bo4e-python; gets auto-generated during the command
# python -m build
src/_bo4e_python_version.py
4 changes: 2 additions & 2 deletions dev_requirements/requirements-packaging.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# requirements for the hatchling build ssystem
# requirements for the hatchling build system
build
twine
wheel
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# 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.
# Additionally it helps us to avoid running apidoc manually
# Additionally, it helps us to avoid running apidoc manually

try: # for Sphinx >= 1.7
from sphinx.ext import apidoc
Expand Down
54 changes: 52 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,56 @@
[build-system]
requires = ["setuptools>=41.0", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"

[project]
name = "bo4e-python"
description = "Python Library that implements the BO4E Standard."
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [{ name = "Kevin Krechan", email = "kevin.krechan@hochfrequenz.de" }]
keywords = ["bo4e", "bdew", "edi@energy"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
# This list must be in synq with the ./requirements.in file!
dependencies = [
"iso3166",
"pydantic>=2.0.0",
"pyhumps",
]
dynamic = ["readme", "version"]

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

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

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

[tool.hatch.build.hooks.vcs]
version-file = "src/_bo4e_python_version.py"
template = '''
version = "{version}"
'''

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

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

[tool.black]
line-length = 120
Expand Down
38 changes: 0 additions & 38 deletions setup.cfg

This file was deleted.

17 changes: 0 additions & 17 deletions setup.py

This file was deleted.