Commit Graph

160 Commits

Author SHA1 Message Date
Raphaël Barrois cd6143f829 Release version 2.6.0 2016-09-25 16:21:45 +02:00
Raphaël Barrois c711af6a42 Fix deconstruct() tests under Pypy.
Pypy seems to deconstruct fields differently from Django, thus bringing
in variations in the actual deconstruct() output.
2016-09-01 14:29:34 +02:00
Raphaël Barrois ee2350045b Officially drop support for Django<1.7 2016-09-01 14:17:58 +02:00
Raphaël Barrois a924bfe40a django: Replace south with django.db.migrations
Update tests accordingly.
2016-09-01 14:17:44 +02:00
Raphaël Barrois 730b9f2270 Linting 2016-09-01 13:54:28 +02:00
Raphaël Barrois ae9ccbd517 Rearrange test suite.
* Use tox
* Add a full linting step
2016-09-01 13:48:55 +02:00
Raphaël Barrois 112ce0dc97 Add travis testing for Django1.10 2016-09-01 13:25:18 +02:00
Raphaël Barrois be455e8998 Add support for Django 1.10
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
2016-09-01 13:23:12 +02:00
Raphaël Barrois f514edb523 Merge pull request #44 from adamchainz/readthedocs.io
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-06-26 12:37:09 +02:00
Adam Chainz 95c0108f40 Convert readthedocs links for their .org -> .io migration for hosted projects
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.
2016-06-15 22:45:57 +01:00
Raphaël Barrois 19692604b5 Merge pull request #41 from ekmartin/compatible_docs
Add a doc section about compatible release clauses
2016-03-07 12:43:55 +00:00
Martin Ek 2d3f694f85 Fix a bug with compatible release clauses and patch versions
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.
2016-03-07 13:22:13 +01:00
Martin Ek b08014a65e Add a doc section about compatible release clauses 2016-03-07 13:15:14 +01:00
Raphaël Barrois ec2c25cd3a Merge pull request #38 from ekmartin/compatible_release
Add support for compatible release ranges
2016-02-28 16:13:01 +00:00
Martin Ek 48dbcc96a9 Add Martin Ek to contributors list 2016-02-25 22:48:08 +01:00
Martin Ek 0c96767bd3 Add support for compatible release ranges, fixes #37 2016-02-25 22:48:00 +01:00
Raphaël Barrois d10ab4cb1d Fix handling pre-1.0.0 caret versions (Closes #35)
Thanks to @autopulated for pointing the issue!
2016-02-21 18:54:02 +01:00
Raphaël Barrois 9872b3940e lint: Remove double return. 2016-02-21 18:52:45 +01:00
Raphaël Barrois a03a881055 Remove testing on Django 1.7, outdated. 2016-02-12 01:42:09 +01:00
Raphaël Barrois 472e9e4027 Test up to 3.5 2016-02-12 01:30:43 +01:00
Raphaël Barrois 52f57bb0fd Update test targets.
Drop support for Django 1.4; go up to 1.9
2016-02-12 01:28:24 +01:00
Raphaël Barrois 60076c0374 Release v2.5.0 2016-02-12 01:22:56 +01:00
Raphaël Barrois b923dfcdf9 Cleanup and document fixes from #31.
The PR was broken through fixed in ``next_minor()`` / ``next_major()``.
2016-02-12 01:19:45 +01:00
Raphaël Barrois 9f4ccad84b Merge branch 'skwashd-tilde-caret' 2016-02-12 00:48:24 +01:00
Raphaël Barrois 15277fdb8e Merge branch 'tilde-caret' of https://github.com/skwashd/python-semanticversion into skwashd-tilde-caret 2016-02-12 00:48:18 +01:00
Raphaël Barrois d6e5651c34 Remove Copyright years (Closes #28)
It seems that stating the copyright years is useless after all :)
2016-02-12 00:44:30 +01:00
Raphaël Barrois c321d091d9 Merge branch 'bump-version-2' of https://github.com/MinchinWeb/python-semanticversion into MinchinWeb-bump-version-2 2016-02-12 00:41:09 +01:00
Raphaël Barrois f74de67a9a Merge pull request #26 from marcelometal/patch-1
Fixed typo in README.rst
2016-02-11 23:35:33 +00:00
Raphaël Barrois 8e64921554 Merge pull request #34 from yunojuno/issue-33
Fix issue #33 - null VersionField breaks ORM
2016-02-11 23:34:25 +00:00
Dave Hall ec54ee92f1 Fix broken test 2015-11-30 00:08:02 +11:00
Dave Hall a8a75320eb Support for alternative equals specs
Composer assumes equals if no operator is used
npm uses a single equals operator
2015-11-29 23:49:21 +11:00
Hugo Rodger-Brown e8a1b3a543 Fix for failing test_django tests
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.
2015-11-25 12:35:15 +00:00
Hugo Rodger-Brown 0ef9524195 Fix issue #33 - null VersionField breaks ORM
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.
2015-11-24 22:43:35 +00:00
Dave Hall 6004bfd349 Make regex more readable 2015-10-19 20:14:27 +11:00
Dave Hall 5ca781f439 Add support for npm/composer caret and tilde condition extensions 2015-10-15 11:41:19 +11:00
MinchinWeb 9a1144034f Adjust code to match tests for bumping prerelease versions 2015-09-15 16:13:29 -06:00
MinchinWeb b26f6de4fc add tests for bumping prerelease versions 2015-09-15 16:11:41 -06:00
Raphaël Barrois 2ed3d39c29 Forbid build metadata ordering (See #18)
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')``
2015-09-15 23:40:59 +02:00
Marcelo Jorge Vieira 27864dca5a Fixed typo in README.rst
Replaced 'licence' with 'license'
2015-09-11 16:31:27 -03:00
Raphaël Barrois 4aac5768db Bump version to 2.4.2. 2015-07-02 17:33:25 +02:00
Raphaël Barrois d0a5f7cba1 Remove build for py3.4/Django1.4 2015-07-02 16:41:58 +02:00
Raphaël Barrois d4b11313a3 Switch travis to upstream Django supported versions. 2015-07-02 16:41:13 +02:00
Raphaël Barrois a16c90e632 Fix coverage building. 2015-07-02 16:40:29 +02:00
Raphaël Barrois 8e65ae4558 Minor fixes to tests. 2015-07-02 16:35:57 +02:00
Michael Hrivnak 5b97c14368 fixed tests to work with django 1.7 and 1.8
Added several django versions to the travis-ci build

fixes #22
2015-07-02 16:35:57 +02:00
Raphaël Barrois ee65fd925d Switch to django-version-dependant install scheme.
Also update travis to use it.
2015-07-02 16:35:57 +02:00
Raphaël Barrois 2174bdcae6 Release v2.4.1 2015-04-01 01:36:01 +02:00
Raphaël Barrois b5c22ec0f8 Fix setup.py for readme, bis. 2015-04-01 01:35:00 +02:00
Raphaël Barrois ae1f6cdd6d Advertise supporting Python3.4. 2015-04-01 01:33:42 +02:00
Raphaël Barrois 8b1192090f Fill ChangeLog. 2015-04-01 01:32:23 +02:00