feat: switch pruna from poetry to uv#164
Conversation
|
Hello there! 👋 I can’t directly push to this PR. You can find the related PR here, and then we can merge them together. |
|
@johnrachwan123 don't forget to update the development docs. https://docs.pruna.ai/en/stable/docs_pruna/contributions/how_to_contribute.html |
a0de480 to
e2eeecb
Compare
Done :) Thanks for the reminder! |
d5fb729 to
f2310fd
Compare
There was a problem hiding this comment.
Here, considering the long-term changes; what if we just link to the uv installation page
There was a problem hiding this comment.
I agree this would be better. I think we can just add this to the uv section above as well.
There was a problem hiding this comment.
Two things:
- I wonder if it makes sense to merge
testsanddevinto each other? I don't see that much benefit having them separate 🤷 - It would be nice to use:
uv sync --frozen
There was a problem hiding this comment.
Hey we have an internal project to address these points in a later PR!
There was a problem hiding this comment.
Cool, I can also give a hand after merging this
There was a problem hiding this comment.
I agree this would be better. I think we can just add this to the uv section above as well.
* feat: attempt to swtich pruna from poetry to uv * fix: uv installation * refactor: remove requirements.txt * format the pyproject.toml properly + point to the license file * change linting file to use uv * use latest version of checkout * use latest version of setup-python * change documentation file to use uv * use latest version of setup-python * change external_tests file to use uv * change internal_tests file to use uv + prefix previous command to use uv * change installation file to use uv * change package_buil;d file to use uv + add retention policy there * tests: update package build to uv * remove poetry from gitignore * format the pyproject.toml properly + point to the license file * change package_buil;d file to use uv + add retention policy there * reduce the diff * add alaki file (random file); hopefully to triggers most of the workflows * Delete src/pruna/alaki.py * build: bump actions/setup-python from 3 to 5 (#193) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v3...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build: bump abatilo/actions-poetry from 2 to 4 (#195) Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 2 to 4. - [Release notes](https://github.com/abatilo/actions-poetry/releases) - [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc) - [Commits](abatilo/actions-poetry@v2...v4) --- updated-dependencies: - dependency-name: abatilo/actions-poetry dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build: bump actions/cache from 3 to 4 (#196) Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build: bump actions/checkout from 3 to 4 (#194) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update pyproject.toml * build: update ctranslate2 requirement from ==4.5.0 to ==4.6.0 (#199) Updates the requirements on [ctranslate2](https://github.com/OpenNMT/CTranslate2) to permit the latest version. - [Release notes](https://github.com/OpenNMT/CTranslate2/releases) - [Changelog](https://github.com/OpenNMT/CTranslate2/blob/master/CHANGELOG.md) - [Commits](OpenNMT/CTranslate2@v4.5.0...v4.6.0) --- updated-dependencies: - dependency-name: ctranslate2 dependency-version: 4.6.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * this is gone on main * enable caching in order to expedite the installtion time * just a test * Remove commented-out step for deleting .so files from linting workflow --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: johnrachwan123 <johnrachwan@gmail.com> Co-authored-by: David Berenstein <david.m.berenstein@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
52c2294 to
6bb200a
Compare
| run: pip install -e . | ||
| run: | | ||
| uv venv | ||
| uv pip install -e . |
There was a problem hiding this comment.
Either this or you can also say activate-environment: true in with block of the install uv step; I wanted to do this later after you merge this PR, to create a common github action file and put the whole installation logic with activate-environment: true there which means we don't need to prefix every command with uv
|
🔥 |
Description
Related Issue
Fixes #30
Type of Change
How Has This Been Tested?
Checklist
Additional Notes