Skip to content

Commit f82ad86

Browse files
committed
Add dynamic versioning. Add license
1 parent 77b5e16 commit f82ad86

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ build
1414
!/.devcontainer/devcontainer.linux.json
1515
!/.devcontainer/devcontainer.wsl2.json
1616
**/*.pt
17-
tutorials/ppo/wandb
17+
tutorials/ppo/wandb
18+
dist

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
Copyright © 2025 Martin Schuck
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5+
6+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7+
8+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9+

crazyflow/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
from crazyflow.sim import Physics, Sim
44

55
__all__ = ["Sim", "Physics", "Control"]
6+
__version__ = "0.0.1"

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=61.0.0", "wheel", "numpy"]
2+
requires = ["setuptools>=61.0.0", "wheel"]
33
build-backend = "setuptools.build_meta"
4-
requires-python = "3.11" # tested in python 3.11
54

65
[project]
76
name = "crazyflow"
8-
version = "0.0.1"
7+
dynamic = ["version"]
98
description = "Fast, parallelizable simulations of Crazyflies with JAX and MuJoCo."
109
readme = "README.md"
1110
license = { file = "LICENSE" }
@@ -19,7 +18,7 @@ classifiers = [
1918
]
2019

2120
dependencies = [
22-
"jax>=0.4.38",
21+
"jax>=0.5.0,!=0.5.3", # 0.5.3 has a bug that causes resets to not work properly
2322
"mujoco>=3.3.0",
2423
"mujoco-mjx>=3.3.0",
2524
"gymnasium",
@@ -30,6 +29,7 @@ dependencies = [
3029
"casadi",
3130
"numpy",
3231
]
32+
requires-python = ">=3.10"
3333

3434
[project.optional-dependencies]
3535
test = ["pytest>=8.0.0", "pytest-cov", "pytest-timeout"]
@@ -39,6 +39,9 @@ benchmark = ["fire"]
3939
[tool.setuptools.packages]
4040
find = {}
4141

42+
[tool.setuptools.dynamic]
43+
version = { attr = "crazyflow.__version__" }
44+
4245
[tool.setuptools.package-data]
4346
crazyflow = ["models/cf2/*.xml", "models/cf2/assets/*.obj"]
4447

0 commit comments

Comments
 (0)