-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version handling #198
Version handling #198
Commits on Mar 31, 2020
-
Add packaging as direct dependency
We are going to depend on packaging for converting to a PEP 440 compliant version.
Configuration menu - View commit details
-
Copy full SHA for 40d141b - Browse repository at this point
Copy the full SHA 40d141bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5ffa9e - Browse repository at this point
Copy the full SHA e5ffa9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2f9a99 - Browse repository at this point
Copy the full SHA e2f9a99View commit details -
Move get_version_from_pyproject_toml func to utils
Move a slightly modified version of get_version_from_pyproject_toml function to the utils module.
Configuration menu - View commit details
-
Copy full SHA for 45e9e54 - Browse repository at this point
Copy the full SHA 45e9e54View commit details -
Hardcode version in __version__.py
The pyproject.toml file is **NOT** contained in the distributed python package and therefore the version can't be loaded from the pyproject.toml file at all. As a result the version information must be set at two places 1. In the [tool.poetry] section of the pyproject.toml file 2. In a file within the installed and distributed python package
Configuration menu - View commit details
-
Copy full SHA for a7198d0 - Browse repository at this point
Copy the full SHA a7198d0View commit details -
Add utility to handle version information
Convert verify-version.py into a more general utility to handle the version information in python-gvm.
Configuration menu - View commit details
-
Copy full SHA for ff3f100 - Browse repository at this point
Copy the full SHA ff3f100View commit details -
Move version script into gvm package
Allow to call the module via python -m
Configuration menu - View commit details
-
Copy full SHA for af691c1 - Browse repository at this point
Copy the full SHA af691c1View commit details -
Move version functions from utils to version module
These function as version relates thus they should be in the new version module.
Configuration menu - View commit details
-
Copy full SHA for 5b5d04b - Browse repository at this point
Copy the full SHA 5b5d04bView commit details
Commits on Apr 1, 2020
-
Refactor version checks into several function
Allow to reuse some of the code in external libraries and tools.
Configuration menu - View commit details
-
Copy full SHA for 9290ae0 - Browse repository at this point
Copy the full SHA 9290ae0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed3a9b - Browse repository at this point
Copy the full SHA 3ed3a9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4a6284 - Browse repository at this point
Copy the full SHA c4a6284View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1916abf - Browse repository at this point
Copy the full SHA 1916abfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66619e5 - Browse repository at this point
Copy the full SHA 66619e5View commit details -
Add testcase for get_version_from_pyproject_toml
Also don't crash if version is not contained in [tool.poetry] section.
Configuration menu - View commit details
-
Copy full SHA for bfc79d1 - Browse repository at this point
Copy the full SHA bfc79d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fe7372 - Browse repository at this point
Copy the full SHA 4fe7372View commit details -
Rename function and add testcase
Rename check_version_is_pep440_compliant to is_version_pep440_compliant and add a testcase.
Configuration menu - View commit details
-
Copy full SHA for 362cc09 - Browse repository at this point
Copy the full SHA 362cc09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a61101 - Browse repository at this point
Copy the full SHA 2a61101View commit details -
Don't add extra spaces at the end of the generated __version__.py file.
Configuration menu - View commit details
-
Copy full SHA for 86750e5 - Browse repository at this point
Copy the full SHA 86750e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c88830 - Browse repository at this point
Copy the full SHA 0c88830View commit details -
tomlkit allos to preserver the current structure and layout when saving the toml file.
Configuration menu - View commit details
-
Copy full SHA for 75a11ed - Browse repository at this point
Copy the full SHA 75a11edView commit details -
Don't call poetry for a version update
Update the pyproject.toml version by reading and writing the file directly instread of calling poetry update.
Configuration menu - View commit details
-
Copy full SHA for 8866034 - Browse repository at this point
Copy the full SHA 8866034View commit details -
Configuration menu - View commit details
-
Copy full SHA for 043331d - Browse repository at this point
Copy the full SHA 043331dView commit details -
Configuration menu - View commit details
-
Copy full SHA for df23dea - Browse repository at this point
Copy the full SHA df23deaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c42bab - Browse repository at this point
Copy the full SHA 1c42babView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ce9410 - Browse repository at this point
Copy the full SHA 9ce9410View commit details