Comments (7)
Fixed with 51074bb.
from pip-update-requirements.
It does default to zero exit code on success, and non-zero on error. The only time exit code 10
is used is when --nonzero-exit-code
is present, so scripts can use the exit code when they need to know if packages were updated or not. This feature was added with #5.
from pip-update-requirements.
Which doesn’t align with tools like black in check mode. The idea would be that even in non zero exit code you would still use 0 when no update is required. As such, why is 10 used instead when all is good and it was successful. It makes sense to return something when packages need an update but not when it ran successfully and it doesn’t have any packages to update
from pip-update-requirements.
Oh, got it. We can change that in a major release to exit zero when everything is up to date.
from pip-update-requirements.
@kichik and @pradyunsg, before we change the nonzero exit code behavior to exit with 0
instead of 10
when no packages were updated, I want to check with you first. Would 0
exit code work for you? The 11
exit code would still be used when --nonzero-exit-code
present and any packages needed updating.
from pip-update-requirements.
I'm not sure why I've been mentioned here. I have no clue what this discussion is about. :)
from pip-update-requirements.
Sorry for the very late reply, but I just now realized why you asked me and @pradyunsg and it's because of issue #5. I no longer use pur, so the change doesn't affect me. Thanks for checking!
from pip-update-requirements.
Related Issues (20)
- Show warning for invalid packages HOT 4
- Breakage (due to click update?) HOT 4
- Add click v8 compatibility HOT 6
- Error running with Python 3.10: cannot import name 'Mapping' from 'collections' HOT 1
- pur installs yanked packages HOT 1
- Update builtin pip HOT 1
- import error in version 6.0.0 HOT 1
- How can I solve this problem from my termux terminal? HOT 2
- Add support for pyproject.toml
- urllib3 dependency is missing HOT 8
- Use of the environment-markers HOT 1
- How to delay requirement checking for n days? HOT 1
- Feature: dry mode that lists packages that can be upgraded HOT 3
- Allow to update multiple requirements files
- How can I make pur work faster? HOT 5
- Outdated certifi version includes untrusted certs HOT 1
- Support for Python 3.12
- `--skip` param ignored for included requirements files HOT 1
- Color code output highlighting version parts that changed
- Missing newlines using `— dry-run-changed` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pip-update-requirements.