Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Version handling with pontos #254

Merged
merged 6 commits into from
Apr 17, 2020
Merged

Version handling with pontos #254

merged 6 commits into from
Apr 17, 2020

Conversation

bjoernricks
Copy link
Contributor

Use pontos for handling the version information in ospd

The version information must be handled in the pyproject.toml file and within the ospd python package ospd/__version__.py.

To check if the current version information is in sync:

poetry run python -m pontos.version verify current

To show the current used version

poetry run python -m pontos.version show

To update to a different version

poetry run python -m pontos.version <new-version>

pontos will be used to handle the version information in ospd.
Write the version information to ospd/__version__.py file.
Add a lint check for the version information. This will keep the version
information in pyproject.toml and ospd/__version__.py in sync.
@codecov
Copy link

codecov bot commented Apr 17, 2020

Codecov Report

Merging #254 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #254      +/-   ##
==========================================
+ Coverage   73.80%   73.81%   +0.01%     
==========================================
  Files          20       21       +1     
  Lines        2302     2303       +1     
==========================================
+ Hits         1699     1700       +1     
  Misses        603      603              
Impacted Files Coverage Δ
ospd/__version__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d38298e...28282b0. Read the comment docs.

@bjoernricks bjoernricks marked this pull request as ready for review April 17, 2020 06:24
@bjoernricks bjoernricks merged commit 5abb91f into greenbone:master Apr 17, 2020
@bjoernricks bjoernricks deleted the version-handling-with-pontos branch April 17, 2020 10:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants