Code Monkey home page Code Monkey logo

Comments (8)

abravalheri avatar abravalheri commented on July 17, 2024 2

It is a pity to loose the functionality but I understand. I will work on that.

from validate-pyproject.

abravalheri avatar abravalheri commented on July 17, 2024 1

Hi @FRidh, thank you very much for reporting this.

Adding an option seems very reasonable, but I have to engineer a way of passing them through the chain.

Currently there is a way of achieving that, but it involves setting a environment variable: NO_NETWORK. Does that work for you?

from validate-pyproject.

FRidh avatar FRidh commented on July 17, 2024

Best ask other redistributors what their point of view is on this matter. Let's start with arch, cc @FFY00
For me that works, but as you said, in the end this needs to be in setuptools.

from validate-pyproject.

FFY00 avatar FFY00 commented on July 17, 2024

Yup, the NO_NETWORK environment variable as it is currently implemented should be perfectly fine for us. Note that I haven't really tried it, but looking at the code I don't see any architectural reason why it wouldn't.

from validate-pyproject.

abravalheri avatar abravalheri commented on July 17, 2024

For me that works, but as you said, in the end this needs to be in setuptools.

Hi @FRidh, I am not sure if I understood this correctly.

I am planning to disable the trove-classifiers when running setuptools tests.
However disabling trove-classifiers by default every time that the validations are running via setuptools seems like a drop in functionality to me.

Isn't it a good thing that packages are having their classifiers validated by default during the build? I would say that is a feature...

validate-pyproject will not fail if it does not manage to download files, so it does play nice even if the end user is offline.


When running the tests people can opt out of this particular behaviour by setting the environment variable, or have a more consistent one by installing a pinned version of the trove-classifiers package in the build environment.

from validate-pyproject.

FRidh avatar FRidh commented on July 17, 2024

Isn't it a good thing that packages are having their classifiers validated by default during the build? I would say that is a feature...

Absolutely! However, fetching something from the web is not the way, since as I mentioned, it can affect reproducibility. When a classifier is in the future deprecated, it will fail the validation and thereby the build, right?

I'm going to drop this here. https://reproducible-builds.org/.

from validate-pyproject.

abravalheri avatar abravalheri commented on July 17, 2024

Thank you very much @FRidh.

I feel like if the users are interested in reproducibility, it would be fair to expect them to pin trove-classifiers in the build environment.

However I understand that this is not something you cannot teach easily and it is very easy to get wrong, so is just easier to sacrifice the classifier validation for the sake of pragmatism.

Unfortunately 😢

from validate-pyproject.

FRidh avatar FRidh commented on July 17, 2024

Thanks for your understanding!

I feel like if the users are interested in reproducibility, it would be fair to expect them to pin trove-classifiers in the build environment.

They would have to know about that then. You could ask this for this package, but what about every other package out there?

The issue really is that there can be a near infinite amount of ways impurities are introduced. So in this case, while providing an environment variable is a good idea, it becomes something those that bother with reproducibility will need to be aware of. Knowing these aspects of every package (and it's vendored dependencies!) is not doable. Many fixes have been in the past years by a lot of people to achieve reproducible builds that it would be a pity to take a step back, even for something as relatively small as this.

from validate-pyproject.

Related Issues (20)

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.