Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python-semver/python-semver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.0.0-dev.4
Choose a base ref
Loading
...
head repository: python-semver/python-semver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.0.0-rc.1
Choose a head ref
Loading
  • 18 commits
  • 53 files changed
  • 8 contributors

Commits on Dec 20, 2022

  1. tox/pytest: Add testpaths and use importlib

    Switch to the more modern importlib approach as it doesn't
    require to modify sys.path:
    https://docs.pytest.org/en/7.2.x/explanation/pythonpath.html
    tomschr committed Dec 20, 2022
    Configuration menu
    Copy the full SHA
    f24a1da View commit details
    Browse the repository at this point in the history
  2. Merge pull request #388 from tomschr/feature/testpaths

    tox/pytest: Add testpaths and use importlib
    tomschr authored Dec 20, 2022
    Configuration menu
    Copy the full SHA
    bf8757a View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2022

  1. Introduce public Version.NAMES class variable

    This class variable contains a tuple of strings that
    contains the names of all attributes of a Version
    (like "major", "minor" etc).
    
    In cases we need to have dynamical values, this
    makes it easier to iterate.
    tomschr committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    86fcf48 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #389 from tomschr/feature/version.names

    Trivial: Introduce public Version.NAMES class variable
    tomschr authored Dec 23, 2022
    Configuration menu
    Copy the full SHA
    0ca281d View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. Fix pydantic/semver example

    The current example, when used with semver 3.0.0.dev4 and pydantic
    1.10.4, produces the following error:
    
      pydantic.errors.ConfigError: Invalid signature for validator <bound
      method Version.parse of <class '__main__.PydanticVersion'>>: (version:
      Union[str, bytes], optional_minor_and_patch: bool = False) ->
      'Version', should be: (value, values, config, field), "values",
      "config" and "field" are all optional.
    
    This commit fixes the example in the documentation so that it works and
    does not raise an error.
    mssalvatore committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    35da4f6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #392 from mssalvatore/fix-pydantic-semver-example

    Fix pydantic/semver example
    tomschr authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    2018346 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Fix: All python -m semver commands fail with 'error: invalid choice:'

    This was caused by __main__.py passing `sys.argv` to `cli.main()`,
    which includes the path of the script in `sys.argv[0]`.
    `argparse.ArgumentParser.parse_args()` parses this as the subcommand
    name, causing it to throw an error.
    zanecodes committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    a5f3a69 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. Merge pull request #393 from zanecodes/fix-cli

    Fix: All `python -m semver` commands fail with 'error: invalid choice:'
    tomschr authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    7e062c8 View commit details
    Browse the repository at this point in the history
  2. Add changelog entry for pr #393

    tomschr committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    a1604fb View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2023

  1. Fix return type of classmethod parse (#396)

    So that calling parse on a derived class will show correct type of
    derived class
    def- authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    6176316 View commit details
    Browse the repository at this point in the history
  2. Add changelog entry for PR #396

    tomschr committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    bee273e View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. Fix #284: implement "is_compatible" with method

    * Implement Version.is_compatible() method
    * Update test cases
    * Update documentation
    * Rename isvalid method to is_valid to make it consistent
      with is_compatible
    
    The result is True, if either of the following is true:
    
    * both versions are equal, or
    * both majors are equal and higher than 0. Same for both minors.
      Both pre-releases are equal, or
    * both majors are equal and higher than 0. The minor of b's
      minor version is higher then a's. Both pre-releases are equal.
    
    The algorithm does *not* check patches!
    
    Co-authored-by: Lexi Robinson <lexi@lexi.org.uk>
    Co-authored-by: Thomas Laferriere <tlaferriere@users.noreply.github.com>
    Co-authored-by: Raphael Krupinski <rafalkrupinski@users.noreply.github.com>
    4 people committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    5485b6b View commit details
    Browse the repository at this point in the history
  2. Fix #344 Allow empty string for bump methods

    The methods .bump_prerelease() and .bump_build() allow now
    different types for the token argument:
    
    * A string. This was already allowed and default was "rc".
      If the string is empty, we get only the raised number (without
      the "rc" part). The number starts from 1.
    * None. Is the same as calling the method without any argument.
    tomschr committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    f8a182f View commit details
    Browse the repository at this point in the history
  3. Merge pull request #365 from tomschr/feature/344-prerelease-build

    Fix #344 Allow empty string for bump method
    tomschr authored Mar 5, 2023
    Configuration menu
    Copy the full SHA
    a2a6169 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Fix #397: Remove asterisk in python_requires

    The asterisk in "python_requires = >= 3.7.*" make the
    pyproject-build command fail with this exception:
    
     setuptools.extern.packaging.specifiers.InvalidSpecifier: Invalid specifier: '>=3.7.*'
    
    This fix removes the asterisk which leads to a successful build.
    tomschr committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    67464a7 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Merge pull request #398 from tomschr/bugfix/397-python_requires

    Fix #397: Remove asterisk in python_requires
    tomschr authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    9b475f7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #368 from tomschr/feature/284-compatibility

    Fix #284: implement "is compatible with" method
    tomschr authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    467ea0c View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2023

  1. Prepare for 3.0.0-rc.1 release

    * Combine all dev releases together in one changelog
    * Remove all changelog.d entries and integrate it into CHANGELOG
    * Move dev releases to file changelog-semver3-devel.rst
    * Split contributing into different sections
    * Some doc polishing; use :meth: consistently for semver.Version methods
    * Fix also some doc bugs
    * Amend list of contributors and sorted alphabetically by lastname
    * Correct docstrings on some deprecated functions
    tomschr committed Mar 19, 2023
    Configuration menu
    Copy the full SHA
    45e12ec View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.