[Python-modules-commits] [python-udatetime] 02/07: New upstream version 0.0.13
Ilias Tsitsimpis
iliastsi-guest at moszumanska.debian.org
Sat Sep 16 08:30:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
iliastsi-guest pushed a commit to branch debian/master
in repository python-udatetime.
commit e98b26dbf64b2a9039982b8116f5e06ea43a7b86
Author: Ilias Tsitsimpis <iliastsi at debian.org>
Date: Sat Sep 16 11:12:37 2017 +0300
New upstream version 0.0.13
---
PKG-INFO | 2 +-
setup.py | 2 +-
src/rfc3339.c | 8 ++++----
udatetime.egg-info/PKG-INFO | 2 +-
udatetime.egg-info/top_level.txt | 1 -
udatetime/__init__.py | 2 +-
version.txt | 2 +-
7 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index 6fb031e..13cbbdb 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: udatetime
-Version: 0.0.12
+Version: 0.0.13
Summary: Fast RFC3339 compliant date-time library
Home-page: https://github.com/freach/udatetime
Author: Simon Pirschel
diff --git a/setup.py b/setup.py
index 97ddf04..3269288 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ elif sys.version_info.major == 3:
macros.append(('_PYTHON3', '1'))
rfc3339 = Extension(
- 'rfc3339',
+ 'udatetime.rfc3339',
['./src/rfc3339.c'],
define_macros=macros,
extra_compile_args=['-Ofast', '-std=c99']
diff --git a/src/rfc3339.c b/src/rfc3339.c
index e637c4f..df9a0e1 100644
--- a/src/rfc3339.c
+++ b/src/rfc3339.c
@@ -13,7 +13,7 @@
#include <time.h>
-#define RFC3339_VERSION "0.0.12"
+#define RFC3339_VERSION "0.0.13"
#define DAY_IN_SECS 86400
#define HOUR_IN_SECS 3600
#define MINUTE_IN_SECS 60
@@ -256,7 +256,7 @@ static void _parse_time(char *time_string, time_struct *t) {
// check for fractions
if (*tokens == '.') {
tokens++;
- char fractions[6] = {0};
+ char fractions[7] = {0};
// Substring fractions, max 6 digits for usec
for (unsigned int i = 0; i < 6; i++) {
@@ -973,7 +973,7 @@ static PyMethodDef rfc3339_methods[] = {
#ifdef _PYTHON3
static struct PyModuleDef Python3_module = {
PyModuleDef_HEAD_INIT,
- "rfc3339",
+ "udatetime.rfc3339",
NULL,
-1,
rfc3339_methods,
@@ -1001,7 +1001,7 @@ initrfc3339(void)
#ifdef _PYTHON3
m = PyModule_Create(&Python3_module);
#else
- m = Py_InitModule("rfc3339", rfc3339_methods);
+ m = Py_InitModule("udatetime.rfc3339", rfc3339_methods);
#endif
if (m == NULL)
diff --git a/udatetime.egg-info/PKG-INFO b/udatetime.egg-info/PKG-INFO
index 6fb031e..13cbbdb 100644
--- a/udatetime.egg-info/PKG-INFO
+++ b/udatetime.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: udatetime
-Version: 0.0.12
+Version: 0.0.13
Summary: Fast RFC3339 compliant date-time library
Home-page: https://github.com/freach/udatetime
Author: Simon Pirschel
diff --git a/udatetime.egg-info/top_level.txt b/udatetime.egg-info/top_level.txt
index 02649c6..2891e5e 100644
--- a/udatetime.egg-info/top_level.txt
+++ b/udatetime.egg-info/top_level.txt
@@ -1,2 +1 @@
-rfc3339
udatetime
diff --git a/udatetime/__init__.py b/udatetime/__init__.py
index 5e71a2e..ca6fd42 100644
--- a/udatetime/__init__.py
+++ b/udatetime/__init__.py
@@ -17,7 +17,7 @@ if __pypy__:
TZFixedOffset
)
else:
- from rfc3339 import (
+ from udatetime.rfc3339 import (
utcnow,
now,
from_rfc3339_string as from_string,
diff --git a/version.txt b/version.txt
index 8cbf02c..43b2961 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-0.0.12
+0.0.13
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-udatetime.git
More information about the Python-modules-commits
mailing list