aboutcode-org / aboutcode-org/univers
Incorrect next_major, next_minor and next_patch in prerelease SemverVersion
- Ngôn ngữ chính
- Python
- Star
- 50
- Fork
- 29
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
```python
>>> from univers.versions import SemverVersion
>>> SemverVersion("1.0.0-beta").next_major()
SemverVersion(string='1.0.0')
```
```python
>>> SemverVersion("1.0.0-beta").next_minor()
SemverVersion(string='1.0.0')
```
```python
>>> SemverVersion("1.0.0-beta").next_patch()
SemverVersion(string='1.0.0')
```
This is likely a bug in [python-semanticversion](https://github.com/rbarrois/python-semanticversion)
### Edit
This indeed is a bug see the behavior of [python-semver](https://github.com/python-semver/python-semver) below
```python
>>> import semver
>>> version = semver.VersionInfo.parse("1.0.0-beta")
>>> str(version)
'1.0.0-beta'
>>> str(version.bump_major())
'2.0.0'
>>> str(version.bump_minor())
'1.1.0'
>>> str(version.bump_patch())
'1.0.1'
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.