[Python-modules-commits] [factory-boy] 01/03: Don't include ipaddress for Python3

Brian May bam at moszumanska.debian.org
Thu Jan 5 09:32:06 UTC 2017


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

bam pushed a commit to branch debian/unstable
in repository factory-boy.

commit 991f40a7d3753ad9e2c6241ecdd0e1b27434782f
Author: Brian May <brian at linuxpenguins.xyz>
Date:   Thu Jan 5 20:08:33 2017 +1100

    Don't include ipaddress for Python3
    
    It is not required, and results in the package being downloaded during
    the package build.
---
 debian/changelog                                   |  6 ++++++
 debian/patches/0003-Add-ipaddress-to-depends.patch | 23 ++++++++++++++++------
 2 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d1ce5c1..95dd0eb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+factory-boy (2.8.1-2) UNRELEASED; urgency=medium
+
+  * Don't include ipaddress for Python 3+.
+
+ -- Brian May <bam at debian.org>  Thu, 05 Jan 2017 20:08:11 +1100
+
 factory-boy (2.8.1-1) unstable; urgency=medium
 
   * New upstream version.
diff --git a/debian/patches/0003-Add-ipaddress-to-depends.patch b/debian/patches/0003-Add-ipaddress-to-depends.patch
index afd63a2..c3041fc 100644
--- a/debian/patches/0003-Add-ipaddress-to-depends.patch
+++ b/debian/patches/0003-Add-ipaddress-to-depends.patch
@@ -3,18 +3,29 @@ Date: Thu, 5 Jan 2017 12:10:05 +1100
 Subject: Add ipaddress to depends
 
 ---
- setup.py | 1 +
- 1 file changed, 1 insertion(+)
+ setup.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
 
 diff --git a/setup.py b/setup.py
-index a219669..3b11975 100755
+index a219669..25ce143 100755
 --- a/setup.py
 +++ b/setup.py
-@@ -47,6 +47,7 @@ setup(
+@@ -31,6 +31,9 @@ else:
+ 
+ PACKAGE = 'factory'
+ 
++extra_includes = []
++if sys.version_info[0:2] < (3, 0):
++    extra_includes.append('ipaddress')
+ 
+ setup(
+     name='factory_boy',
+@@ -47,7 +50,7 @@ setup(
      license='MIT',
      install_requires=[
          'Faker>=0.7.0',
-+        'ipaddress',
-     ],
+-    ],
++    ] + extra_includes,
      setup_requires=[
          'setuptools>=0.8',
+     ],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/factory-boy.git



More information about the Python-modules-commits mailing list