From 8d459ee88ef19caeed3de3a93b60d5c86d88ff06 Mon Sep 17 00:00:00 2001 From: Dmitry Romanov Date: Wed, 24 Jul 2024 11:48:50 -0400 Subject: [PATCH] Proper handling of hatch distribution --- pyrobird/MANIFEST.in | 8 ++++++++ pyrobird/pyproject.toml | 14 ++++++-------- pyrobird/src/pyrobird/__about__.py | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 pyrobird/MANIFEST.in diff --git a/pyrobird/MANIFEST.in b/pyrobird/MANIFEST.in new file mode 100644 index 0000000..f79d665 --- /dev/null +++ b/pyrobird/MANIFEST.in @@ -0,0 +1,8 @@ +# MANIFEST.in + +# Include YAML files +include src/pyrobird/data/*.yaml + +# Include all files in the static and templates directories +recursive-include src/pyrobird/server/static * +recursive-include src/pyrobird/server/templates * \ No newline at end of file diff --git a/pyrobird/pyproject.toml b/pyrobird/pyproject.toml index 8385cb4..32e5b61 100644 --- a/pyrobird/pyproject.toml +++ b/pyrobird/pyproject.toml @@ -44,6 +44,7 @@ dependencies = [ "coverage[toml]>=6.5", "pytest", ] + [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" test-cov = "coverage run -m pytest {args:tests}" @@ -59,13 +60,6 @@ cov = [ [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] -[tool.hatch.envs.types] -dependencies = [ - "mypy>=1.0.0", -] -[tool.hatch.envs.types.scripts] -check = "mypy --install-types --non-interactive {args:src/pyrobird tests}" - [tool.coverage.run] source_pkgs = ["pyrobird", "tests"] branch = true @@ -94,4 +88,8 @@ username = "__token__" url = "https://upload.pypi.org/legacy/" [tool.hatch.build.targets.wheel] -include = ["src/pyrobird/data/*.yaml"] \ No newline at end of file +include = [ + "src/pyrobird/data/*.yaml", + "src/pyrobird/server/static/**/*", + "src/pyrobird/server/templates/**/*" +] diff --git a/pyrobird/src/pyrobird/__about__.py b/pyrobird/src/pyrobird/__about__.py index eb9ca4d..efda0a3 100644 --- a/pyrobird/src/pyrobird/__about__.py +++ b/pyrobird/src/pyrobird/__about__.py @@ -2,4 +2,4 @@ # This file is part of Firebird Event Display and is licensed under the LGPLv3. # See the LICENSE file in the project root for full license information. -__version__ = "0.0.5" +__version__ = "0.0.6"