Comments (6)
Hello @justin-richert ,
Can you provide a sample of markdown content so that I can reproduce it and see what we can do from here?
Thanks again
from keepachangelog.
Sure!
# Changelog
All notable changes to this project will be documened in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [2.5.0b52] - 2021-04-21
### Changed
- Default Vary header now set on all responses for aiohttp apps
- ETag header logic for collection responses updated to indicate weak ETags
## [2.5.0b51] - 2021-04-21
### Fixed
- nginx container health check route in aiohttp kube deployment yaml was incorrect
This is probably a little bit of a bad example. I did go to semver.org and saw that the format defined there is actually this: 1.0.0-beta.1
instead of the way I have it. I think I pulled my formatting from PyPI's documentation, but I'm pretty sure their implementation is flexible enough to handle things like 1.0.0-beta.1
instead if you prefer to go the formal SemVer route.
Let me know if I can be of any help!
from keepachangelog.
Seems linked to #24
from keepachangelog.
@justin-richert there is no way we can properly automate bumping pre-release or release metadata information. As it is up to the user. In your case indeed it's easy to handle as you are incrementing an integer, but semver could also be used in the pre-release information as in X.Y.Z-dev.A.B.C. So I would rather avoid opening this door.
New version will however handle this kind of version and by default bump to a stable version.
If you want to be able to bump to a specific non-stable version, then I will add the ability to provide the new version yourself.
You would then be able to implement your own logic by:
- Retrieving latest version (2.5.0b52 in your case)
- Bumping pre-release to 53 by incrementing it (as it will be available in the semantic_version dict that will be introduced in #24 )
- Provide this new version to the
release
function.
I think this will cover all possible use case and still keep the project maintainable enough :)
from keepachangelog.
This is now in develop branch and will be part of next release
from keepachangelog.
@Colin-b Awesome. I think this is a perfect and simple solution. Thanks for spending time thinking about the problem and developing a solution for it. I appreciate your time!
from keepachangelog.
Related Issues (20)
- Feature request: Allow to convert back dict to string HOT 5
- Support a changelog file which doesn't use "sub sections" like "added", "changed" ... HOT 11
- A dict in python is not ordered HOT 2
- Add url to a release HOT 5
- 0.5.0 is breaking retro-compatibility HOT 1
- Add semantic version details
- Multiline entry results in multiple entries HOT 5
- Allow for using a different masthead/opening paragraph HOT 3
- "to_raw_dict" doesn't not include "Unreleased" HOT 3
- to_dict does not allow to provide a custom encoding HOT 4
- `from_dict` returns 2 newlines at EOF when there's no releases with URL in metadata HOT 1
- How can I retrieve latest version on pypi? HOT 1
- Patch version bump should be performed when the only category is fixed HOT 1
- Allow to provide a list of categories for each version bump type (major, minor, patch)
- .todict remove ** at start of a commit line HOT 1
- Text segments in versions are transformed to lowercase
- you're now a dependency! :) HOT 1
- parse category entries HOT 4
- 0.3.0: asterisks should only be stripped from the left 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 keepachangelog.