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

Yes, PEP 621 #175

Closed
frostming opened this issue Nov 23, 2020 · 0 comments · Fixed by #201
Closed

Yes, PEP 621 #175

frostming opened this issue Nov 23, 2020 · 0 comments · Fixed by #201
Labels
⭐ enhancement Improvements for existing features
Milestone

Comments

@frostming
Copy link
Collaborator

frostming commented Nov 23, 2020

As PEP 621 is finalized, the PDM project will also gradually move to PEP 621. It means project metadata under tool.pdm will eventually be deprecated and transferred to the project namespace, following the specification of PEP 621. The major changes lie in the dependency part:

  • We will adopt PEP 631 as the format of dependencies definition, which is an array of PEP 508 strings.
  • Editable requirements, which are not included in the above PEPs, will remain the same as Pip's standard.
  • Optional dependency sections and tool.poetry.extras field, will be replaced by project.optional-dependencies table, with the keys as the extra name and values an array of PEP 508 strings. That means all optional dependencies must belong to an extra requires category and will be present in the METADATA if uploaded to PyPI.
  • When the old format is detected, a prompt will be poped up to let users trigger the migration.
  • The only exception is that dev-dependencies will be under project namespace to keep all dependencies in one place.

tool.pdm namespace will still remain to hold some tool-specific settings which need to be synced with the deployment environment. Examples are tool.pdm.sources and tool.pdm.scripts

@frostming frostming added the ⭐ enhancement Improvements for existing features label Nov 23, 2020
@frostming frostming added this to the Release 1.0.0 milestone Dec 16, 2020
@frostming frostming mentioned this issue Dec 18, 2020
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant