Skip to content

Commit

Permalink
Fixed broken rest view on pypi page
Browse files Browse the repository at this point in the history
  • Loading branch information
waqasshabbir committed Jan 25, 2016
1 parent 2d0e611 commit 32db70a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
16 changes: 16 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
History
=======

0.3.2 (2016-01-25)
------------------
New features:

* Added Hijri Calendar support.
* Added settings for better control over parsing dates.
* Support to convert parsed time to the given timezone for both complete and relative dates.

Improvements:

* Fixed problem with caching :func:`datetime.now` in :class:`FreshnessDateDataParser`.
* Added month names and week day names abbreviations to several languages.
* More simplifications for Russian and Ukranian languages.
* Fixed problem with parsing time component of date strings having punctuation symbols look alike.


0.3.1 (2015-10-28)
------------------
New features:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ Popular Formats
This will try to parse a date from the given string, attempting to
detect the language each time.

You can specify the language(s), if known, using ``languages`` argument. In this case, given languages are used and language detection is skipped::
You can specify the language(s), if known, using ``languages`` argument. In this case, given languages are used and language detection is skipped:

>>> dateparser.parse('2015, Ago 15, 1:08 pm', languages=['pt', 'es'])
datetime.datetime(2015, 8, 15, 13, 8)

If you know the possible formats of the dates, you can
use the ``date_formats`` argument::
use the ``date_formats`` argument:

>>> dateparser.parse(u'22 Décembre 2010', date_formats=['%d %B %Y'])
datetime.datetime(2010, 12, 22, 0, 0)
Expand Down
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -273,3 +273,6 @@

# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

# sphinx.ext.intersphinx confs
intersphinx_mapping = {'python': ('https://docs.python.org/2', None)}
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
(__version__, ) = re.findall("__version__.*\s*=\s*[']([^']+)[']",
open('dateparser/__init__.py').read())

readme = re.sub(r':members:.+|..\sautomodule::.+', '', open('README.rst').read())
history = re.sub(r':mod:', '', open('HISTORY.rst').read())
readme = re.sub(r':members:.+|..\sautomodule::.+|:class:|:func:', '', open('README.rst').read())
history = re.sub(r':mod:|:class:|:func:', '', open('HISTORY.rst').read())


test_requirements = open('tests/requirements.txt').read().splitlines()
Expand Down

0 comments on commit 32db70a

Please sign in to comment.