-
Notifications
You must be signed in to change notification settings - Fork 3
Use poetry instead of venv #16
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
dc669c7
Migrate project infrastructure to Poetry
sethrj 17ad651
Increase max file size for large poetry lock files
sethrj 336ddd7
Update version and superficialities
sethrj 0ef8fff
Remove python version requirement
sethrj 0c2347b
Remove lockfile
sethrj 696c149
Restore precommit max size
sethrj 43d67c9
Apply suggestions from code review
sethrj 6d17b42
Update readme
sethrj 43889ef
Update readme and require py3.11 due to StrEnum
sethrj 1d42a7e
Use dynamic versioning
sethrj 3102eb2
Add repo setup action and use poetry 2.x
sethrj 0db1719
Update action
sethrj 32d3090
Delete pypi for now
sethrj d7a3b60
Remove unused docs for now
sethrj 4e96d6a
Actually use python version
sethrj 9e8feb5
Update action: correct version, new cache, use string
sethrj 23cd613
Update dependencies
sethrj df50be6
Address feedback
sethrj e7f9077
fixup! Update dependencies
sethrj 4acd30c
use tomlsort commit hook instead of makefile
sethrj c641bf9
Remove pytest pre-commit hook
sethrj d3b4c8d
Use pre-commit hooks and do not do full test suite on commit
sethrj ebcc5b3
Update lockfile caching, use ruff only for pre-commit
sethrj d8acc9a
Merge remote-tracking branch 'upstream/main' into poetry
sethrj d709e37
Manually install poetry and fix lock title
sethrj be8f5f1
Fix poetry path
sethrj a7b8231
Use project instead of tool.poetry
sethrj 595517f
Add verbosity and fix poetry config command
sethrj 1853955
Fix dev dependencies
sethrj 406f7e2
Update dependencies and make more verbose
sethrj edcb580
Update poetry version and remove included dep
sethrj 064bd2b
Clean action
sethrj 31b08af
Add poetry lockfile to repository
sethrj 3c99032
Address comments, update readme and workflow
sethrj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Setup the dependencies | ||
| description: Check out the repo, install pinned Python and Poetry version, make deps | ||
|
|
||
| inputs: | ||
| python-version: | ||
| description: Python version to install | ||
| required: false | ||
| default: "3.11" | ||
| poetry-version: | ||
| description: Poetry version to install | ||
| required: false | ||
| default: "2.3.3" | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install python | ||
| id: setup-python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ inputs.python-version }} | ||
| - name: Install poetry | ||
| id: setup-poetry | ||
| shell: sh | ||
| run: | | ||
| printf "\033[34;1m%s\033[0m: %s\n" "Python location" "$(command -v python)" | ||
| pipx install --python python poetry==${{ inputs.poetry-version }} | ||
| printf "\033[34;1m%s\033[0m: %s\n" "Poetry location" "$(command -v poetry)" | ||
| # Configure dependencies to install in venv | ||
| poetry config --no-interaction virtualenvs.create true | ||
| poetry config --no-interaction virtualenvs.in-project true | ||
| - name: Cache venv for OS, python, lockfile | ||
| id: cached-venv | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: .venv | ||
| key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }} | ||
| - name: Install dependencies when uncached | ||
| if: ${{steps.cached-venv.outputs.cache-hit != 'true'}} # inexact = false | ||
| shell: sh | ||
| run: poetry -v install --no-interaction --no-root --with test --without dev | ||
| - name: Install project | ||
| shell: sh | ||
| run: poetry -v install --no-interaction --only-root | ||
|
|
||
| # vim: set nowrap tw=100: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.