question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change in behavior for 'requires.txt' in 36.2.0

See original GitHub issue

It seems setuptools v36.2.0 changed the behavior of {package}.egg-info/requires.txt generation. I suspect this was introduced by #1081. We saw this in pbr as it broke our unit tests. We have since fixed this, but ideally this behavior shouldn’t have changed in a minor release.

I don’t want to revert that change but I also would like this behavior to remain as consistent as possible (for as long as requires.txt files are used, anyway). I can work on a test to ensure this is the case.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
benoit-pierrecommented, Mar 26, 2018

@pganssle: yes, it’s easier, I have no problem with us implementing/testing it that way. The issue is with other projects doing the same.

0reactions
pgansslecommented, Mar 26, 2018

@benoit-pierre I guess the other side of this is that guaranteeing a specific order is probably in many ways easier than guaranteeing that the order is stable (since we can always re-order the outputs at the very end), and it’s much easier to test for guaranteed-order than it is to test for stable-order.

@jaraco If you’d like I’m happy to write a new test that checks that this works in some order-independent way, though I’m warming up to the idea of “we should sort anything where we weren’t guaranteeing order”, for purposes of build reproducibility, in which case this test seems fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow placement to start without a config file · 324e4f44da
Though this change is orthogonal to the oslo.config change, requirements and lower-constraints are updated to ensure the desired behavior.
Read more >
pip freeze creates some weird path instead of the package ...
I use pip freeze > requirements.txt to add the required package into the requirement.txt file. However, I realized that some of the packages, ......
Read more >
Just Enough Items (JEI) - Mods - Minecraft - CurseForge
Transition various string based APIs over to text components (#2306) - Sara ... Only require IRecipeWrapper for vanilla crafting recipe extensions - mezz ......
Read more >
User Guide - pip documentation v22.3.1
python -m pip freeze > requirements.txt python -m pip install -r requirements.txt ... in your requirements file, then replace that line with the...
Read more >
What is the python requirements.txt? - I Don't Know, Read The ...
Especially if it is a larger project. So you want to keep track of what version of each package you are using to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found