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

feat: PyPI dependencies, downloading + extracting archives from PyPI #2289

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

antazoey
Copy link
Member

What I did

Allows you to use the pypi: key for dependencies.
This key will download + extract the archive file (if one exists).
The python: key still exists; it might make sense for devs planning on publishing to pypi but haven't yet or for devs who already have or plan-to use pip to instal the dependency anyway.

How I did it

Support and handle both keys.

How to verify it

dependencies:
   - pypi: snekmate
     config_override:
       contracts_folder: src

and run

ape pm install --force

took a lookie look :

(ape) ➜  ape git:(feat/pypi) ls ~/.ape/packages/projects/snekmate/0_1_0/
CHANGELOG.md   LICENSE        MANIFEST.in    PKG-INFO       README.md      pyproject.toml setup.cfg      src

also can do:

ape pm list

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey merged commit 195f364 into ApeWorX:main Sep 17, 2024
16 checks passed
@antazoey antazoey deleted the feat/pypi branch September 17, 2024 21:44
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.

2 participants