Commit Graph

258 Commits

Author SHA1 Message Date
kennethreitz 5cf40b2d2e Merge pull request #108 from timofurrer/feature/parse-year-first
Support year_first in maya.parse. Closes #102
2017-11-21 11:32:41 -05:00
Timo Furrer 93152fa7f4 Support year_first in maya.parse. Closes #102
This change adds support for a `year_first` keyword argument to the
`maya.parse` function. `maya` will forward this argument to pendulum
which then lets `dateutil.parse` do the work.
2017-11-21 13:19:55 +01:00
kennethreitz baa0660a9b Merge pull request #103 from zolrath/prefer-past
Add prefer_past option for when
2017-11-20 10:20:39 -05:00
Matt Furden fd62815ce5 Fix test variable name change 2017-10-21 09:42:23 -07:00
Matt Furden c0092e74ae Add prefer_past option for when
When parsing dates from websites when encountering ambiguous dates like "December 12th" this is interpreted in the future (when the current date is in October).

When parsing dates that we know must be in the past this is not the correct behavior.

Add a `prefer_past` keyword argument to `when` to allow the user to ensure the date is parsed as being in the past.
2017-10-15 21:49:03 -07:00
kennethreitz 79d017fdcf Merge pull request #100 from amalmurali47/patch-1
Fix typos and correct spelling.
v0.3.3
2017-09-21 10:15:42 -04:00
Amal Murali 7331d0d855 Fix typos and correct spelling. 2017-09-21 18:02:15 +05:30
kennethreitz 9c90c0534a Merge pull request #99 from Miserlou/master
Fixes #98 - add support for time struct with test and docs
2017-09-20 13:45:03 -04:00
Rich Jones b9c501b0e4 Fixes #98 - add support for time struct with test and docs 2017-09-20 19:32:37 +02:00
kennethreitz 3a71ff0174 Update README.rst 2017-09-05 13:01:06 -04:00
kennethreitz 43cc1d5946 Merge pull request #97 from dimaspivak/master
Fix MayaInterval.iso8601()
2017-09-02 15:14:51 -04:00
Dima Spivak aecb643beb Add Dima Spivak to AUTHORS.rst 2017-09-02 11:50:27 -07:00
Dima Spivak fa966900e1 Fix MayaInterval.iso8601() 2017-09-02 11:47:32 -07:00
kennethreitz 892e589ef2 Update README.rst 2017-08-31 03:13:35 -04:00
kennethreitz 0f795738c0 Update README.rst 2017-08-31 03:13:16 -04:00
kennethreitz b333489081 Merge pull request #96 from stsievert/patch-1
Add XKCD #1883 to README
2017-08-30 13:12:11 -04:00
Scott Sievert 17a450eb5d Add XKCD #1883 to README 2017-08-30 12:06:08 -05:00
kennethreitz 8cd2158567 Merge pull request #87 from endast/patch-1
Update README.rst
2017-08-26 15:32:11 -04:00
kennethreitz 883b1b9b92 Merge pull request #90 from ibigpapa/master
Fix for issue #89
2017-08-26 15:31:15 -04:00
kennethreitz 414df5f3f5 Merge pull request #93 from timofurrer/patch-1
Fix typo in README. Closes #92
2017-07-28 13:46:33 -04:00
Timo Furrer 1694ed7cf8 Fix typo in README. Closes #92 2017-07-28 10:00:06 +02:00
Troy Harrison cbe9f6bae7 Adds test for issue #89 2017-06-28 14:27:57 -05:00
Troy Harrison 8bdd5c65fa Fixes issue #89 2017-06-28 14:26:54 -05:00
Magnus Wahlberg 4d96d06d70 Update README.rst
The example for intervals is missing an "s"

>>> import maya
>>> maya.interval(start=maya.now(), end=maya.now().add(days=1), interval=60*60)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'maya' has no attribute 'interval'
>>> maya.intervals(start=maya.now(), end=maya.now().add(days=1), interval=60*60)
<generator object intervals at 0x106acc0a0>
2017-06-23 08:44:20 +02:00
kennethreitz bbdb9b8762 Merge pull request #79 from robcarrington/fix-setup
Fixed setup.py bug by turning encoding into a keyword argument. Encod…
2017-05-30 22:12:00 -04:00
Robert Carrington 28ecad81bd Fixed setup.py bug by turning encoding into a keyword argument. Encoding parameter was being passed in the position belonging to the buffering parameter 2017-05-30 21:03:35 -05:00
kennethreitz c56c552184 Merge pull request #78 from moin18/seconds_or_timedelta_private
"seconds_or_timedelta" as private
2017-05-30 10:51:31 -04:00
Moin d5e4853886 updated test to use private _seconds_or_timedelta 2017-05-30 20:03:20 +05:30
Moin 28b3a849a9 declare seconds_or_timedelta as private function 2017-05-30 19:58:33 +05:30
kennethreitz d872f29cfc Merge pull request #76 from emattiza/dev-docs
Docs addition for Maya
2017-05-29 02:12:10 -04:00
Evan.Mattiza d8cbdede28 added update, install, and some quickstart
Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-29 01:03:35 -05:00
Evan.Mattiza c0f1bd709f Versioning in docs off Maya Package
Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-28 23:16:20 -05:00
Evan.Mattiza 8469e60d3c Tree of API and Use-Case definitions
added files for api descriptions and usage by users

Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-28 23:16:20 -05:00
Evan.Mattiza 953f857940 Index Basics added
Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-28 23:16:20 -05:00
Evan.Mattiza 6375143eac Authors add for Evan
Added myself to authors

Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-28 23:16:20 -05:00
Evan.Mattiza c0fd845d4c Sphinx-Quickstart Additions
Basics added from sphinx-quickstart, makefile at project root
updated.

Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-28 23:16:20 -05:00
Evan.Mattiza 0f38b99157 Added Sphinx to Pipfile
Yeah. What it sounds like.

Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-28 23:16:20 -05:00
Evan.Mattiza 66a016ea84 Version File Add and setup.py exec read for version
Single place to change version and keep up to date at package level

Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-05-28 17:04:05 -05:00
kennethreitz 6f1df92b8f Merge pull request #72 from moin18/mayainterval_validation
Validation of arguments pass to the function of MayaInterval class
2017-05-28 11:15:11 -07:00
Moin 51c4298ece fixed review comment related to argument type check validator and fixed indentation issues 2017-05-28 23:20:40 +05:30
Moin 74092289dd modified test case to validate invalid argument scenario 2017-05-28 23:08:09 +05:30
Moin f3f2793b50 added decorator to vaildate arguments of MayaInterval functions 2017-05-28 23:07:37 +05:30
kennethreitz 251f535d67 Merge pull request #68 from moin18/seconds_or_timedelta_fix
fix 'seconds_or_timedelta' to return ONLY 'datetime.timedelta' object
2017-05-28 08:55:15 -07:00
kennethreitz 98e9a2190a Merge pull request #71 from timofurrer/use-valuerror
Raise ValueError instead of AssertionError
2017-05-28 08:54:27 -07:00
kennethreitz c8dd4b9264 Merge pull request #70 from timofurrer/classifiers
Add some reasonable trove classifiers
2017-05-28 08:53:52 -07:00
kennethreitz a1b27e80d6 Merge pull request #67 from moin18/cleanup
code cleanup - descriptive variable names
2017-05-28 08:53:40 -07:00
kennethreitz 92f3b83b8b Merge pull request #69 from timofurrer/fix-tests
Fix failing tests
2017-05-28 08:52:42 -07:00
Timo Furrer 0f39ec6323 Add setup.cfg with wheels config 2017-05-28 12:25:40 +02:00
Timo Furrer 4d88eede9d Fix failing tests 2017-05-28 12:23:26 +02:00
Timo Furrer 971ecec9cf Raise ValueError instead of AssertionError 2017-05-28 12:18:35 +02:00