Skip to content

Commit

Permalink
Proper handling of hatch distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Jul 24, 2024
1 parent af9e8ee commit 8d459ee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 8 additions & 0 deletions pyrobird/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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 *
14 changes: 6 additions & 8 deletions pyrobird/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand Down Expand Up @@ -94,4 +88,8 @@ username = "__token__"
url = "https://upload.pypi.org/legacy/"

[tool.hatch.build.targets.wheel]
include = ["src/pyrobird/data/*.yaml"]
include = [
"src/pyrobird/data/*.yaml",
"src/pyrobird/server/static/**/*",
"src/pyrobird/server/templates/**/*"
]
2 changes: 1 addition & 1 deletion pyrobird/src/pyrobird/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8d459ee

Please sign in to comment.