Skip to content

Commit

Permalink
Update time/py-parsedatetime to 2.1 (in-freeze, OK by wiz).
Browse files Browse the repository at this point in the history
v2.1
- Issue #156 parsedatetime 2.0 doesn't work on py26

v2.0
- Issue #155 Relative times containing years fail when computed
  from a leap day
- Issue #145 cal.parse('2015-11-18') returns November 19th 2015
- Issue #143 What is the second value returned by `parse`?
- Issue #141 Bad test case in TestComplexDateTimes
- Issue #123 update supporting files for v2.0 release
- Issue #124 Put locales into config-files (yaml)
- Issue #125 Remove extra files
- Issue #137 Year is parsed wrongly if the date is of format
  MMM DD, YYxx xx:SS bug
- Issue #136 Why I see 2016 instead of 2015?
- Issue #133 Bug: "2015-01-01" is parsed as the current date.
- Issue #126 "Unresolved attribute reference 'parse' for class
  'object'... " in Pycharm IDE. bug
- Issue #120 the pdt_locales/en_AU.py file uses en_A for
  the localID instead of en_AU
- Issue #114 Dates in the format 'YYYY-MM-DD HH:MM' give
  the incorrect month and day
- Issue #112 Document getting a time from parsedatetime
  into a standard Python structure
- Issue #110 AttributeError when running in the context
  of an HTTP request
- Issue #109 YearParseStyle is ignored for dates in MM/DD style
- Issue #107 yyyy/mm/dd date format
- Issue #105 "this week" is not parsed
- Issue #103 get UTC times from parseDT - trouble with at 9:30
  clock times being interpreted directly in UTC
- Issue #100 Fractional deltas result in incoherent results.
- PR #118 ADD: improve russian locale
- PR #117 ADD: Russian Locale
- PR #116 Fix spelling of "separator".
- PR #115 Update README.rst
- PR #113 Add datetime example to readme.
- PR #111 Allowed real number appear in text like "5.5 days ago"

v1.5
- Issue #99 Which year is implied when given just a month and day?
  Next and last? question
- Issue #96 Word boundary issues for specials (on, at, in) in nlp
- Issue #94 inconsistent application of sourceTime
  in Calendar.parseDT
- Issue #87 nlp() doesn't recognize some "next ..." expressions
- Issue #84 Afternoon? bug
- Issue #82 'last week' and 'next week' are broken
- Issue #81 parse returns default time of 0900 with dates like
  'next friday' despite passed struct_time bug
- Issue #78 Link for Travis in README is wrong
- Issue #72 Enable travis
- Issue #71 Calendar() class can not be initialized 1.4 (it's
  fine)
- Issue #66 Unexpected struct_time flag with Calendar.parse
  on HTML <a href> string
- Issue #65 NLP false positives
- Issue #63 Supporting multiple shortweekday abbreviations
- Issue #61 Short weekday abbreviations bug
- Issue #56 Parse words to numbers (thirteen => 13)
- Issue #54 testMonths fails
- commit 107c7e4655 fix for issue 95 - parsing 'next june 15'
- commit 2c0c8ec778 Fixed faulty test, "730am" parses as "73:0 am"
  which is a bug for a later day.
- commit 6f244e891d Fix "ones" parsing as "1s." Require a word
  boundary between spelled numbers and units.
- commit 035818edef Fix "1 day ago" parsing like "1d 1y ago"
  where "a" within the word "day" is interpreted as 1.
- commit 45002e6eec Fixes "next week" and similar modifier
  + unit pairs in nlp()
- commit 47d2e1d527 Fixed "last week"

v1.4
- Updated setup.py for wheel compatibility
- renamed README.txt to README.rst
- renamed MANIFEST to MANIFEST.in
- cleaned up a lot of the doc and notes
- Commit 3fc165e701 mafagafo Now it works for Python 3.4.1
- Commit d5883801e7 borgstrom Restore Python 2.6 compatibility

1.3
- Issue #45 make a new release to really fix backwards
  compatibility
- Issue #43 Please tag version 1.3
- Commit 29c5c8961d devainandor fixed Python 3 compatibility
  in pdtLocale_icu
- Commit d7304f18f7 inean Fix support for 'now' when no modifiers
  are present
- Commit 26bfc91c28 sashaacker Added parseDT method.
- Commit 848deb47e2 rmecham Added support for dotted meridians.
- Commit c821e08ce2 ccho-sevenrooms corrected misspelling
  of 'thirteen'
- Biggest change is the addition of the nlp() function
  by Geoffrey Floyd:
    nlp() function that utilizes parse() after making judgements
    about what datetime information belongs together. It makes
    logical groupings based on proximity and returns a parsed
    datetime for each matched grouping of datetime text, along
    with location info within the given inputString.
  • Loading branch information
fhajny authored and Filip Hajny committed Apr 6, 2016
1 parent 33c2509 commit 297dd9c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 16 deletions.
13 changes: 6 additions & 7 deletions time/py-parsedatetime/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# $NetBSD: Makefile,v 1.5 2014/01/19 19:52:44 wiz Exp $
# $NetBSD: Makefile,v 1.6 2016/04/05 10:31:38 fhajny Exp $

DISTNAME= v1.1.2
PKGNAME= ${PYPKGPREFIX}-parsedatetime-${DISTNAME:S/v//}
DISTNAME= parsedatetime-2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= time python
MASTER_SITES= https://github.com/bear/parsedatetime/archive/
MASTER_SITES= ${MASTER_SITE_GITHUB:=bear/}

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/bear/parsedatetime
COMMENT= Python module for parsing human-readable date/time text
LICENSE= apache-2.0

DIST_SUBDIR= py-parsedatetime
WRKSRC= ${WRKDIR}/parsedatetime-${DISTNAME:S/v//}
EGG_NAME= parsedatetime-${DISTNAME:S/v//}
GITHUB_PROJECT= parsedatetime
GITHUB_TAG= v${PKGVERSION_NOREV}

.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
46 changes: 41 additions & 5 deletions time/py-parsedatetime/PLIST
Original file line number Diff line number Diff line change
@@ -1,11 +1,47 @@
@comment $NetBSD: PLIST,v 1.4 2014/01/19 19:52:44 wiz Exp $
${PYSITELIB}/${EGG_FILE}
@comment $NetBSD: PLIST,v 1.5 2016/04/05 10:31:38 fhajny Exp $
${PYSITELIB}/${EGG_FILE}/PKG-INFO
${PYSITELIB}/${EGG_FILE}/SOURCES.txt
${PYSITELIB}/${EGG_FILE}/dependency_links.txt
${PYSITELIB}/${EGG_FILE}/top_level.txt
${PYSITELIB}/parsedatetime/__init__.py
${PYSITELIB}/parsedatetime/__init__.pyc
${PYSITELIB}/parsedatetime/__init__.pyo
${PYSITELIB}/parsedatetime/context.py
${PYSITELIB}/parsedatetime/context.pyc
${PYSITELIB}/parsedatetime/context.pyo
${PYSITELIB}/parsedatetime/parsedatetime.py
${PYSITELIB}/parsedatetime/parsedatetime.pyc
${PYSITELIB}/parsedatetime/parsedatetime.pyo
${PYSITELIB}/parsedatetime/pdt_locales.py
${PYSITELIB}/parsedatetime/pdt_locales.pyc
${PYSITELIB}/parsedatetime/pdt_locales.pyo
${PYSITELIB}/parsedatetime/pdt_locales/__init__.py
${PYSITELIB}/parsedatetime/pdt_locales/__init__.pyc
${PYSITELIB}/parsedatetime/pdt_locales/__init__.pyo
${PYSITELIB}/parsedatetime/pdt_locales/base.py
${PYSITELIB}/parsedatetime/pdt_locales/base.pyc
${PYSITELIB}/parsedatetime/pdt_locales/base.pyo
${PYSITELIB}/parsedatetime/pdt_locales/de_DE.py
${PYSITELIB}/parsedatetime/pdt_locales/de_DE.pyc
${PYSITELIB}/parsedatetime/pdt_locales/de_DE.pyo
${PYSITELIB}/parsedatetime/pdt_locales/en_AU.py
${PYSITELIB}/parsedatetime/pdt_locales/en_AU.pyc
${PYSITELIB}/parsedatetime/pdt_locales/en_AU.pyo
${PYSITELIB}/parsedatetime/pdt_locales/en_US.py
${PYSITELIB}/parsedatetime/pdt_locales/en_US.pyc
${PYSITELIB}/parsedatetime/pdt_locales/en_US.pyo
${PYSITELIB}/parsedatetime/pdt_locales/es.py
${PYSITELIB}/parsedatetime/pdt_locales/es.pyc
${PYSITELIB}/parsedatetime/pdt_locales/es.pyo
${PYSITELIB}/parsedatetime/pdt_locales/icu.py
${PYSITELIB}/parsedatetime/pdt_locales/icu.pyc
${PYSITELIB}/parsedatetime/pdt_locales/icu.pyo
${PYSITELIB}/parsedatetime/pdt_locales/nl_NL.py
${PYSITELIB}/parsedatetime/pdt_locales/nl_NL.pyc
${PYSITELIB}/parsedatetime/pdt_locales/nl_NL.pyo
${PYSITELIB}/parsedatetime/pdt_locales/pt_BR.py
${PYSITELIB}/parsedatetime/pdt_locales/pt_BR.pyc
${PYSITELIB}/parsedatetime/pdt_locales/pt_BR.pyo
${PYSITELIB}/parsedatetime/pdt_locales/ru_RU.py
${PYSITELIB}/parsedatetime/pdt_locales/ru_RU.pyc
${PYSITELIB}/parsedatetime/pdt_locales/ru_RU.pyo
${PYSITELIB}/parsedatetime/warns.py
${PYSITELIB}/parsedatetime/warns.pyc
${PYSITELIB}/parsedatetime/warns.pyo
9 changes: 5 additions & 4 deletions time/py-parsedatetime/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.2 2014/01/19 19:52:44 wiz Exp $
$NetBSD: distinfo,v 1.3 2016/04/05 10:31:38 fhajny Exp $

SHA1 (py-parsedatetime/v1.1.2.tar.gz) = a931e3afc0f720e1c9c7eacd34a0a29a0a2dedab
RMD160 (py-parsedatetime/v1.1.2.tar.gz) = 96cee10056358423b9a6fc21ac3a347cf5b66fe6
Size (py-parsedatetime/v1.1.2.tar.gz) = 48868 bytes
SHA1 (parsedatetime-2.1.tar.gz) = b6af40bd8dbef67b0cf6ccc4122e7647f20980b0
RMD160 (parsedatetime-2.1.tar.gz) = 78bacb7b75c24f072d11e4a464547b0155620736
SHA512 (parsedatetime-2.1.tar.gz) = c3447c899aa56319e09b21c117ad4036e23727346d15d8d5fc60f89d439984f032950a9c6534f763c8dd09c74f078ddfaee1c77880dab4a4845393f5145db9a1
Size (parsedatetime-2.1.tar.gz) = 61170 bytes

0 comments on commit 297dd9c

Please sign in to comment.