public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/slimit/
@ 2018-07-10 21:15 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2018-07-10 21:15 UTC (permalink / raw
  To: gentoo-commits

commit:     c74caf635cd0485b39e9be44d00a01c740789848
Author:     PPed72 <paolo.pedroni <AT> iol <DOT> it>
AuthorDate: Fri Jul  6 13:18:35 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 10 21:15:22 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c74caf63

dev-python/slimit: revbump to silence warning on module import

Closes: https://bugs.gentoo.org/660510
Closes: https://github.com/gentoo/gentoo/pull/9068
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../slimit/{slimit-0.8.1.ebuild => slimit-0.8.1-r1.ebuild}  | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/dev-python/slimit/slimit-0.8.1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild
similarity index 67%
rename from dev-python/slimit/slimit-0.8.1.ebuild
rename to dev-python/slimit/slimit-0.8.1-r1.ebuild
index 6eb5f29a614..b4561d3f8de 100644
--- a/dev-python/slimit/slimit-0.8.1.ebuild
+++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="test"
 
-RDEPEND="dev-python/ply[${PYTHON_USEDEP}]
+RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]
 	dev-python/setuptools[${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}
 	test? (
@@ -25,6 +25,17 @@ DEPEND="${RDEPEND}
 
 PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" )
 
+python_compile() {
+	distutils-r1_python_compile
+
+	rm "${BUILD_DIR}"/lib/slimit/*tab.py || die
+
+	# Regenerate yacctab.py and lextab.py files to avoid warnings whenever
+	# the module is imported. See https://github.com/rspivak/slimit/issues/97
+	# for details
+	"${EPYTHON}" -B -c 'import slimit;slimit.minify("")' || die
+}
+
 python_test() {
 	esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}"
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/slimit/
@ 2020-03-25  9:39 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2020-03-25  9:39 UTC (permalink / raw
  To: gentoo-commits

commit:     866087fa50159766ec635ba59f7ec403892b5970
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 25 08:49:59 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar 25 09:39:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=866087fa

dev-python/slimit: Set DISTUTILS_USE_SETUPTOOLS

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

 dev-python/slimit/slimit-0.8.1-r1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/slimit/slimit-0.8.1-r1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild
index c65e63cdd42..ca7d58331ce 100644
--- a/dev-python/slimit/slimit-0.8.1-r1.ebuild
+++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild
@@ -3,7 +3,9 @@
 
 EAPI=6
 
+DISTUTILS_USE_SETUPTOOLS=rdepend
 PYTHON_COMPAT=( pypy3 python3_6 )
+
 inherit distutils-r1
 
 DESCRIPTION="A JavaScript minifier written in Python"
@@ -16,8 +18,7 @@ KEYWORDS="~amd64 ~x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
-RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]
-	dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}
 	test? (
 		dev-python/pytest[${PYTHON_USEDEP}]


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/slimit/
@ 2020-03-25  9:39 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2020-03-25  9:39 UTC (permalink / raw
  To: gentoo-commits

commit:     3b4a75d0a12e1056b200878914842fb11f27683e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 25 08:50:30 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar 25 09:39:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b4a75d0

dev-python/slimit: Call pytest directly

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

 dev-python/slimit/slimit-0.8.1-r1.ebuild | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/dev-python/slimit/slimit-0.8.1-r1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild
index ca7d58331ce..b5af60f3920 100644
--- a/dev-python/slimit/slimit-0.8.1-r1.ebuild
+++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild
@@ -15,18 +15,13 @@ SRC_URI="https://github.com/rspivak/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
 RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
-	test? (
-		dev-python/pytest[${PYTHON_USEDEP}]
-		dev-python/pytest-runner[${PYTHON_USEDEP}]
-	)"
 
 PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" )
 
+distutils_enable_tests pytest
+
 python_compile() {
 	distutils-r1_python_compile
 
@@ -39,5 +34,5 @@ python_compile() {
 }
 
 python_test() {
-	esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}"
+	pytest -vv "${BUILD_DIR}" || die "Tests failed with ${EPYTHON}"
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/slimit/
@ 2020-04-26 10:17 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2020-04-26 10:17 UTC (permalink / raw
  To: gentoo-commits

commit:     c7b1bf627973a735ca8727c1e4a75aff1539e28a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 26 10:06:29 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 26 10:17:06 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b1bf62

dev-python/slimit: Enable py3.{7,8}

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

 dev-python/slimit/slimit-0.8.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/slimit/slimit-0.8.1-r1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild
index b5af60f3920..2203965e41d 100644
--- a/dev-python/slimit/slimit-0.8.1-r1.ebuild
+++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=6
 
 DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( pypy3 python3_6 )
+PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
 
 inherit distutils-r1
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/slimit/
@ 2021-05-23 11:36 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2021-05-23 11:36 UTC (permalink / raw
  To: gentoo-commits

commit:     2883c689d2f26e974b219a1bc04129541f888770
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 23 11:34:03 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 23 11:35:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2883c689

dev-python/slimit: Enable py3.9 & py3.10

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

 dev-python/slimit/slimit-0.8.1-r1.ebuild | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/dev-python/slimit/slimit-0.8.1-r1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild
index adb87957179..d402ab74e3e 100644
--- a/dev-python/slimit/slimit-0.8.1-r1.ebuild
+++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild
@@ -1,11 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-
-DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( pypy3 python3_{7,8} )
+EAPI=7
 
+PYTHON_COMPAT=( pypy3 python3_{7..10} )
 inherit distutils-r1
 
 DESCRIPTION="A JavaScript minifier written in Python"
@@ -34,5 +32,5 @@ python_compile() {
 }
 
 python_test() {
-	pytest -vv "${BUILD_DIR}" || die "Tests failed with ${EPYTHON}"
+	epytest "${BUILD_DIR}"
 }


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

end of thread, other threads:[~2021-05-23 11:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-10 21:15 [gentoo-commits] repo/gentoo:master commit in: dev-python/slimit/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2020-03-25  9:39 Michał Górny
2020-03-25  9:39 Michał Górny
2020-04-26 10:17 Michał Górny
2021-05-23 11:36 Michał Górny

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