Skip to content

Commit 5555196

Browse files
committed
Hotfix to enable the installation via Pypi
1 parent 181218a commit 5555196

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
## Changed
1010
## Fixed
1111

12+
## [3.0.2] - 2024-11-19
13+
## Added
14+
## Changed
15+
## Fixed
16+
- Fixed the packaging in the pyproject.toml to successful instal gym-electric-motor from the pypi database
17+
1218
## [3.0.0] - 2024-11-18
1319
## Added
1420
- Support for Python 3.11, 3.12, 3.13

pyproject.toml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "gym_electric_motor"
3-
version = "3.0.0"
3+
version = "3.0.2"
44
authors = [
55
{ name = "Arne Traue" },
66
{ name = "Gerrit Book" },
@@ -25,29 +25,31 @@ classifiers = [
2525
"License :: OSI Approved :: MIT License",
2626
"Operating System :: OS Independent",
2727
]
28-
dynamic = ["dependencies", "optional-dependencies"]
28+
dynamic = ["dependencies"]
2929

3030
[tool.setuptools.dynamic]
31-
dependencies = { file = ["requirements.txt"] }
32-
optional-dependencies = { dev = { file = ["requirements-dev.txt"] } }
31+
dependencies = {file = ["requirements.txt"]}
3332

3433
[project.urls]
3534
Homepage = "https://github.com/upb-lea/gym-electric-motor"
3635
Issues = "https://github.com/upb-lea/gym-electric-motor/issues"
3736

3837
[build-system]
39-
requires = ["hatchling"]
38+
requires = ["hatchling", "hatch-requirements-txt"]
4039
build-backend = "hatchling.build"
4140

41+
[tool.hatch.metadata.hooks.requirements_txt]
42+
files = ["requirements.txt"]
43+
4244
[tool.hatch.build.targets.wheel]
4345
packages = ["/src/gym_electric_motor", "/src/gem_controllers"]
4446

4547
[tool.hatch.build.targets.sdist]
46-
packages = [
47-
"/src/gym_electric_motor",
48-
"/src/gem_controllers",
49-
"/examples/classic_controllers",
50-
"/tests",
48+
include = [
49+
"src/gym_electric_motor",
50+
"src/gem_controllers",
51+
"examples/classic_controllers",
52+
"tests",
5153
]
5254

5355
[tool.ruff]

0 commit comments

Comments
 (0)