From d2db0e686de04ac8c379f9a742b1f87e6d403bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrea=20Pierr=C3=A9?= Date: Thu, 4 Jan 2024 14:44:50 +0000 Subject: [PATCH] fix: build wheel in template too --- .github/workflows/test.yml | 1 + pyproject.toml | 5 ++--- template/pyproject.toml.jinja | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4b862b..f46c641 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,7 @@ jobs: run: | pip install -U pip pip install -e . + pip list - name: Run tests run: pytest -v diff --git a/pyproject.toml b/pyproject.toml index 82e1d67..6a4270b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 9fc89cc..0bd5ba7 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -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", ]