Comments (8)
Thanks for filing the issue!
I'm not sure I understand why the local version would be lower than what's on PyPI? Why would it be 1.3.0
and not 1.4.0
?
from bump.
My mistake, this is an inaccurate example.
When we're implementing patches and we don't want to waste time changing patch numbers. It's enough for us to set minor/major and we don't want to add to our process that every time CI builds a package for us and it commits a change to the code with a new number.
We can then set myself to version 1.4.0 and all patches will be numbered via pypi.org.
from bump.
Wouldn't this just be the same as bumping with bump --patch
? Why would the local version be different than what's on PyPI?
from bump.
The result for the first iteration will be the same as with --patch
, but when we do it next time (and more without manually bumbing version), we can get a conflict at uploading file with the same version to the pypi.
from bump.
The usual workflow would be something like:
- make some changes
- run bump
- commit/push/merge the changes
- publish to pypi
That way whatever the version is, either locally, in your repo or CI environment, it's the same as the latest version on PyPI.
Based on that, I'm not sure what the scenario where running bump --patch
one or multiple times would produce a version that's already on PyPI -- can you explain how that would happen?
from bump.
Sometimes we don't have the option of adding new versions to the code in the building process (pipeline is forbidden to use write access), and sometimes we forget to raise the patch version.
We originally used it with Artifactory, now I adapted it to pypi.org.
I added an additional condition:
local | pypi.org | after update
1.2.9 | 1.3.0 | -> 1.3.1
1.3.0 | 1.3.0 | -> 1.3.1
1.3.0 | 1.3.1 | -> 1.3.2
1.4.0 | 1.3.0 | -> 1.4.0
from bump.
So you're increasing the version number when publishing, but not adding it back to the source code? Why not just ensure the version number is increased whenever changes are made?
This tool is primarily focused on taking the local source as the source of truth, and then bumping it. Introducing the potential for the current state on PyPI (or any other index) to change how this works is somewhat counter to the goals, I'm not sure if this is a use case it makes sense to support.
from bump.
Ok, no problem, I'll keep this change in my fork. Closing issue and PR #18
from bump.
Related Issues (13)
- Integrate with pypa/packaging
- Allow `dev` and `post` release segments to be set
- More tests and coverage reporting
- Unexpected keyword argument 'fallback' HOT 4
- Bumping does not remove local/pre tags HOT 6
- Still maintained? HOT 2
- Show current version number? HOT 2
- Why is click version less than 7 required? HOT 2
- patch level increases when minor/major are specified? HOT 4
- Migrate to GitHub Actions
- Support for pyproject.toml? HOT 4
- Poetry dependencies in private repos are bumped inadvertently HOT 4
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 bump.