目录
目录README.md

A430Py

A simulator and Gymnasium environment for A430 aircraft.

Install

From source

git clone https://github.com/GongXudong/a430py

or

git clone https://www.gitlink.org.cn/gongxudong/a430py

From PyPI

# use pip
pip install a430py

# use uv
uv add a430py

Develop

Prepare python environment

cd a430py
uv sync

Pre-commit

# Install pre-commit
pre-commit install

# Run
pre-commit run --all-files  # run all hooks on all files
pre-commit run <HOOK_ID> --all-files # run one hook on all files
pre-commit run --files <PATH_TO_FILE>  # run all hooks on a file
pre-commit run <HOOK_ID> --files <PATH_TO_FILE> # run one hook on a file

# Commit
git add .
git commit -m <MESSAGE>

# Commit without hooks
git commit -m <MESSAGE> --no-verify

# update pre-commit hook
pre-commit autoupdate

Build

uv build

Publish

# publish to PyPI
uv publish

# publish to test.pypi
uv publish --index testpypi

# test publish
uv run --with a430py==0.1.3 -i https://test.pypi.org/simple/ --no-project -- python -c "import a430py;import gymnasium as gym;env=gym.make('A430Gym
-v0');print(env.reset())"
关于
135.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号