Skip to content

Commit 50b2a07

Browse files
Merge pull request #33 from extrawest/hotfix/package-error
[hotfix] update packaging.
2 parents abe2ba2 + ffb5f81 commit 50b2a07

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

py_ocpi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Python Implementation of OCPI"""
22

3-
__version__ = "2023.12.15"
3+
__version__ = "2023.12.16"
44

55
from .core import enums, data_types
66
from .main import get_application

pyproject.toml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
[build-system]
2-
requires = [
3-
"hatchling>=1.18.0",
4-
]
2+
requires = ["hatchling>=1.18.0"]
53
build-backend = "hatchling.build"
64

5+
[tool.hatch.build.targets.wheel]
6+
packages = ["py_ocpi"]
7+
include = ["README.md", "LICENSE"]
8+
9+
[tool.hatch.build.targets.sdist]
10+
exclude = [
11+
"/docs/",
12+
"/.github/",
13+
"/tests/",
14+
"/.gitignore",
15+
"/.pre-commit",
16+
"/Pipfile",
17+
"/Pipfile.lock",
18+
"/readthedocs.yaml",
19+
]
20+
721
[tool.black]
822
line-length = 80
923
target-version = ["py311"]
@@ -51,9 +65,6 @@ Repository = "https://github.com/extrawest/extrawest_ocpi"
5165
[tool.hatch.version]
5266
path = "py_ocpi/__init__.py"
5367

54-
[tool.hatch.build.targets.wheel]
55-
packages = ["py_ocpi/__init__.py"]
56-
5768
[tool.flake8]
5869
max-line-length = 88
5970
per-file-ignores = [

0 commit comments

Comments
 (0)