[Python-modules-commits] [python-udatetime] 03/04: Move rfc3339 module under udatetime

Ilias Tsitsimpis iliastsi-guest at moszumanska.debian.org
Thu Aug 3 16:50:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

iliastsi-guest pushed a commit to branch master
in repository python-udatetime.

commit 5a73920f21b04d1a6f17d739bb2e252cc767bb8c
Author: Ilias Tsitsimpis <iliastsi at debian.org>
Date:   Thu Aug 3 19:33:41 2017 +0300

    Move rfc3339 module under udatetime
    
    There is already an rfc3339 module, provided by the rfc3339 Python
    package, so move ours under udatetime.
    
    Bug: https://github.com/freach/udatetime/issues/19
---
 setup.py              | 2 +-
 src/rfc3339.c         | 8 ++++----
 udatetime/__init__.py | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

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..16b80ed 100644
--- a/src/rfc3339.c
+++ b/src/rfc3339.c
@@ -615,7 +615,7 @@ static PyMethodDef FixedOffset_methods[] = {
 #ifdef _PYTHON3
 static PyTypeObject FixedOffset_type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "rfc3339.FixedOffset_type",             /* tp_name */
+    "udatetime.rfc3339.FixedOffset_type",   /* tp_name */
     sizeof(FixedOffset),                    /* tp_basicsize */
     0,                                      /* tp_itemsize */
     0,                                      /* tp_dealloc */
@@ -640,7 +640,7 @@ static PyTypeObject FixedOffset_type = {
 static PyTypeObject FixedOffset_type = {
     PyObject_HEAD_INIT(NULL)
     0,                         /*ob_size*/
-    "rfc3339.FixedOffset_type", /*tp_name*/
+    "udatetime.rfc3339.FixedOffset_type", /*tp_name*/
     sizeof(FixedOffset),       /*tp_basicsize*/
     0,                         /*tp_itemsize*/
     0,                         /*tp_dealloc*/
@@ -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/__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,

-- 
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