summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade supported Python and Django versions.packaging/bump-test-environmentRaphaël Barrois2018-06-184-17/+17
| | | | | | | Django: Support the latest released version, and the latest LTS before that version. Python: Add support for python3.6 and pypy3.
* Improve docs on `next_patch()`.Raphaël Barrois2018-06-182-3/+52
| | | | | | | | | | Those functions had been forgotten in the docs. Clarify that `Version('1.0.1-alpha').next_patch()` is `Version('1.0.1')`, since that version is the smallest non-prerelease version greater than `Version('1.0.1-alpha')`. Closes: #67
* Don't use `is` for integer comparisons.Raphaël Barrois2018-06-181-2/+2
| | | | | | Closes #65. Reported-By: Julian Berman <julian@grayvines.com>
* correct spelling mistakeEdward Betts2017-09-031-1/+1
|
* Release version 2.6.0v2.6.0Raphaël Barrois2016-09-253-4/+4
|
* Fix deconstruct() tests under Pypy.Raphaël Barrois2016-09-011-8/+18
| | | | | Pypy seems to deconstruct fields differently from Django, thus bringing in variations in the actual deconstruct() output.
* Officially drop support for Django<1.7Raphaël Barrois2016-09-011-0/+4
|
* django: Replace south with django.db.migrationsRaphaël Barrois2016-09-013-127/+110
| | | | Update tests accordingly.
* LintingRaphaël Barrois2016-09-013-11/+18
|
* Rearrange test suite.Raphaël Barrois2016-09-019-44/+99
| | | | | * Use tox * Add a full linting step
* Add travis testing for Django1.10Raphaël Barrois2016-09-011-0/+1
|
* Add support for Django 1.10Raphaël Barrois2016-09-014-42/+83
| | | | | | | | | | | | | | Stop coercing fields magically: >>> a = SomeModel() >>> a.version = '0.1.0' >>> a.version '0.1.0' >>> a.full_clean() >>> a.version Version('0.1.0') Closes #43, #45
* Merge pull request #44 from adamchainz/readthedocs.ioRaphaël Barrois2016-06-261-2/+2
|\ | | | | Convert readthedocs links for their .org -> .io migration for hosted projects
| * Convert readthedocs links for their .org -> .io migration for hosted projectsAdam Chainz2016-06-151-2/+2
|/ | | | | | | | As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’: > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard. Test Plan: Manually visited all the links I’ve modified.
* Merge pull request #41 from ekmartin/compatible_docsRaphaël Barrois2016-03-073-1/+11
|\ | | | | Add a doc section about compatible release clauses
| * Fix a bug with compatible release clauses and patch versionsMartin Ek2016-03-072-1/+5
| | | | | | | | | | Previously, if the patch version was 0 (i.e. as in ~=2.2.0), this would cause the range to be interpreted as ~=2.2.
| * Add a doc section about compatible release clausesMartin Ek2016-03-071-0/+6
|/
* Merge pull request #38 from ekmartin/compatible_releaseRaphaël Barrois2016-02-284-1/+28
|\ | | | | Add support for compatible release ranges
| * Add Martin Ek to contributors listMartin Ek2016-02-251-0/+1
| |
| * Add support for compatible release ranges, fixes #37Martin Ek2016-02-253-1/+27
|/
* Fix handling pre-1.0.0 caret versions (Closes #35)Raphaël Barrois2016-02-214-2/+25
| | | | Thanks to @autopulated for pointing the issue!
* lint: Remove double return.Raphaël Barrois2016-02-211-1/+0
|
* Remove testing on Django 1.7, outdated.Raphaël Barrois2016-02-121-1/+0
|
* Test up to 3.5v2.5.0Raphaël Barrois2016-02-123-4/+17
|
* Update test targets.Raphaël Barrois2016-02-127-21/+4
| | | | Drop support for Django 1.4; go up to 1.9
* Release v2.5.0Raphaël Barrois2016-02-122-3/+3
|
* Cleanup and document fixes from #31.Raphaël Barrois2016-02-125-17/+44
| | | | The PR was broken through fixed in ``next_minor()`` / ``next_major()``.
* Merge branch 'skwashd-tilde-caret'Raphaël Barrois2016-02-123-3/+47
|\
| * Merge branch 'tilde-caret' of ↵Raphaël Barrois2016-02-123-3/+47
| |\ |/ / | | | | https://github.com/skwashd/python-semanticversion into skwashd-tilde-caret
| * Fix broken testDave Hall2015-11-301-1/+1
| |
| * Support for alternative equals specsDave Hall2015-11-292-2/+18
| | | | | | | | | | Composer assumes equals if no operator is used npm uses a single equals operator
| * Make regex more readableDave Hall2015-10-191-2/+1
| |
| * Add support for npm/composer caret and tilde condition extensionsDave Hall2015-10-153-1/+30
| |
* | Remove Copyright years (Closes #28)Raphaël Barrois2016-02-1215-15/+15
| | | | | | | | It seems that stating the copyright years is useless after all :)
* | Merge branch 'bump-version-2' of ↵Raphaël Barrois2016-02-124-8/+144
|\ \ | | | | | | | | | https://github.com/MinchinWeb/python-semanticversion into MinchinWeb-bump-version-2
| * | Adjust code to match tests for bumping prerelease versionsMinchinWeb2015-09-153-6/+23
| | |
| * | add tests for bumping prerelease versionsMinchinWeb2015-09-151-2/+126
| | |
* | | Merge pull request #26 from marcelometal/patch-1Raphaël Barrois2016-02-111-1/+1
|\ \ \ | | | | | | | | Fixed typo in README.rst
| * | | Fixed typo in README.rstMarcelo Jorge Vieira2015-09-111-1/+1
| |/ / | | | | | | Replaced 'licence' with 'license'
* | | Merge pull request #34 from yunojuno/issue-33Raphaël Barrois2016-02-113-1/+41
|\ \ \ | |_|/ |/| | Fix issue #33 - null VersionField breaks ORM
| * | Fix for failing test_django testsHugo Rodger-Brown2015-11-251-15/+9
| | | | | | | | | | | | | | | | | | I've added a save_and_refresh function to allow objects to be saved and then updated from the database, replicating the refresh_from_db method that exists in Django 1.8, and wrapping in the save method.
| * | Fix issue #33 - null VersionField breaks ORMHugo Rodger-Brown2015-11-243-1/+47
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | I've updated the `BaseSemVerField` method `get_prep_value` so that it will return None when the field value is None, rather than the string representation 'None'. Previously this would break the ORM, which would save the string 'None' into the database, and then attempt to parse that as a version number. This change means that the default empty value for both VersionField and SpecField is None. Both derive from CharField, which uses an empty string as its default empty value, however it seems more logical in the case of these objects that no object is null, and not an empty string. Includes tests.
* | Forbid build metadata ordering (See #18)Raphaël Barrois2015-09-159-113/+192
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | SemVer 2.0.0 states that "Build metadata SHOULD be ignored when determining version precedence". This means that, when comparing ``0.1.0+1`` to ``0.1.0+bcd``:: >>> Version('0.1.0+1') == Version('0.1.0+bcd') False >>> Version('0.1.0+1') != Version('0.1.0+bcd') True >>> Version('0.1.0+1') < Version('0.1.0+bcd') False >>> Version('0.1.0+1') > Version('0.1.0+bcd') False >>> Version('0.1.0+1') <= Version('0.1.0+bcd') False >>> Version('0.1.0+1') >= Version('0.1.0+bcd') False >>> compare(Version('0.1.0+1'), Version('0.1.0+bcd')) NotImplemented This change also has the following effects: - When including build metadata in a ``Spec``, the only valid options are ``Spec('==0.1.0+sth')`` and ``Spec('!=0.1.0+sth')`` - The meaning of ``Spec('==0.1.0+')`` is now "Only version 0.1.0 without build metadata" - ``Spec('==0.1.0')`` now matches ``Version('0.1.0+anything')``
* Bump version to 2.4.2.v2.4.2Raphaël Barrois2015-07-022-1/+7
|
* Remove build for py3.4/Django1.4Raphaël Barrois2015-07-021-3/+7
|
* Switch travis to upstream Django supported versions.Raphaël Barrois2015-07-021-1/+1
|
* Fix coverage building.Raphaël Barrois2015-07-023-3/+5
|
* Minor fixes to tests.Raphaël Barrois2015-07-022-5/+5
|
* fixed tests to work with django 1.7 and 1.8Michael Hrivnak2015-07-022-17/+32
| | | | | | Added several django versions to the travis-ci build fixes #22
* Switch to django-version-dependant install scheme.Raphaël Barrois2015-07-0210-17/+66
| | | | Also update travis to use it.