Skip to content
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.1
Choose a base ref
...
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-dev.2
Choose a head ref
  • 11 commits
  • 40 files changed
  • 2 contributors

Commits on Nov 1, 2020

  1. Create semver package

    * Bump the dev part to "dev.2"
    * Add stubby setup.py file for compatibility with python 3.6
    * Deprecate cli functions imported from root
    * Revert to `pysemver` as console script.
    * Refactor __main__.py
      * add type hints for correctness
    * Rename VersionInfo to Version to close #305
    * Refactor and integrate suggestion from @tomschr
      * Create :file:`src/semver/cli.py` for all CLI methods
      * Create :file:`src/semver/_deprecated.py` for the ``deprecated`` decorator and other deprecated functions
      * Create :file:`src/semver/__main__.py` to allow calling the CLI using :command:`python -m semver`
      * Create :file:`src/semver/_types.py` to hold type aliases
      * Create :file:`src/semver/version.py` to hold the :class:`VersionInfo` class and its utility functions
      * Create :file:`src/semver/__about__.py` for all the metadata variables
    * Adapt infrastructure code to the new project layout.
      * Replace :file:`setup.py` with :file:`setup.cfg` because the :file:`setup.cfg` is easier to use
      * Adapt documentation code snippets where needed
      * Adapt tests
      * Changed the ``deprecated`` to hardcode the ``semver`` package name in the warning.
    * Change path for docformatter and run it.
    * Remove pyi inclusion from black sine we aren't using them
    * Split up changelog to make more sense.
    * Add documentation for Version rename
    * Increase coverage to 100% in non-deprecated parts.
    * Update changelog.d/169.feature.rst
    
    Co-authored-by: Thomas Laferriere <t.laferriere@hotmail.ca>
    Co-authored-by: Tom Schraitle <tomschr@users.noreply.github.com>
    tlaferriere and tomschr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    b0f854d View commit details
    Browse the repository at this point in the history
  2. Support PEP-561 py.typed

    Acoording to the mentioned PEP:
    
      "Package maintainers who wish to support type checking
       of their code MUST add a marker file named py.typed
       to their package supporting typing."
    
    Add package_data to setup.cfg to include this marker in dist
    and whl file.
    tomschr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    2123413 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d1cf906 View commit details
    Browse the repository at this point in the history
  4. Distinguish between changlog for version 2 and 3

    Split changelog entries into semver 3 (new) and semver 2 (old).
    tomschr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    edfbbe9 View commit details
    Browse the repository at this point in the history
  5. Document migration from semver2 to semver3

    Create a separate file to describe how to migrate to new
    semver3.
    tomschr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    bb2cb90 View commit details
    Browse the repository at this point in the history
  6. Improve API documentation

    * Use sphinx-apidoc to build API documentation
    * Amend tox.ini and call sphinx-apidoc
    * Remove old autosummary; it turned out it was difficult to
      configure and returned warning messages which were hard to fix.
    * Add semver version in footer
    * Add semver.__about__ to API doc
      * Unorthodox solution with sed
      * Remove obsolete config variables in docs/config.py
      * Add docs/_api/semver.__about__.rst as a placeholder
    * Add changelog.d/304.doc.rst
    
    (An old attempt was to use autosummary from https://stackoverflow.com/a/62613202;
    however, that didn't work quite well.)
    
    Co-authored-by: Tom Schraitle <tomschr@users.noreply.github.com>
    tomschr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    7d00884 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #306 from tomschr/feature/169-package

    Create semver package
    tomschr authored Nov 1, 2020
    Configuration menu
    Copy the full SHA
    ff07c90 View commit details
    Browse the repository at this point in the history
  8. Create 3.0.0-dev.2

    * Build changelog from news files
    tomschr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    8b22c6f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5d192da View commit details
    Browse the repository at this point in the history
  10. Use literal strings in setup.cfg

    Due to https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html#metadata
    we cannot use the "attr:" type in the keywords author, author_email, maintainer,
    description, and maintainer_email.
    
    If we do not change it to literal strings, twine (or PyPI) complains about the metadata
    with the following error:
    
    HTTPError: 400 Client Error: 'attr: semver.__about__.__author_email__' is an invalid value for
    Author-email.
    tomschr committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    6a5ba32 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #307 from tomschr/release/3.0.0-dev.2

    Create 3.0.0-dev.2
    tomschr authored Nov 1, 2020
    Configuration menu
    Copy the full SHA
    e7558a9 View commit details
    Browse the repository at this point in the history
Loading