Skip to content

Commit

Permalink
fix: build wheel in template too
Browse files Browse the repository at this point in the history
  • Loading branch information
kir0ul committed Jan 4, 2024
1 parent d2816a4 commit d2db0e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: |
pip install -U pip
pip install -e .
pip list
- name: Run tests
run: pytest -v
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
include = ["*.py"]
exclude = ["test*"]
packages = ["template"]

[project]
name = "gymnasium-env-template"
version = "0.0.1"
version = "0.0.2"
dependencies = [
"copier",
"pyyaml",
Expand Down
5 changes: 4 additions & 1 deletion template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["{{ environment_name }}"]

[project]
name = "{{ environment_name }}"
version = "0.0.1"
dependencies = [
"gymnasium",
"pygame==2.1.3",
"pygame>=2.1.3",
"pre-commit",
]

0 comments on commit d2db0e6

Please sign in to comment.