Commit Graph

326 Commits

Author SHA1 Message Date
Timo Furrer f9d257876b Support PyPy 2018-05-10 11:59:34 +02:00
Timo Furrer 7a750a1cff release: 0.4.1 v0.4.1 2018-05-10 11:32:54 +02:00
Timo Furrer bc06315abd Limit pendulum version to >=1.0 and <= 1.5.1
See https://github.com/sdispater/pendulum/issues/205
2018-05-10 11:32:32 +02:00
Timo Furrer 7cc767781a release: 0.4.0 v0.4.0 2018-05-10 11:13:55 +02:00
Timo Furrer 8468dd2ead Fix subtracting MayaDT instances. Fixes #151 2018-05-10 11:04:16 +02:00
kennethreitz 046f005ca7 Update README.rst 2018-05-08 08:05:07 -04:00
kennethreitz cd0b2300d7 Merge pull request #128 from azban/patch-1
readme: add artist attribution
2018-05-08 08:04:05 -04:00
Timo Furrer d3ddb39d9d Merge pull request #144 from kennethreitz/feature/cleanup-pipenv-use
Refactor pipenv usage according to semi-official best practices.
2018-05-08 08:53:31 +02:00
Timo Furrer 3c8fe4478c Merge pull request #147 from alxwrd/fix-when-weekday-names
.when with weekdays and prefer_past
2018-04-17 17:58:27 +02:00
Alex Ward a0983132bb update .when docstring 2018-04-16 12:20:14 +01:00
Alex Ward 9612d70707 update .when tests to use new prefer_dates_from param 2018-04-16 12:06:12 +01:00
Alex Ward 363fae1aaf update .when to use prefer_dates_from to align with dateparser 2018-04-16 11:39:16 +01:00
Alex Ward be2cd96132 add more options to .when pefer_past param 2018-04-15 19:22:56 +01:00
Alex Ward 771a2b6ce2 add tests around weekday names 2018-04-15 17:31:06 +01:00
Timo Furrer 8e644f655a Merge pull request #145 from vlcinsky/pendulum_ver
fix `pendulum>=1.0` in setup.py (was missing version)
2018-04-05 10:17:55 +02:00
Jan Vlcinsky 6903f6eb63 fix pendulum>=1.0 in setup.py (was missing version)
Assuming, that when Pipfile declares such rule, it shall be also in
setup.py.
2018-04-05 00:50:53 +02:00
Timo Furrer ca076ff625 Refactor pipenv usage according to semi-official best practices. Closes #142 2018-04-04 20:42:13 +02:00
Jan Vlčinský e0e33cc29f Remove probably obsolete requirement for ruamel.yaml (#136)
* Remove probably obsolete requirement for ruamel.yaml

Closes issue #134

* require dateparser>=0.7.0 (to ensure ruamel.yaml is not really needed)
2018-04-04 13:37:31 +02:00
Timo Furrer bd34915f96 Merge pull request #135 from vlcinsky/frozen_time
test with "now" frozen to different times/zones
2018-04-03 20:08:57 +02:00
Jan Vlcinsky 16690cfceb Removed Pipfile.lock 2018-04-03 19:57:58 +02:00
Jan Vlcinsky 97af369f05 Pipfile.lock updated with --dev (freezegun) 2018-04-03 19:54:18 +02:00
Jan Vlcinsky 367dac4e62 number of frozen_now variants narrowed to speed up tests 2018-04-03 19:54:18 +02:00
Jan Vlcinsky 59ec275ef6 test with "now" frozen to different times/zones
Using freezegun to freeze current times.
2018-04-03 19:54:18 +02:00
Timo Furrer 76f99bc781 Merge pull request #141 from vlcinsky/simple_pytest
Simplified call to pytest in tox.ini (issue #139)
2018-04-03 16:40:26 +02:00
Timo Furrer bf56321545 Merge branch 'master' into simple_pytest 2018-04-03 16:35:23 +02:00
Timo Furrer ee602ea56b Merge pull request #140 from vlcinsky/tox_ini
Get rid of Pipfile.lock (issue #138)
2018-04-03 16:34:35 +02:00
Jan Vlcinsky df3bdf231d Simplified call to pytest in tox.ini (issue #139) 2018-04-02 22:50:14 +02:00
Jan Vlcinsky 1a58d4f710 Get rid of Pipfile.lock (issue #138) 2018-04-02 22:43:28 +02:00
Timo Furrer d0d5a8f75d Explicitly specifiy time struct when getting UTC offset for current time 2018-04-02 12:09:31 +02:00
Timo Furrer 00a0ceb3c8 Add tox.ini for local testing. Refs #137 2018-04-01 14:09:02 +02:00
Timo Furrer ee0fe3b810 Merge pull request #131 from vlcinsky/master
test_maya.py refactored: using parametrization where feasible
2018-03-31 11:50:32 +02:00
Timo Furrer 0e0815c45a Merge pull request #132 from kennethreitz/feature/python-3.7
Add Python 3.7 to test matrix
2018-03-31 11:49:07 +02:00
Timo Furrer 04a82f3078 Add Python 3.7 to test matrix 2018-03-31 11:46:05 +02:00
Timo Furrer 5f6b5fc66d Use UTC offset from given time struct when converting from time struct. Fixes #104 2018-03-31 11:42:07 +02:00
Jan Vlcinsky e9592a3146 test_maya.py refactored: using parametrization where feasible
repeated code replaced by parameters provided by pytest.

source string and rexpected intentionally indented to match by column
to make checking year, month and date simpler.

Note, that the test_issue_104 was (and still is) failing.
2018-03-31 01:31:14 +02:00
Timo Furrer 15a5c9eedb Merge pull request #130 from bsdtux/master
PR for issue #129. Attempt to secure _EPOCH_START
2018-03-30 11:19:14 +02:00
Josh Stephens 7c5d5871d3 * moved _EPOCH_START to be a class variable to protect from a user
makeing an arbitrary change which could render inaccurate results from MayaDT class
2018-03-25 16:06:38 -05:00
azban b05ca8707c readme: add artist attribution 2018-03-21 10:50:24 -07:00
kennethreitz b411d5e6d1 Merge pull request #127 from matmunn/duration
Parsing an ISO8601 duration for an interval
2018-03-21 06:30:04 -04:00
Mat Munn 5458b0bf15 Parsing an ISO8601 duration for an interval 2018-03-21 11:23:22 +11:00
Timo Furrer 02f91de523 Merge pull request #124 from matmunn/master
Basic implementation of ISO 8601 parsing for MayaInterval
2018-03-18 12:30:41 +01:00
Mat Munn 00d174c9e2 Merge branch 'master' into master 2018-03-18 08:04:51 +11:00
Mat Munn f87f705a53 Added test 2018-03-18 08:03:34 +11:00
Timo Furrer 9a850b4212 PEP8 formatting by white
Used `white maya/ tests/`.
2018-03-17 12:24:18 +01:00
Timo Furrer 84a5f700c3 Merge pull request #126 from timofurrer/feature/snap
Implement snap modifiers with maya.snap(). Closes #94
2018-03-17 11:59:45 +01:00
Timo Furrer 13e9f2d896 Implement snap modifiers with maya.snap(). Closes #94 2018-03-17 11:55:18 +01:00
Timo Furrer 0c206ad0db Fix tests 2018-03-17 11:52:47 +01:00
Timo Furrer aa87723a0c Make tests and docs a phony makefile target 2018-03-14 20:17:35 +01:00
Mat Munn d51a6a57ec Basic implementation of ISO 8601 parsing for MayaInterval 2018-03-14 10:13:50 +11:00
kennethreitz 3cb65f227c setup.py update
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-26 17:57:57 -05:00