Skip to content

Commit

Permalink
Merge pull request #5 from kir0ul/fix-wheel-build
Browse files Browse the repository at this point in the history
Fix wheel build
  • Loading branch information
pseudo-rnd-thoughts authored Jan 5, 2024
2 parents 92c7847 + d2db0e6 commit 99e6461
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 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: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
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",
]
1 change: 1 addition & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __enter__(self):
dst_path=str(TEMPLATE_LOC),
data=template_vars,
cleanup_on_error=True,
# vcs_ref="HEAD",
# defaults=True,
)

Expand Down

0 comments on commit 99e6461

Please sign in to comment.