-
Notifications
You must be signed in to change notification settings - Fork 5
add uv support #68
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
add uv support #68
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,14 @@ | ||
| site/ | ||
| .DS_Store | ||
|
|
||
| # --------------------------------- uv --------------------------------- | ||
| # Python-generated files | ||
| __pycache__/ | ||
| *.py[oc] | ||
| build/ | ||
| dist/ | ||
| wheels/ | ||
| *.egg-info | ||
|
|
||
| # Virtual environments | ||
| .venv |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.14 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ## uv | ||
|
|
||
| uv is a Python package manager that simplifies the process of installing dependencies and running development servers. | ||
|
|
||
| ### Installing uv | ||
| If you do not have uv installed, go to [the uv documentation](https://docs.astral.sh/uv/getting-started/installation/) and follow the instructions for your OS. This will also install Python 3 onto your machine. | ||
|
|
||
| ### Source Code | ||
| Clone the [training docs repo](https://github.com/DeepBlueRobotics/training>) from GitHub, with your preferred method. | ||
|
timtogan marked this conversation as resolved.
|
||
|
|
||
| ### Python Dependencies | ||
| This site uses the MkDocs Python package to convert Markdown files to a website, and a few more packages to provide additional functionality and theming. You can install all the necessary dependencies by running `uv sync` in your terminal while in the root directory of this repo. | ||
|
|
||
|
|
||
| ## Development Workflow | ||
| To develop locally, run `uv run -m mkdocs serve` in the root directory of this project. This will generate a local website. | ||
|
|
||
| The terminal will output a line something like __this below__, where you can find the link of your local website. | ||
|
|
||
| `INFO - [19:08:41] Serving on http://127.0.0.1:8000/` | ||
|
|
||
| When you are done making a change, simply create a new branch of <https://github.com/DeepBlueRobotics/training> and make a pull request. ReadTheDocs will automatically update the site within a few minutes, if your pull request is accepted. | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||||||||||
| [project] | ||||||||||||||
| name = "training" | ||||||||||||||
| version = "0.1.0" | ||||||||||||||
| description = "Add your description here" | ||||||||||||||
|
timtogan marked this conversation as resolved.
Outdated
|
||||||||||||||
| readme = "README.md" | ||||||||||||||
| requires-python = ">=3.14" | ||||||||||||||
|
timtogan marked this conversation as resolved.
|
||||||||||||||
| dependencies = [ | ||||||||||||||
| "mkdocs-material>=9.7.6", | ||||||||||||||
| "pymdown-extensions>=10.21.2", | ||||||||||||||
| "python-markdown-math>=0.9", | ||||||||||||||
| ] | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
|
||||||||||||||
| [tool.uv] | |
| # This project uses uv as the single source of truth for dependencies. | |
| # The requirements.txt file used by Read the Docs must be generated from | |
| # the uv lockfile to avoid drift between environments. Regenerate it with: | |
| # uv export --format requirements-txt --output requirements.txt |
Uh oh!
There was an error while loading. Please reload this page.