1 |
commit: a3e43024b7416c4af894184be488eeef7b7ce701 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 10 14:45:32 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 10 14:45:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3e43024 |
7 |
|
8 |
dev-python/mockldap: Version bump for 0.3.0 |
9 |
|
10 |
Non-maintainer commit reviewed by python team |
11 |
One patch modified to p1 header format for easier application |
12 |
|
13 |
Bug: https://bugs.gentoo.org/668066 |
14 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
15 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
16 |
|
17 |
dev-python/mockldap/Manifest | 1 + |
18 |
dev-python/mockldap/files/mapping.patch | 4 +-- |
19 |
dev-python/mockldap/files/python-ldap-3.patch | 47 +++++++++++++++++++++++++ |
20 |
dev-python/mockldap/mockldap-0.3.0.ebuild | 50 +++++++++++++++++++++++++++ |
21 |
4 files changed, 100 insertions(+), 2 deletions(-) |
22 |
|
23 |
diff --git a/dev-python/mockldap/Manifest b/dev-python/mockldap/Manifest |
24 |
index 6c14835a303..f91b5647b13 100644 |
25 |
--- a/dev-python/mockldap/Manifest |
26 |
+++ b/dev-python/mockldap/Manifest |
27 |
@@ -1,2 +1,3 @@ |
28 |
DIST mockldap-0.2.3.tar.gz 22369 BLAKE2B 0021951556c0b8ea1f043b702f4d8f8719d272559db3ad8ee4e49955bb17a3caab4083a37486366145d8a7aea927fdc0528c1194f849917471ba6174b52bb46a SHA512 3e17d9f3d6ae5a33014e2ccfe521170af1b136f38b68b216df721059941d958b87f03fb4ed5772282d319cfae9974cf1ae9e4e3bec629d161761e2018ed26788 |
29 |
DIST mockldap-0.2.6.tar.gz 22892 BLAKE2B 9ed6e7cb7c8ab770ec7ab3af01fb2228190c505ac2025adb7b728d9daa4851f51eeafdcaa3a7413d44a181f005a19ee25da99d93a7c71b9d0207c454a533401d SHA512 7ff0219eb349bc9cffd0580eb80fc7428ea856824428c048ee7e133d4c6609edfb713a73d6a26e2293156482304bdd4fb8034f600631c8b1e290355a4e9e7f4c |
30 |
+DIST mockldap-0.3.0.tar.gz 18973 BLAKE2B d13665afb0fbbb8095036ab7576ff5a8c77f5711a0c6ec96032924191ff8b86f16031895ec7c1d8a0c67993121a70b2d62d645e5a2a4df713e48d82e2fe0e1e7 SHA512 0af4cf1762e280024525e8fbf897493925b91393311b36beec83dfb152c1dda5b8c7e45ddd10c02ea329a62b25133a4113a0a12292dcc669416ed4cebcabbaa8 |
31 |
|
32 |
diff --git a/dev-python/mockldap/files/mapping.patch b/dev-python/mockldap/files/mapping.patch |
33 |
index f3cdd862a9d..b8c25eca583 100644 |
34 |
--- a/dev-python/mockldap/files/mapping.patch |
35 |
+++ b/dev-python/mockldap/files/mapping.patch |
36 |
@@ -1,7 +1,7 @@ |
37 |
Disable un-needed d'loading during doc build |
38 |
diff -ur mockldap-0.1.7.orig/docs/source/conf.py mockldap-0.1.7/docs/source/conf.py |
39 |
---- docs/source/conf.py 2014-03-08 00:51:00.000000000 +0800 |
40 |
-+++ docs/source/conf.py 2014-04-12 16:04:52.113446583 +0800 |
41 |
+--- a/docs/source/conf.py 2014-03-08 00:51:00.000000000 +0800 |
42 |
++++ b/docs/source/conf.py 2014-04-12 16:04:52.113446583 +0800 |
43 |
@@ -28,7 +28,6 @@ |
44 |
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
45 |
extensions = [ |
46 |
|
47 |
diff --git a/dev-python/mockldap/files/python-ldap-3.patch b/dev-python/mockldap/files/python-ldap-3.patch |
48 |
new file mode 100644 |
49 |
index 00000000000..e047032ed56 |
50 |
--- /dev/null |
51 |
+++ b/dev-python/mockldap/files/python-ldap-3.patch |
52 |
@@ -0,0 +1,47 @@ |
53 |
+# HG changeset patch |
54 |
+# User Jon Dufresne <jon.dufresne@×××××.com> |
55 |
+# Date 1521133853 25200 |
56 |
+# Node ID c938f5b558833dd290bbdcbde26c97a6bbfea623 |
57 |
+# Parent 8784bdea1cb29b2a5b5d21045b024880ab84c05d |
58 |
+Unify Python 2 and 3 dependency on python-ldap >= 3.0 |
59 |
+ |
60 |
+python-ldap now supports both Python 2 and 3. The pyldap package is |
61 |
+deprecated. The project recommends switching to python-ldap instead. |
62 |
+From the github page: |
63 |
+ |
64 |
+https://github.com/pyldap/pyldap |
65 |
+ |
66 |
+> THIS FORK IS DEPRECATED |
67 |
+> |
68 |
+> The pyldap fork was merged back into python-ldap, and released as |
69 |
+> python-ldap 3.0.0b1. |
70 |
+ |
71 |
+diff --git a/README b/README |
72 |
+--- a/README |
73 |
++++ b/README |
74 |
+@@ -1,6 +1,6 @@ |
75 |
+-This project provides a mock replacement for python-ldap (pyldap on Python |
76 |
+-3). It's useful for any project that would like to write unit tests against |
77 |
+-LDAP code without relying on a running LDAP server. |
78 |
++This project provides a mock replacement for python-ldap. It's useful for any |
79 |
++project that would like to write unit tests against LDAP code without relying |
80 |
++on a running LDAP server. |
81 |
+ |
82 |
+ * Repository: https://bitbucket.org/psagers/mockldap |
83 |
+ * Documentation: https://mockldap.readthedocs.io/ |
84 |
+diff --git a/setup.py b/setup.py |
85 |
+--- a/setup.py |
86 |
++++ b/setup.py |
87 |
+@@ -40,11 +40,8 @@ |
88 |
+ keywords=['mock', 'ldap'], |
89 |
+ install_requires=[ |
90 |
+ 'funcparserlib == 0.3.6', |
91 |
+- |
92 |
+- 'pyldap; python_version >= "3.0"', |
93 |
+- 'python-ldap >= 2.0; python_version < "3.0"', |
94 |
+- |
95 |
+ 'mock; python_version < "3.0"', |
96 |
++ 'python-ldap >= 3.0', |
97 |
+ ], |
98 |
+ setup_requires=[ |
99 |
+ 'setuptools >= 0.6c11', |
100 |
|
101 |
diff --git a/dev-python/mockldap/mockldap-0.3.0.ebuild b/dev-python/mockldap/mockldap-0.3.0.ebuild |
102 |
new file mode 100644 |
103 |
index 00000000000..320fd5560f0 |
104 |
--- /dev/null |
105 |
+++ b/dev-python/mockldap/mockldap-0.3.0.ebuild |
106 |
@@ -0,0 +1,50 @@ |
107 |
+# Copyright 1999-2018 Gentoo Authors |
108 |
+# Distributed under the terms of the GNU General Public License v2 |
109 |
+ |
110 |
+EAPI=7 |
111 |
+ |
112 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
113 |
+ |
114 |
+inherit distutils-r1 eutils |
115 |
+ |
116 |
+DESCRIPTION="A simple mock implementation of python-ldap" |
117 |
+HOMEPAGE="https://bitbucket.org/psagers/mockldap/ https://pypi.org/project/mockldap/" |
118 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
119 |
+ |
120 |
+LICENSE="BSD" |
121 |
+SLOT="0" |
122 |
+KEYWORDS="~amd64 ~x86" |
123 |
+IUSE="doc" |
124 |
+ |
125 |
+RDEPEND=" |
126 |
+ ~dev-python/funcparserlib-0.3.6[${PYTHON_USEDEP}] |
127 |
+ virtual/python-unittest-mock[${PYTHON_USEDEP}] |
128 |
+ >=dev-python/python-ldap-3.0[${PYTHON_USEDEP}]" |
129 |
+DEPEND="${RDEPEND}" |
130 |
+BDEPEND=" |
131 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
132 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
133 |
+ |
134 |
+# Tests are not distributed as part of the release |
135 |
+RESTRICT="test" |
136 |
+ |
137 |
+# Disable un-needed d'loading during doc build |
138 |
+# Import python-ldap 3.0 instead as a requirement from upstream |
139 |
+PATCHES=( "${FILESDIR}"/mapping.patch "${FILESDIR}"/python-ldap-3.patch ) |
140 |
+ |
141 |
+python_compile_all() { |
142 |
+ use doc && emake -C docs html |
143 |
+} |
144 |
+ |
145 |
+python_test() { |
146 |
+ esetup.py test |
147 |
+} |
148 |
+ |
149 |
+python_install_all() { |
150 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
151 |
+ distutils-r1_python_install_all |
152 |
+} |
153 |
+ |
154 |
+pkg_postinst() { |
155 |
+ optfeature "hashed password support" dev-python/passlib |
156 |
+} |