Skip to content

Commit 9679a52

Browse files
authored
Merge pull request #196 from bjoernricks/master
Prepare 1.3.0 release
2 parents e30a897 + ddc28c2 commit 9679a52

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [1.3.0]
99

1010
### Added
1111
* Added `GvmServerError`, `GvmClientError`, `GvmResponseError` and `InvalidArgumentType` error type classes [#192](https://github.com/greenbone/python-gvm/pull/192)
@@ -14,11 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
* Refactored the `InvalidArgument` and `RequiredArgument` errors in the gmp classes [#192](https://github.com/greenbone/python-gvm/pull/192)
1515
* Refactored the status response errors in case of a failure in the communication with the server in `transform.py` [#192](https://github.com/greenbone/python-gvm/pull/192)
1616

17-
### Fixed
18-
19-
### Removed
20-
21-
[Unreleased]: https://github.com/greenbone/python-gvm/compare/v1.2.0...master
17+
[1.3.0]: https://github.com/greenbone/python-gvm/compare/v1.2.0...v1.3.0
2218

2319
## [1.2.0]
2420

gvm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from pkg_resources import safe_version
2323

24-
VERSION = (1, 3, 0, 'dev', 1)
24+
VERSION = (1, 3, 0)
2525
"""
2626
Current Version of python-gvm as a tuple
2727
"""

verify-version.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,20 @@
2121
from gvm import get_version
2222

2323

24+
def strip_version(version: str) -> str:
25+
if not version:
26+
return version
27+
28+
if version[0] == 'v':
29+
return version[1:]
30+
31+
2432
def main():
2533
if len(sys.argv) < 2:
2634
sys.exit('Missing argument for version.')
2735
return
2836

29-
p_version = sys.argv[1]
37+
p_version = strip_version(sys.argv[1])
3038
version = get_version()
3139
if p_version != version:
3240
sys.exit(

0 commit comments

Comments
 (0)