Skip to content
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

Merged
merged 25 commits into from
Apr 2, 2020
Merged

Version handling #198

merged 25 commits into from
Apr 2, 2020

Commits on Mar 31, 2020

  1. Add packaging as direct dependency

    We are going to depend on packaging for converting to a PEP 440
    compliant version.
    bjoernricks committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    40d141b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e5ffa9e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2f9a99 View commit details
    Browse the repository at this point in the history
  4. 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.
    bjoernricks committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    45e9e54 View commit details
    Browse the repository at this point in the history
  5. 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
    bjoernricks committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    a7198d0 View commit details
    Browse the repository at this point in the history
  6. Add utility to handle version information

    Convert verify-version.py into a more general utility to handle the
    version information in python-gvm.
    bjoernricks committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    ff3f100 View commit details
    Browse the repository at this point in the history
  7. Move version script into gvm package

    Allow to call the module via python -m
    bjoernricks committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    af691c1 View commit details
    Browse the repository at this point in the history
  8. Move version functions from utils to version module

    These function as version relates thus they should be in the new version
    module.
    bjoernricks committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    5b5d04b View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2020

  1. Refactor version checks into several function

    Allow to reuse some of the code in external libraries and tools.
    bjoernricks committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    9290ae0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ed3a9b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c4a6284 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1916abf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    66619e5 View commit details
    Browse the repository at this point in the history
  6. Add testcase for get_version_from_pyproject_toml

    Also don't crash if version is not contained in [tool.poetry] section.
    bjoernricks committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    bfc79d1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4fe7372 View commit details
    Browse the repository at this point in the history
  8. Rename function and add testcase

    Rename check_version_is_pep440_compliant to is_version_pep440_compliant
    and add a testcase.
    bjoernricks committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    362cc09 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2a61101 View commit details
    Browse the repository at this point in the history
  10. Remove extra spaces

    Don't add extra spaces at the end of the generated __version__.py file.
    bjoernricks committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    86750e5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0c88830 View commit details
    Browse the repository at this point in the history
  12. Replace toml with tomlkit

    tomlkit allos to preserver the current structure and layout when saving
    the toml file.
    bjoernricks committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    75a11ed View commit details
    Browse the repository at this point in the history
  13. 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.
    bjoernricks committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    8866034 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    043331d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    df23dea View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1c42bab View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9ce9410 View commit details
    Browse the repository at this point in the history