Skip to content

Commit

Permalink
build: properly include data files
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Oct 24, 2024
1 parent aea3af2 commit cd6ba49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
uses: actions/cache@v4
with:
path: |
tests
poetry.lock
pyproject.toml
key: tests-${{ github.sha }}
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
uses: actions/cache@v4
with:
path: |
tests
poetry.lock
pyproject.toml
key: tests-${{ github.sha }}
Expand Down Expand Up @@ -94,7 +92,6 @@ jobs:
uses: actions/cache@v4
with:
path: |
tests
poetry.lock
pyproject.toml
key: tests-${{ github.sha }}
Expand Down Expand Up @@ -122,7 +119,6 @@ jobs:
uses: actions/cache@v4
with:
path: |
tests
poetry.lock
pyproject.toml
key: tests-${{ github.sha }}
Expand Down
15 changes: 3 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [ "poetry-core>=1.7", "setuptools>=61" ]
requires = [ "poetry-core>=1.7" ]

[tool.poetry]
name = "openfisca-extension_template"
Expand All @@ -25,7 +25,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Information Analysis",
]
packages = [ { include = "openfisca_extension_template", from = "src" } ]
include = [ { path = "tests", format = "sdist" } ]
include = [ { path = "tests/*", format = [ "sdist", "wheel" ] } ]

[tool.poetry.dependencies]
python = "~3.9 || ~3.10 || ~3.11"
Expand Down Expand Up @@ -123,20 +123,11 @@ commands = [
[
"openfisca",
"test",
"tests",
"{envsitepackagesdir}/tests",
"--country-package=openfisca_country_template",
"--extensions=openfisca_extension_template",
],
]
commands_pre = [
[
"pip",
"install",
"--find-links",
".",
"openfisca-extension_template",
],
]

[tool.tox.env.dist]
basepython = [ "py39" ]
Expand Down
Empty file.

0 comments on commit cd6ba49

Please sign in to comment.