[Python-modules-commits] [parsedatetime] 02/11: New upstream version 2.4
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jul 12 10:59:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository parsedatetime.
commit b0f461873abfd924cded4b7453895a73e2e2097a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Wed Jul 12 11:05:17 2017 +0100
New upstream version 2.4
---
CHANGES.txt | 12 ++++++++++++
Makefile | 12 +++++++-----
PKG-INFO | 2 +-
parsedatetime.egg-info/PKG-INFO | 2 +-
parsedatetime/__init__.py | 4 ++--
parsedatetime/pdt_locales/icu.py | 2 +-
setup.cfg | 1 -
setup.py | 1 -
tests/TestComplexDateTimes.py | 1 +
tests/TestConvertUnitAsWords.py | 1 +
tests/TestFrenchLocale.py | 1 +
tests/TestRussianLocale.py | 1 +
tests/TestSimpleDateTimes.py | 1 +
tests/TestSimpleOffsets.py | 1 +
tests/TestSimpleOffsetsNoon.py | 1 +
15 files changed, 31 insertions(+), 12 deletions(-)
diff --git a/CHANGES.txt b/CHANGES.txt
index 7311c23..b77ee89 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,15 @@
+14 May 2017 - bear
+ v2.4 release
+ v2.5 bump
+
+ Issue #219 - remove 'setup_requires' from setup.py
+
+10 Mar 2017 - bear
+ v2.3 release
+ v2.4 bump
+
+ Issue #215 - tests fail in March
+
02 Mar 2016 - bear
v2.1 released
v2.2 bump
diff --git a/Makefile b/Makefile
index b0c9ee2..94594ac 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,11 @@ ifeq ($(UNAME_S),Darwin)
BREWPATH = $(shell brew --prefix)
PYICU_LD = -L${BREWPATH}/opt/icu4c/lib
PYICU_CPP = -I${BREWPATH}/opt/icu4c/include
+ ICU_VER = 58.2
else
PYICU_LD =
PYICU_CPP =
+ ICU_VER =
endif
help:
@@ -20,18 +22,18 @@ help:
@echo " upload generate source and wheel dist files and upload them"
env:
- pip install -Ur requirements.txt
+ pip install -U pip
dev: env
pip install -Uqr requirements.testing.txt | tee
@echo "on OS X use homebrew to install icu4c"
- LDFLAGS=${PYICU_LD} CPPFLAGS=${PYICU_CPP} \
+ LDFLAGS=${PYICU_LD} CPPFLAGS=${PYICU_CPP} ICU_VERSION=${ICU_VER} \
pip install -U pyicu
- pyenv install -s 2.7.11
- pyenv install -s 3.5.2
pyenv install -s 2.6.9
+ pyenv install -s 2.7.11
+ pyenv install -s 3.6.1
pyenv install -s pypy-5.3
- pyenv local 2.7.11 3.5.2 2.6.9 pypy-5.3
+ pyenv local 2.6.9 2.7.11 3.6.1 pypy-5.3
info:
@python --version
diff --git a/PKG-INFO b/PKG-INFO
index 57dbd3e..9cea266 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: parsedatetime
-Version: 2.3
+Version: 2.4
Summary: Parse human-readable date/time text.
Home-page: https://github.com/bear/parsedatetime
Author: Mike Taylor
diff --git a/parsedatetime.egg-info/PKG-INFO b/parsedatetime.egg-info/PKG-INFO
index 57dbd3e..9cea266 100644
--- a/parsedatetime.egg-info/PKG-INFO
+++ b/parsedatetime.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: parsedatetime
-Version: 2.3
+Version: 2.4
Summary: Parse human-readable date/time text.
Home-page: https://github.com/bear/parsedatetime
Author: Mike Taylor
diff --git a/parsedatetime/__init__.py b/parsedatetime/__init__.py
index c724d76..39845a9 100644
--- a/parsedatetime/__init__.py
+++ b/parsedatetime/__init__.py
@@ -42,9 +42,9 @@ from .warns import pdt20DeprecationWarning
__author__ = 'Mike Taylor'
__email__ = 'bear at bear.im'
-__copyright__ = 'Copyright (c) 2016 Mike Taylor'
+__copyright__ = 'Copyright (c) 2017 Mike Taylor'
__license__ = 'Apache License 2.0'
-__version__ = '2.3'
+__version__ = '2.4'
__url__ = 'https://github.com/bear/parsedatetime'
__download_url__ = 'https://pypi.python.org/pypi/parsedatetime'
__description__ = 'Parse human-readable date/time text.'
diff --git a/parsedatetime/pdt_locales/icu.py b/parsedatetime/pdt_locales/icu.py
index e3aee5a..8bee64b 100644
--- a/parsedatetime/pdt_locales/icu.py
+++ b/parsedatetime/pdt_locales/icu.py
@@ -14,7 +14,7 @@ except NameError:
try:
import PyICU as pyicu
-except:
+except ImportError:
pyicu = None
diff --git a/setup.cfg b/setup.cfg
index c28269b..685f39a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,5 +14,4 @@ max-line-length = 160
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff --git a/setup.py b/setup.py
index b6d4b29..7142455 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,6 @@ setup(
platforms=['Any'],
long_description=read('README.rst'),
install_requires=['future'],
- setup_requires=['pytest-runner'],
tests_require=['pytest'],
test_suite='tests',
classifiers=[
diff --git a/tests/TestComplexDateTimes.py b/tests/TestComplexDateTimes.py
index 56132ed..a1afd1f 100644
--- a/tests/TestComplexDateTimes.py
+++ b/tests/TestComplexDateTimes.py
@@ -159,5 +159,6 @@ class test(unittest.TestCase):
self.assertExpectedResult(
self.cal.parse('tuesday august 23nd 2016 at 5pm', start), (target, 3))
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/TestConvertUnitAsWords.py b/tests/TestConvertUnitAsWords.py
index daede93..ba15809 100644
--- a/tests/TestConvertUnitAsWords.py
+++ b/tests/TestConvertUnitAsWords.py
@@ -32,5 +32,6 @@ class test(unittest.TestCase):
for pair in self.tests:
self.assertEqual(self.cal._convertUnitAsWords(pair[0]), pair[1])
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/TestFrenchLocale.py b/tests/TestFrenchLocale.py
index 5309166..359478f 100644
--- a/tests/TestFrenchLocale.py
+++ b/tests/TestFrenchLocale.py
@@ -125,5 +125,6 @@ class test(unittest.TestCase):
self.ptc.CurrentDOWParseStyle = o1
self.ptc.DOWParseStyle = o2
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/TestRussianLocale.py b/tests/TestRussianLocale.py
index 1624be5..b308044 100644
--- a/tests/TestRussianLocale.py
+++ b/tests/TestRussianLocale.py
@@ -133,5 +133,6 @@ class test(unittest.TestCase):
# now + datetime.timedelta(days=2)
# )
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/TestSimpleDateTimes.py b/tests/TestSimpleDateTimes.py
index c768258..7eca820 100644
--- a/tests/TestSimpleDateTimes.py
+++ b/tests/TestSimpleDateTimes.py
@@ -571,5 +571,6 @@ class test(unittest.TestCase):
# self.assertExpectedResult(self.cal.parse('12:00', start),
# (target, 2))
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/TestSimpleOffsets.py b/tests/TestSimpleOffsets.py
index 3270c94..fdb0182 100644
--- a/tests/TestSimpleOffsets.py
+++ b/tests/TestSimpleOffsets.py
@@ -29,6 +29,7 @@ def _truncateResult(result, trunc_seconds=True, trunc_hours=False):
dt = dt[:3] + (0,) * 6
return dt, flag
+
_tr = _truncateResult
diff --git a/tests/TestSimpleOffsetsNoon.py b/tests/TestSimpleOffsetsNoon.py
index ca0d4c8..6ec4cd8 100644
--- a/tests/TestSimpleOffsetsNoon.py
+++ b/tests/TestSimpleOffsetsNoon.py
@@ -84,5 +84,6 @@ class test(unittest.TestCase):
self.assertExpectedResult(
self.cal.parse('5 hours before next noon', start), (target, 2))
+
if __name__ == "__main__":
unittest.main()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/parsedatetime.git
More information about the Python-modules-commits
mailing list