summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-05-01 18:55:30 +0200
committerJames Le Cuirot <chewi@gentoo.org>2020-05-02 12:55:08 +0100
commit0cafb31868e8c25d5eada6033310b87c314b4ed9 (patch)
tree40bbaab918fc387acae882c08ddcc4d225b92043 /dev-python/libsass/files
parentprofiles/package.mask: update mask (diff)
downloadgentoo-0cafb31868e8c25d5eada6033310b87c314b4ed9.tar.gz
gentoo-0cafb31868e8c25d5eada6033310b87c314b4ed9.tar.bz2
gentoo-0cafb31868e8c25d5eada6033310b87c314b4ed9.zip
dev-python/libsass: version bump 0.20.0
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-python/libsass/files')
-rw-r--r--dev-python/libsass/files/libsass-0.20.0_rename_sassc.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/libsass/files/libsass-0.20.0_rename_sassc.patch b/dev-python/libsass/files/libsass-0.20.0_rename_sassc.patch
new file mode 100644
index 00000000000..46efe870032
--- /dev/null
+++ b/dev-python/libsass/files/libsass-0.20.0_rename_sassc.patch
@@ -0,0 +1,64 @@
+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'],