commit:     7a6de8d77d5ad90320bb51fdba795ebf18aba91e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 31 12:07:10 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 31 12:19:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a6de8d7

dev-python/libsass-python: Remove old

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

 dev-python/libsass-python/Manifest                 |  1 -
 .../files/libsass-0.20.0_rename_sassc.patch        | 64 ----------------------
 .../libsass-python/libsass-python-0.21.0-r1.ebuild | 58 --------------------
 3 files changed, 123 deletions(-)

diff --git a/dev-python/libsass-python/Manifest 
b/dev-python/libsass-python/Manifest
index ce06c29ba660..1e50ee28909d 100644
--- a/dev-python/libsass-python/Manifest
+++ b/dev-python/libsass-python/Manifest
@@ -1,2 +1 @@
-DIST libsass-python-0.21.0.gh.tar.gz 55774 BLAKE2B 
3c584ff3b6c09bc768554a3a4f7ef28ecea0726f59206da8540f9c1b4db74ab1235695074dd6b95db74f174066bb856c9854026525da82e7763f341920f0bd53
 SHA512 
d5b7a1bf0dc736a6a38e2e609f0a213306de31d5ad84cfdcd96f9ff72a1c38f15bad3cf25a1cec6dca5a9f3b00a8509afff2b4ea5e4db80e218e3ae603d55856
 DIST libsass-python-0.22.0.gh.tar.gz 55135 BLAKE2B 
8495462fa8e6a68bf73ecdf68771c577bad1affa1121c1781dac41c912aae731df88c2b1d1a4ef363e50a98ff1b471e7c45562faa6f2425e8ec5f47f9cf76c6c
 SHA512 
13914b60fe19fc70d197a948a2bc83f7646e4acaa45caed6df68bf2eb10e0a7ef811cdbbcc7a4338f9c1433cba8e316146c20072dc4ff34f51e094ead1bfdcd7

diff --git a/dev-python/libsass-python/files/libsass-0.20.0_rename_sassc.patch 
b/dev-python/libsass-python/files/libsass-0.20.0_rename_sassc.patch
deleted file mode 100644
index 46efe8700328..000000000000
--- a/dev-python/libsass-python/files/libsass-0.20.0_rename_sassc.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-diff --git a/sassc.py b/sassc.py
-deleted file mode 100644
-index 2415342..0000000
---- a/sassc.py
-+++ /dev/null
-@@ -1,15 +0,0 @@
--import warnings
--
--import pysassc
--
--
--def main(*args, **kwargs):
--    warnings.warn(
--        'The `sassc` entrypoint is deprecated, please use `pysassc`',
--        FutureWarning,
--    ),
--    return pysassc.main(*args, **kwargs)
--
--
--if __name__ == '__main__':
--    exit(main())
-diff --git a/sasstests.py b/sasstests.py
-index 1f40a97..7547ab3 100644
---- a/sasstests.py
-+++ b/sasstests.py
-@@ -24,7 +24,6 @@ from werkzeug.wrappers import Response
- 
- import pysassc
- import sass
--import sassc
- from sassutils._compat import collections_abc
- from sassutils.builder import Manifest, build_directory
- from sassutils.wsgi import SassMiddleware
-@@ -976,7 +975,7 @@ class SasscTestCase(BaseTestCase):
- 
-     def test_sassc_stdout(self):
-         with pytest.warns(FutureWarning) as warninfo:
--            exit_code = sassc.main(
-+            exit_code = pysassc.main(
-                 ['sassc', 'test/a.scss'],
-                 self.out, self.err,
-             )
-diff --git a/setup.py b/setup.py
-index e2a0c85..5905162 100644
---- a/setup.py
-+++ b/setup.py
-@@ -218,7 +218,7 @@ setup(
-     version=version(),
-     ext_modules=[sass_extension],
-     packages=['sassutils'],
--    py_modules=['pysassc', 'sass', 'sassc', 'sasstests'],
-+    py_modules=['pysassc', 'sass', 'sasstests'],
-     package_data={
-         '': [
-             'README.rst',
-@@ -239,8 +239,6 @@ setup(
-         ],
-         'console_scripts': [
-             ['pysassc = pysassc:main'],
--            # TODO: remove `sassc` entry (#134)
--            ['sassc = sassc:main'],
-         ],
-     },
-     install_requires=['six'],

diff --git a/dev-python/libsass-python/libsass-python-0.21.0-r1.ebuild 
b/dev-python/libsass-python/libsass-python-0.21.0-r1.ebuild
deleted file mode 100644
index ce13280d8561..000000000000
--- a/dev-python/libsass-python/libsass-python-0.21.0-r1.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1 toolchain-funcs
-
-MY_P="libsass-python-${PV}"
-DESCRIPTION="A straightforward binding of libsass for Python"
-HOMEPAGE="https://github.com/sass/libsass-python/";
-SRC_URI="
-       https://github.com/sass/libsass-python/archive/${PV}.tar.gz
-               -> ${MY_P}.gh.tar.gz"
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-RDEPEND=">=dev-libs/libsass-3.6.5"
-DEPEND="${RDEPEND}"
-BDEPEND="
-       dev-python/six[${PYTHON_USEDEP}]
-       test? (
-               dev-python/PyQt5[testlib,${PYTHON_USEDEP}]
-               dev-python/werkzeug[${PYTHON_USEDEP}]
-       )"
-
-# Remove sassc, in favour of pysassc, see: 
https://github.com/sass/libsass-python/issues/134
-# This avoids a file collision with dev-lang/sassc
-PATCHES=( "${FILESDIR}"/libsass-0.20.0_rename_sassc.patch )
-
-distutils_enable_tests pytest
-
-src_prepare() {
-       echo "${PV}" > .libsass-upstream-version || die
-       distutils-r1_src_prepare
-       export SYSTEM_SASS=1
-       # https://bugs.gentoo.org/730244
-       if tc-is-clang; then
-               sed -i -e 's/-std=gnu++0x//g' setup.py || die
-       fi
-}
-
-python_test() {
-       local deselect=(
-               # probably broken by removal of sassc
-               sasstests.py::SasscTestCase::test_sassc_stdout
-               # skip the pip tests because they need an internet connection
-               # not relevant for gentoo anyway
-               sasstests.py::DistutilsTestCase::test_build_sass
-               sasstests.py::DistutilsTestCase::test_output_style
-       )
-
-       epytest sasstests.py ${deselect[@]/#/--deselect }
-}

Reply via email to