Coder Social home page Coder Social logo

Wheel blacklisting about buildout.wheel HOT 1 OPEN

leorochael avatar leorochael commented on June 26, 2024 1
Wheel blacklisting

from buildout.wheel.

Comments (1)

leorochael avatar leorochael commented on June 26, 2024

After experimenting with this feature in a branch, I've come to the conclusion that there is nothing wheel specific about it, and it could just as well live in another extension, where it could be used to generically blacklist specific dists (including eggs or sdists).

I've thought about the following design:

Instead of a wheel-blacklist setting on [buildout], we could have a distribution-blacklist-section that contained the name of a buildout section. This section would then contain project names as keys, and fnmatch.filter() style patterns as values. Something like:

[buildout]
extensions =
    buildout.distblacklist
    buildout.wheel
distribution-blacklist-section = distblacklist
(...)

[distblacklist]
ptyprocess = */ptyprocess-0.5.1-py2.py3-none-any.whl
zc.recipe.egg = *.whl

The nice thing about this syntax is that it allows blacklisting specific dist formats in specific hosts for specific projects only (or even for specific architectures), like:

[distblacklist]
numpy = https://pypi.python.org/*/numpy-*-cp27-cp27m-manylinux1_x86_64.whl

We can get equivalent functionality by having a single setting contain all blacklist patterns instead of having different patterns for different project names, since the distribution names are necessarily embedded in the location URL, but allowing for different patterns for each project name allows to easily block certain formats of distribution only for certain projects.

from buildout.wheel.

Related Issues (8)

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.