Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Document pinning dependency versions #2765

Open
daltzctr opened this issue Oct 2, 2024 · 2 comments
Open

Python: Document pinning dependency versions #2765

daltzctr opened this issue Oct 2, 2024 · 2 comments

Comments

@daltzctr
Copy link
Contributor

daltzctr commented Oct 2, 2024

Instead of robotpy_extras, pinned versions can be declared in the requires block in pyproject.toml

#
# Use this configuration file to control what RobotPy packages are installed
# on your RoboRIO
#

[tool.robotpy]

# Version of robotpy this project depends on
robotpy_version = "2024.2.1.0"

# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]
robotpy_extras = [
    # "all"
    # "apriltag"
    # "commands2"
    # "cscore"
    # "navx"
    # "pathplannerlib"
    # "phoenix5"
    # "playingwithfusion"
    # "rev"
    # "romi"
    # "sim"
]

requires = [
   "phoenix6==24.3.0",
]
@virtuald
Copy link
Member

virtuald commented Oct 2, 2024

It would make sense to add that to source/docs/software/vscode-overview/3rd-party-libraries.rst per-vendor.

I'm thinking to get rid of extras this year too, we'll see.

@TheTripleV
Copy link
Member

We should get rid of extras and just keep robotpy[all].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants