public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/django-mptt/files/, dev-python/django-mptt/
@ 2016-06-27  6:40 Slawek Lis
  0 siblings, 0 replies; 2+ messages in thread
From: Slawek Lis @ 2016-06-27  6:40 UTC (permalink / raw
  To: gentoo-commits

commit:     7aa3f5e065d3b86e228b4bba93d5d9e9db1df87f
Author:     Slawomir Lis <slis <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 27 06:41:02 2016 +0000
Commit:     Slawek Lis <slis <AT> gentoo <DOT> org>
CommitDate: Mon Jun 27 06:41:02 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aa3f5e0

version bump

Package-Manager: portage-2.3.0_rc1

 dev-python/django-mptt/Manifest                  |  1 +
 dev-python/django-mptt/django-mptt-0.8.4.ebuild  | 31 ++++++++++++++++++++++++
 dev-python/django-mptt/files/exclude_tests.patch | 11 +++++++++
 3 files changed, 43 insertions(+)

diff --git a/dev-python/django-mptt/Manifest b/dev-python/django-mptt/Manifest
index 9cbef34..018a914 100644
--- a/dev-python/django-mptt/Manifest
+++ b/dev-python/django-mptt/Manifest
@@ -1 +1,2 @@
 DIST django-mptt-0.7.4.tar.gz 133855 SHA256 8e986aaf458aaf78c87dc316095cc4a951f3ec1d73f81b237107161fa3ea4ad0 SHA512 596bb1b7f4a99b4b8788b3f4da59850bdaaed4214f877479a89ce9f749f9d217f2ccce488e7f67cd75780ace09d3b73fdca2b0d95a56225d63dfb9e6a1d290b6 WHIRLPOOL 26f68b368176868f051534e977a6f73612a8ddf7f54b8292e8ac67307a08aa1522eca68f0dde5c800ea2e0ea0538308955e0c3fd73ff50fc735c665669a797d4
+DIST django-mptt-0.8.4.tar.gz 119207 SHA256 11445b7b12922fe1d3205baf06e1420ec018bccb4ede486c4a5694cf303ee76e SHA512 c3f45813d3dcaf6ce2504941602b1d1fc2a33f13802b34a9c85685dd0e4066a3e8c6fc36be320c472d93efa54a2f10c493b536f45d16a5ab88a08f6baf0513d3 WHIRLPOOL 0c62341bb916bc91d37d08b6db432071dbdc1093ab9960463e0464cf393118719eec88ed4d42bb178674a114b8d8b7f7965575e92ac1cc3308204cd8ff4f8202

diff --git a/dev-python/django-mptt/django-mptt-0.8.4.ebuild b/dev-python/django-mptt/django-mptt-0.8.4.ebuild
new file mode 100644
index 0000000..9cca9cc
--- /dev/null
+++ b/dev-python/django-mptt/django-mptt-0.8.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_{3,4,5}} )
+
+inherit distutils-r1
+
+DESCRIPTION="Utilities for implementing Modified Preorder Tree Traversal"
+HOMEPAGE="https://pypi.python.org/pypi/django-mptt"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+	>=dev-python/django-1.8
+"
+
+DEPEND="
+	${RDEPEND}
+	dev-python/setuptools
+"
+
+src_prepare() {
+	epatch "${FILESDIR}/exclude_tests.patch"
+}

diff --git a/dev-python/django-mptt/files/exclude_tests.patch b/dev-python/django-mptt/files/exclude_tests.patch
new file mode 100644
index 0000000..36b5ad4
--- /dev/null
+++ b/dev-python/django-mptt/files/exclude_tests.patch
@@ -0,0 +1,11 @@
+--- setup.py.orig	2016-06-27 08:09:57.408674058 +0200
++++ setup.py	2016-06-27 08:10:31.112007190 +0200
+@@ -12,7 +12,7 @@
+     author_email='craig.ds@gmail.com',
+     url='http://github.com/django-mptt/django-mptt',
+     license='MIT License',
+-    packages=find_packages(),
++    packages=find_packages(exclude=('tests', 'tests.*',)),
+     include_package_data=True,
+     install_requires=(
+         'Django>=1.8',


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/django-mptt/files/, dev-python/django-mptt/
@ 2021-08-21  7:56 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2021-08-21  7:56 UTC (permalink / raw
  To: gentoo-commits

commit:     802bc18da2867e88f290b6889b1d58e1cf21a284
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 21 07:41:25 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 21 07:56:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802bc18d

dev-python/django-mptt: Bump to 0.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/django-mptt/Manifest                    |  1 +
 dev-python/django-mptt/django-mptt-0.13.ebuild     | 31 ++++++++++++++++++++++
 .../files/django-mptt-0.13-test-install.patch      | 26 ++++++++++++++++++
 3 files changed, 58 insertions(+)

diff --git a/dev-python/django-mptt/Manifest b/dev-python/django-mptt/Manifest
index 3aa926d0a79..9f942579e7d 100644
--- a/dev-python/django-mptt/Manifest
+++ b/dev-python/django-mptt/Manifest
@@ -1 +1,2 @@
 DIST django-mptt-0.11.0.tar.gz 98300 BLAKE2B cbae24143007dfe8913aacf4cbe22bbccdf929617adc31640c2d429d6ea8be727a937be0aa8353e82862b9fe8c571397db4dd3877015eb17c2c5a56172cc66a5 SHA512 21af30007661db1474628b6f8af86a3f6de52494efe1aaf9235f8b1660ba153f0de3ad91ff979588e4b681b00b44652a05146df7d3951d6ee62da38a1900fd89
+DIST django-mptt-0.13.gh.tar.gz 302525 BLAKE2B 21b2fde5c81d83321bf7569d2064db87aec3c184f27cf3fc3bd34421be04212188e15f79a575b08aabb3a7b95d116bf3e5f0fb57c56cadf9ad2ac166e8e77845 SHA512 63dbb61dab59d42b5e747f35370a0840d40ed465979d1f93e66561cf4c0726635cae774f87e39cc1ac480847f3ccf0eb65dc8593759a0860d586e334fdd37256

diff --git a/dev-python/django-mptt/django-mptt-0.13.ebuild b/dev-python/django-mptt/django-mptt-0.13.ebuild
new file mode 100644
index 00000000000..584beed1786
--- /dev/null
+++ b/dev-python/django-mptt/django-mptt-0.13.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..9} )
+inherit distutils-r1
+
+DESCRIPTION="utilities for modified preorder tree traversal and trees of model instances"
+HOMEPAGE="https://github.com/django-mptt/django-mptt"
+SRC_URI="
+	https://github.com/django-mptt/django-mptt/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+	>=dev-python/django-1.11[${PYTHON_USEDEP}]
+	dev-python/django-js-asset[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-test-install.patch
+)
+
+python_test() {
+	"${EPYTHON}" tests/manage.py test -v2 myapp ||
+		die "Tests failed with ${EPYTHON}"
+}

diff --git a/dev-python/django-mptt/files/django-mptt-0.13-test-install.patch b/dev-python/django-mptt/files/django-mptt-0.13-test-install.patch
new file mode 100644
index 00000000000..886d5c6e4eb
--- /dev/null
+++ b/dev-python/django-mptt/files/django-mptt-0.13-test-install.patch
@@ -0,0 +1,26 @@
+From 6bc5860575d491e8cf1edbabee7b07f1c072bdba Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 21 Aug 2021 09:45:45 +0200
+Subject: [PATCH] Do not install tests.myapp
+
+Fix options.packages.find.exclude to cover subpackages of "tests"
+recursively.  Otherwise, tests.myapp is installed.
+---
+ setup.cfg | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/setup.cfg b/setup.cfg
+index b4094dc..b8ebee3 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -44,6 +44,7 @@ tests =
+ [options.packages.find]
+ exclude =
+     tests
++    tests.*
+     myapp
+ 
+ [flake8]
+-- 
+2.33.0
+


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-21  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-21  7:56 [gentoo-commits] repo/gentoo:master commit in: dev-python/django-mptt/files/, dev-python/django-mptt/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2016-06-27  6:40 Slawek Lis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox