summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Guarantee a stable ordering with build metadatastable-sort-with-buildRaphaël Barrois2022-05-264-11/+66
| | | | | | | | | | | | | Sorting any permutation of Version objects should always yield the same result, even if those hold some build metadata. To that end, the "precedence_key" is now used exclusively for sorting; direct comparisons between Version objects still ignores the "build" metadata, using a different precedence key. For performance improvements, both precedence keys are cached. Closes: #132
* Fix pip install name in READMEAlex Hogen2022-03-101-2/+2
|
* Update the Version.parse() to match the codePhilippe Ombredanne2022-02-061-1/+2
| | | | | | The docstring was lying by saying a Version object was returned. Rather this function returns a tuple of version parts. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* docs: Update reference to NPM range specificationRaphaël Barrois2022-02-063-4/+4
|
* Back to development: 2.9.1Raphaël Barrois2022-02-062-1/+7
|
* Preparing release 2.9.02.9.0Raphaël Barrois2022-02-062-2/+2
|
* doc: Remove remaining Sphinx markup from READMERaphaël Barrois2022-02-061-3/+3
|
* docs: Update CI locationRaphaël Barrois2022-02-061-1/+1
|
* Improve documentationRaphaël Barrois2022-02-066-152/+467
| | | | | | | | | | | - The README is now a standalone document, also included as an "introduction" page; - A new "guide" section provides more details on most features; - A couple of typos were fixed. The main goal was to make the README file perfectly suitable for rendering on PyPI, while keeping its content available on the standard documentation on ReadTheDocs.
* Remove Python 3.4 from testing matrixRaphaël Barrois2021-11-081-2/+2
| | | | No longer available on GitHub.
* Add support for Django 4.0Raphaël Barrois2021-11-084-3/+19
| | | | | | | The gettext_lazy function has a different name between Django 2.x and 4.x; use the right one according to the version. Closes #113, #121
* Extend test matrix for Python 3.10 / Django 3.2Raphaël Barrois2021-11-083-8/+11
| | | | Django >=3.2.9 is compatible with Python 3.10
* Remove ambiguous floats in .yml filesRaphaël Barrois2021-11-081-12/+12
| | | | | `3.8` is interpreted as a floating point number, but we view it as a string identifier; quote all python version numbers.
* Add support for Python 3.9django-31Raphaël Barrois2021-03-023-14/+22
|
* Add support for Django 3.1Raphaël Barrois2021-03-023-1/+10
|
* Add support for Python 3.7 / 3.8Raphaël Barrois2021-03-024-2/+10
|
* Drop support for Travis-CIRaphaël Barrois2021-03-022-34/+2
| | | | Also replace the badge with Github Actions
* Restrict colorama on Python 3.4Raphaël Barrois2021-03-021-0/+2
|
* Exclude invalid Django/Python combinationsRaphaël Barrois2021-03-021-5/+10
|
* Prepare switch to github actionsRaphaël Barrois2021-03-022-0/+69
|
* Upgrade pip on travisRaphaël Barrois2021-03-021-0/+1
| | | | | Avoids issues with too old pip being unable to download wheels for cryptography.
* Replace setup.py test with nose2Raphaël Barrois2021-03-022-1/+2
| | | | | | We can't use python -m unittest discover directly, as it mistakenly tries to import the source code of the Django test app without going through the setup_django module first.
* Move flake8 configuration to setup.cfgRaphaël Barrois2021-03-023-6/+7
|
* Move package metadata to setup.cfgRaphaël Barrois2021-03-028-95/+64
| | | | | | | Instead of relying on setup.py, use setup.cfg. Dev/doc requirements have been moved there as well, under the `doc` and `dev` extras.
* Fix mixup between 'patch' and 'build' in README.Raphaël Barrois2020-08-091-1/+1
| | | | | Thanks to Clare Macrae for catching this! Closes #104.
* Fix SimpleSpec doc in README.rst.Raphaël Barrois2020-07-081-1/+3
| | | | | | As caught by Emilio Reyes. Closes #103.
* Linting.Raphaël Barrois2020-07-074-0/+10
| | | | Add missing blank lines.
* Add tests for Django's get_or_create.Raphaël Barrois2020-07-071-0/+14
| | | | Related to issue #97.
* Back to development: 2.8.6Raphaël Barrois2020-04-292-1/+7
|
* Preparing release 2.8.52.8.5Raphaël Barrois2020-04-292-2/+2
|
* Fix wildcard matching for SimpleSpec.Raphaël Barrois2020-04-294-2/+24
| | | | | | Including docs and tests. Closes #98.
* Back to development: 2.8.5Raphaël Barrois2019-12-212-1/+7
|
* Preparing release 2.8.42.8.4Raphaël Barrois2019-12-212-2/+2
|
* Properly coerce versions with leading zeroes.Raphaël Barrois2019-12-213-2/+14
| | | | | | | A leading zero is forbidden in the SemVer spec, but could be valid under other schemes; when coercing, it can easily be removed. Closes #89, thanks to Andrew Ni for the report.
* Update README.rstThijs Damsma2019-12-211-2/+2
| | | resolves #87
* Back to development: 2.8.4Raphaël Barrois2019-11-212-1/+7
|
* Preparing release 2.8.32.8.3Raphaël Barrois2019-11-212-2/+2
|
* Fix NpmSpec prerelease-handling.Raphaël Barrois2019-11-213-2/+13
| | | | | | | | | | | | | Thanks to Nathan Walters for spotting this. Npm ranges with a `<X.Y.Z-P` component were not properly expanded: they were converted to: <X.Y.0 || (>=X.Y.0 && <X.Y.Z-P && no-prerelease) The correct expansion is: <X.Y.0 || (>=X.Y.0-* && <X.Y.Z-P) Closes #86.
* Add Clause.prettyprint() for debug.Raphaël Barrois2019-11-211-0/+31
| | | | | | | | This function allows developers to preview the structure of the resulting clause parsed from a spec, usable with `print(spec.clause.prettyprint())`. Apply typical PEP8 indentation rules.
* Correct typo in SimpleSpec descriptionJason2019-09-131-1/+1
|
* Back to development: 2.8.3Raphaël Barrois2019-09-062-1/+7
|
* Preparing release 2.8.22.8.2Raphaël Barrois2019-09-062-2/+2
|
* Fix Spec.specs for single-term ranges.maint/2.xRaphaël Barrois2019-09-063-5/+14
| | | | | | | This (deprecated) property failed when used on a `Spec` item based on a single-term range (e.g. `==0.1.2` `<2.0.0`). Closes #82.
* Adapt from_db_value() for Django 3Dan Kolbman2019-08-301-1/+1
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Back to development: 2.8.2Raphaël Barrois2019-08-292-1/+7
|
* Preparing release 2.8.12.8.1Raphaël Barrois2019-08-292-2/+2
|
* Restore `Spec.specs` [Closes #79]Raphaël Barrois2019-08-292-1/+7
| | | | This attribute wasn't meant to be removed.
* Back to development: 2.8.1Raphaël Barrois2019-08-292-1/+7
|
* Preparing release 2.8.02.8.0Raphaël Barrois2019-08-292-2/+2
|
* Restore Python2 support.rbarrois/restore-py2Raphaël Barrois2019-08-2910-25/+94
|