From ffb5f81475e1b0261a1b0c5869edbe6ef299e457 Mon Sep 17 00:00:00 2001 From: Oleksandr Bozbei Date: Fri, 15 Dec 2023 16:49:45 +0200 Subject: [PATCH] fix: update packaging. --- py_ocpi/__init__.py | 2 +- pyproject.toml | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/py_ocpi/__init__.py b/py_ocpi/__init__.py index d041942..1c04ee9 100644 --- a/py_ocpi/__init__.py +++ b/py_ocpi/__init__.py @@ -1,6 +1,6 @@ """Python Implementation of OCPI""" -__version__ = "2023.12.15" +__version__ = "2023.12.16" from .core import enums, data_types from .main import get_application diff --git a/pyproject.toml b/pyproject.toml index 31939f1..e79741d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,23 @@ [build-system] -requires = [ - "hatchling>=1.18.0", -] +requires = ["hatchling>=1.18.0"] build-backend = "hatchling.build" +[tool.hatch.build.targets.wheel] +packages = ["py_ocpi"] +include = ["README.md", "LICENSE"] + +[tool.hatch.build.targets.sdist] +exclude = [ + "/docs/", + "/.github/", + "/tests/", + "/.gitignore", + "/.pre-commit", + "/Pipfile", + "/Pipfile.lock", + "/readthedocs.yaml", +] + [tool.black] line-length = 80 target-version = ["py311"] @@ -51,9 +65,6 @@ Repository = "https://github.com/extrawest/extrawest_ocpi" [tool.hatch.version] path = "py_ocpi/__init__.py" -[tool.hatch.build.targets.wheel] -packages = ["py_ocpi/__init__.py"] - [tool.flake8] max-line-length = 88 per-file-ignores = [