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

Vendor Poetry #240

Merged
merged 16 commits into from
Oct 10, 2022
Merged

Vendor Poetry #240

merged 16 commits into from
Oct 10, 2022

Conversation

maresb
Copy link
Contributor

@maresb maresb commented Sep 17, 2022

Closes #235

Still in early stages, but want to test with CI.

I haven't forgotten the alternative proposal to write my own solver, but vendoring seems like the most straightforward place to start.

@netlify
Copy link

netlify bot commented Sep 17, 2022

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 75ad80b
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/6343bedd81d8e70009890936
😎 Deploy Preview https://deploy-preview-240--conda-lock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@maresb
Copy link
Contributor Author

maresb commented Sep 17, 2022

Current goals:

  • Get tests to pass ✔️
  • Fix pre-commit ✔️
  • Eliminate extraneous dependencies from vendored Poetry ✔️

@maresb
Copy link
Contributor Author

maresb commented Sep 18, 2022

Rebased on #241 and cleaned up commits

@maresb
Copy link
Contributor Author

maresb commented Sep 19, 2022

Weird, the .whl is missing a bunch of files which are included in the sdist... I'll have to look into this once I get the chance.

@maresb
Copy link
Contributor Author

maresb commented Sep 19, 2022

I think the missing files may have simply been setuptools weirdness. Rebasing on main with Hatch, it looks like everything's there now.

@maresb
Copy link
Contributor Author

maresb commented Sep 19, 2022

BTW, my vendored poetry is also subvendoring all sorts of stuff. 🙄 Do I need to write a license aggregator now? 😂

@maresb maresb mentioned this pull request Sep 22, 2022
@mariusvniekerk
Copy link
Collaborator

@maresb you can potentially make use of vendoring which is the thing that pip uses. We can't use if for conda since conda can't easily be installed using pip, but for poetry it should work fine. vendoring takes care of license aggregation etc.

@maresb
Copy link
Contributor Author

maresb commented Sep 25, 2022

Unfortunately your advice came slightly too late. I'm just putting the finishing touches on a tool I made yesterday.

@maresb maresb force-pushed the vendor-poetry branch 4 times, most recently from b63fa8d to 83fa665 Compare October 3, 2022 12:03
@maresb
Copy link
Contributor Author

maresb commented Oct 3, 2022

This seems to be fundamentally working. But I still want to see if I can simplify things by using vendoring...

@maresb
Copy link
Contributor Author

maresb commented Oct 4, 2022

Ok, this is almost ready to go. vendoring allowed me to make a few steps declarative rather than imperative, but it made a big mess of the subvendored licenses. I think I just need to do some quick refactoring into a cleanup script.

@mariusvniekerk
Copy link
Collaborator

@maresb I've got a similar one in #256 that uses vendoring to update conda

maresb added 8 commits October 9, 2022 23:40
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [1], "migrate_code_version": "1.0.0"}
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [2], "migrate_code_version": "1.0.0"}
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [3], "migrate_code_version": "1.0.0"}
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [4], "migrate_code_version": "1.0.0"}
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [5], "migrate_code_version": "1.0.0"}
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [6], "migrate_code_version": "1.0.0"}
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [7], "migrate_code_version": "1.0.0"}
Generated by running migrate-code on:
conda_lock/scripts/vendor_poetry/migration.py

migrate-code record:
{"migration_name": "Vendor poetry", "stage_id": [8], "migrate_code_version": "1.0.0"}
@maresb maresb marked this pull request as ready for review October 10, 2022 06:49
@mariusvniekerk mariusvniekerk merged commit 9870b27 into conda:main Oct 10, 2022
@maresb maresb deleted the vendor-poetry branch October 10, 2022 14:57
@maresb maresb mentioned this pull request Mar 4, 2024
2 tasks
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

Successfully merging this pull request may close these issues.

Straighten out Poetry dependency chaos
2 participants