trivver


Nametrivver JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://gitlab.com/ppentchev/python-trivver
SummaryA library for comparing version strings
upload_time2021-03-30 19:26:38
maintainer
docs_urlNone
authorPeter Pentchev
requires_python
licenseBSD-2
keywords version
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Compare package versions in all their varied glory.

## Description

This module provides the `compare()` function which compares two
version strings and returns a negative value, zero, or a positive
value depending on whether the first string represents a version
number lower than, equal to, or higher than the second one, and
the `key_compare()` function which may be used as a key for e.g.
`sorted()`.

This module does not strive for completeness in the formats of
version strings that it supports. Some version strings sorted by
its rules are:

- 0.1.0
- 0.2.alpha
- 0.2
- 0.2.1
- 0.2a
- 0.2a.1
- 0.2p3
- 1.0.beta
- 1.0.beta.2
- 1.0

## Contact

This module is [developed in a Gitlab repository][gitlab].
The author is [Peter Pentchev][roam].

## Version history

### 1.0.1

- add a MANIFEST.in file so that more files will be included in
  the source distribution even if built without `setuptools_scm`
- move some options to the tools invoked by tox.ini to the setup.cfg
  and pyproject.toml files

### 1.0.0

- reformat the source code using black 20
- drop Python 2.x compatibility:
  - use types and modules from the Python 3 standard library
  - use type annotations, not type hints
  - subclass NamedTuple, using Python 3.6 variable type annotations
- switch to a declarative setup.cfg file
- install the module into the `unit_tests` tox environment
- add a PEP 517 buildsystem definition to the pyproject.toml file
- add the py.typed marker
- push the source down into a src/ subdirectory
- add a command-line utility exposing some of the functionality
- add a shell tool for testing the command-line utility
- add a manual page generated from an scdoc source file

### 0.1.0

- first public release

[gitlab]: https://gitlab.com/ppentchev/python-trivver
[git]: https://gitlab.com/ppentchev/python-trivver.git
[roam]: mailto:roam@ringlet.net
            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/ppentchev/python-trivver",
    "name": "trivver",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "version",
    "author": "Peter Pentchev",
    "author_email": "roam@ringlet.net",
    "download_url": "https://files.pythonhosted.org/packages/a3/37/395f0a4a8b327e8b1e78a2eb400a3431bdc305a3a97a50634142a06209f0/trivver-1.0.1.tar.gz",
    "platform": "",
    "description": "# Compare package versions in all their varied glory.\n\n## Description\n\nThis module provides the `compare()` function which compares two\nversion strings and returns a negative value, zero, or a positive\nvalue depending on whether the first string represents a version\nnumber lower than, equal to, or higher than the second one, and\nthe `key_compare()` function which may be used as a key for e.g.\n`sorted()`.\n\nThis module does not strive for completeness in the formats of\nversion strings that it supports. Some version strings sorted by\nits rules are:\n\n- 0.1.0\n- 0.2.alpha\n- 0.2\n- 0.2.1\n- 0.2a\n- 0.2a.1\n- 0.2p3\n- 1.0.beta\n- 1.0.beta.2\n- 1.0\n\n## Contact\n\nThis module is [developed in a Gitlab repository][gitlab].\nThe author is [Peter Pentchev][roam].\n\n## Version history\n\n### 1.0.1\n\n- add a MANIFEST.in file so that more files will be included in\n  the source distribution even if built without `setuptools_scm`\n- move some options to the tools invoked by tox.ini to the setup.cfg\n  and pyproject.toml files\n\n### 1.0.0\n\n- reformat the source code using black 20\n- drop Python 2.x compatibility:\n  - use types and modules from the Python 3 standard library\n  - use type annotations, not type hints\n  - subclass NamedTuple, using Python 3.6 variable type annotations\n- switch to a declarative setup.cfg file\n- install the module into the `unit_tests` tox environment\n- add a PEP 517 buildsystem definition to the pyproject.toml file\n- add the py.typed marker\n- push the source down into a src/ subdirectory\n- add a command-line utility exposing some of the functionality\n- add a shell tool for testing the command-line utility\n- add a manual page generated from an scdoc source file\n\n### 0.1.0\n\n- first public release\n\n[gitlab]: https://gitlab.com/ppentchev/python-trivver\n[git]: https://gitlab.com/ppentchev/python-trivver.git\n[roam]: mailto:roam@ringlet.net",
    "bugtrack_url": null,
    "license": "BSD-2",
    "summary": "A library for comparing version strings",
    "version": "1.0.1",
    "split_keywords": [
        "version"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "82d0ca94cff65b3737194e502f7c271d",
                "sha256": "6eeb9e328112d0c472c32d3b66227a9a45e011d738a31dea776b9e74283e996e"
            },
            "downloads": -1,
            "filename": "trivver-1.0.1-py3-none-any.whl",
            "has_sig": true,
            "md5_digest": "82d0ca94cff65b3737194e502f7c271d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9411,
            "upload_time": "2021-03-30T19:26:48",
            "upload_time_iso_8601": "2021-03-30T19:26:48.034047Z",
            "url": "https://files.pythonhosted.org/packages/23/0d/5f647eac414d68559275a60927d2e284d1cfd783d3331dbb17818485b5e1/trivver-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "000f6cdf2c3533c58b4a710a3ab2db46",
                "sha256": "522048e5b8ce57e581e956ea6c1c87d220ea3da1caf33be12eada8a4e66bf79c"
            },
            "downloads": -1,
            "filename": "trivver-1.0.1.tar.gz",
            "has_sig": true,
            "md5_digest": "000f6cdf2c3533c58b4a710a3ab2db46",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11922,
            "upload_time": "2021-03-30T19:26:38",
            "upload_time_iso_8601": "2021-03-30T19:26:38.819667Z",
            "url": "https://files.pythonhosted.org/packages/a3/37/395f0a4a8b327e8b1e78a2eb400a3431bdc305a3a97a50634142a06209f0/trivver-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-03-30 19:26:38",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "gitlab_user": null,
    "gitlab_project": "ppentchev",
    "lcname": "trivver"
}
        
Elapsed time: 0.24446s