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

Refactor Python package and build #604

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Feb 19, 2024

Supersedes #582 and addresses #168

Moves around some config files and expands pyproject to be the single source of truth, with a dynamic version from the git tags. Also hacks the docker build so that this version info gets passed in production, and switches to using uv inside the docker builds.

For now, I'd like this PR to retain Pipfile and Pipfile.lock so that existing developer workflows should still work. In the future, we will switch to purely using uv-generated lockfiles for dependencies, which will allow us to use dependabot again properly, and make our dependency management less fraught with issues when wanting to update only one dep.

Warning: the deps in Pipfile.lock will not exactly match the uv generated lock files.

Copy link

cypress bot commented Feb 19, 2024

Passing run #1773 ↗︎

0 40 0 0 Flakiness 0

Details:

Merge 1ebb520 into 0869924...
Project: datalab Commit: ed766c7046 ℹ️
Status: Passed Duration: 02:13 💡
Started: May 16, 2024 6:24 PM Ended: May 16, 2024 6:26 PM

Review all test suite changes for PR #604 ↗︎

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 67.26%. Comparing base (f98ff00) to head (1ebb520).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
+ Coverage   66.89%   67.26%   +0.37%     
==========================================
  Files          62       62              
  Lines        3727     3748      +21     
==========================================
+ Hits         2493     2521      +28     
+ Misses       1234     1227       -7     
Files Coverage Δ
pydatalab/pydatalab/main.py 65.54% <ø> (+1.20%) ⬆️
pydatalab/pydatalab/__init__.py 60.00% <60.00%> (-40.00%) ⬇️

... and 12 files with indirect coverage changes

@ml-evs ml-evs force-pushed the ml-evs/update-pyproject branch 2 times, most recently from 771d2fd to 317dffd Compare May 15, 2024 16:03
@ml-evs ml-evs marked this pull request as ready for review May 15, 2024 17:14
@ml-evs ml-evs requested a review from jdbocarsly as a code owner May 15, 2024 17:14
@ml-evs ml-evs force-pushed the ml-evs/update-pyproject branch 2 times, most recently from 04c3cc2 to a68e6ce Compare May 15, 2024 17:19
- Update docs build configuration
- More cleaning of dependencies

- Add missing dep and fix package name in version finder

- Add chat deps as an extra

- Add pip-compile style lockfiles generated by uv

- Update lock files

Tweak navani dep
@ml-evs
Copy link
Member Author

ml-evs commented May 16, 2024

Decision is to merge this PR immediately after the next release, to avoid breaking deployments.

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

Successfully merging this pull request may close these issues.

None yet

1 participant