GithubHelp home page GithubHelp logo

pdm-project / pdm-build-locked Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 267 KB

pdm-build-locked is a pdm plugin to publish locked dependencies as optional-dependencies

Home Page: https://pdm-build-locked.readthedocs.io

License: MIT License

Python 100.00%
locking pdm pdm-plugin awesome-pdm

pdm-build-locked's People

Contributors

frostming avatar sigma67 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pdm-build-locked's Issues

Any interest in donating to pdm-project org?

Hi,

First I would like to say thank you for developing this plugin. I am willing to make some enhancements to this project instead of starting a new fork, the enhancements include:

  1. Make it a backend plugin supporting both pdm-backend and hatchling
  2. Switch to the new cross-platform lockfile in the coming PDM 2.11.0 release.

So I hereby ask if you are interested in migrating this project to pdm-project umbrella?

resolution.overrides may lead to an incompatible `locked` group being published

Describe the bug

when tool.pdm.resolution.overrides is set to a range incompatible with project.dependencies for that dependency, the optional-dependencies group locked may be unusable in the resulting .whl file.

To Reproduce
Steps to reproduce the behavior:

  1. Set i.e. tool.pdm.resolution.overrides to sphinx<7 and project.dependencies to sphinx>7.
  2. sphinx==6.2.1 will be locked by pdm
  3. build the wheel using pdm build
  4. install the wheel using pip install mypkg[locked] - will yield ResolutionImpossible

Desired behavior
pdm build shall be aborted with an error stating that the locked dependency is incompatible with project.dependencies

Declaring optional-dependencies as dynamic raises an error on wheel build

Describe the bug

pdm.backend.exceptions.ValidationError: Field `project.optional-dependencies` declared as dynamic in but is defined

To Reproduce

Declared optional-dependencies dynamic. No project dependencies (dependencies = []).

Run pdm build.

Additional context
Backend error from here:

https://github.com/pdm-project/pdm-backend/blob/e6fcd5fcc2abae9ab25a9d69c71fd066de184110/src/pdm/backend/_vendor/pyproject_metadata/__init__.py#L219

Docs section that states dynamic here: https://pdm-build-locked.readthedocs.io/en/latest/plugins/backend.html#id1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.