1 |
commit: 0cafb31868e8c25d5eada6033310b87c314b4ed9 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Fri May 1 16:55:30 2020 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 2 11:55:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cafb318 |
7 |
|
8 |
dev-python/libsass: version bump 0.20.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
13 |
|
14 |
dev-python/libsass/Manifest | 1 + |
15 |
.../files/libsass-0.20.0_rename_sassc.patch | 64 ++++++++++++++++++++++ |
16 |
dev-python/libsass/libsass-0.20.0.ebuild | 34 ++++++++++++ |
17 |
3 files changed, 99 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/libsass/Manifest b/dev-python/libsass/Manifest |
20 |
index f033af2141f..3b9ca53f26a 100644 |
21 |
--- a/dev-python/libsass/Manifest |
22 |
+++ b/dev-python/libsass/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST libsass-0.19.4.tar.gz 315525 BLAKE2B b9a7fe2f42559070a30b2549f74b61fd28a18e842ba25b65c221889d18e319593bd08bfbedf2601cf5510fae33a4e24e96c52117db2290947c979bb1ecd0de53 SHA512 370ac2b4edb0dbf4e5a5b66d7795c6c189894bbe444c25465e922f8a3b435605771f8bb6fc9e25f30e6be889bcf4038d0a05ff2297777c179916de510523e489 |
25 |
+DIST libsass-0.20.0.tar.gz 321750 BLAKE2B 215bbe8d4a60d3f6851bfe92a7fb79e58bdf86fa5334a39c7ed051ad2ffc598e59afcb381f6526d25d6e3d021fd5eda51371a6628c01111f8bed42bda9581cb7 SHA512 ad6054f3e02b39730c4680b64d3ed20ba05443c7019c8a7a47ae557a6f52c60be1326a2cf2421f13de0a57a5f37347dffff1146190d1fa0eb8fd985f27ebf7d7 |
26 |
|
27 |
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 |
28 |
new file mode 100644 |
29 |
index 00000000000..46efe870032 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/libsass/files/libsass-0.20.0_rename_sassc.patch |
32 |
@@ -0,0 +1,64 @@ |
33 |
+diff --git a/sassc.py b/sassc.py |
34 |
+deleted file mode 100644 |
35 |
+index 2415342..0000000 |
36 |
+--- a/sassc.py |
37 |
++++ /dev/null |
38 |
+@@ -1,15 +0,0 @@ |
39 |
+-import warnings |
40 |
+- |
41 |
+-import pysassc |
42 |
+- |
43 |
+- |
44 |
+-def main(*args, **kwargs): |
45 |
+- warnings.warn( |
46 |
+- 'The `sassc` entrypoint is deprecated, please use `pysassc`', |
47 |
+- FutureWarning, |
48 |
+- ), |
49 |
+- return pysassc.main(*args, **kwargs) |
50 |
+- |
51 |
+- |
52 |
+-if __name__ == '__main__': |
53 |
+- exit(main()) |
54 |
+diff --git a/sasstests.py b/sasstests.py |
55 |
+index 1f40a97..7547ab3 100644 |
56 |
+--- a/sasstests.py |
57 |
++++ b/sasstests.py |
58 |
+@@ -24,7 +24,6 @@ from werkzeug.wrappers import Response |
59 |
+ |
60 |
+ import pysassc |
61 |
+ import sass |
62 |
+-import sassc |
63 |
+ from sassutils._compat import collections_abc |
64 |
+ from sassutils.builder import Manifest, build_directory |
65 |
+ from sassutils.wsgi import SassMiddleware |
66 |
+@@ -976,7 +975,7 @@ class SasscTestCase(BaseTestCase): |
67 |
+ |
68 |
+ def test_sassc_stdout(self): |
69 |
+ with pytest.warns(FutureWarning) as warninfo: |
70 |
+- exit_code = sassc.main( |
71 |
++ exit_code = pysassc.main( |
72 |
+ ['sassc', 'test/a.scss'], |
73 |
+ self.out, self.err, |
74 |
+ ) |
75 |
+diff --git a/setup.py b/setup.py |
76 |
+index e2a0c85..5905162 100644 |
77 |
+--- a/setup.py |
78 |
++++ b/setup.py |
79 |
+@@ -218,7 +218,7 @@ setup( |
80 |
+ version=version(), |
81 |
+ ext_modules=[sass_extension], |
82 |
+ packages=['sassutils'], |
83 |
+- py_modules=['pysassc', 'sass', 'sassc', 'sasstests'], |
84 |
++ py_modules=['pysassc', 'sass', 'sasstests'], |
85 |
+ package_data={ |
86 |
+ '': [ |
87 |
+ 'README.rst', |
88 |
+@@ -239,8 +239,6 @@ setup( |
89 |
+ ], |
90 |
+ 'console_scripts': [ |
91 |
+ ['pysassc = pysassc:main'], |
92 |
+- # TODO: remove `sassc` entry (#134) |
93 |
+- ['sassc = sassc:main'], |
94 |
+ ], |
95 |
+ }, |
96 |
+ install_requires=['six'], |
97 |
|
98 |
diff --git a/dev-python/libsass/libsass-0.20.0.ebuild b/dev-python/libsass/libsass-0.20.0.ebuild |
99 |
new file mode 100644 |
100 |
index 00000000000..6ae285a36e2 |
101 |
--- /dev/null |
102 |
+++ b/dev-python/libsass/libsass-0.20.0.ebuild |
103 |
@@ -0,0 +1,34 @@ |
104 |
+# Copyright 1999-2020 Gentoo Authors |
105 |
+# Distributed under the terms of the GNU General Public License v2 |
106 |
+ |
107 |
+EAPI=7 |
108 |
+ |
109 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
110 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
111 |
+ |
112 |
+inherit distutils-r1 |
113 |
+ |
114 |
+DESCRIPTION="A straightforward binding of libsass for Python" |
115 |
+HOMEPAGE="https://github.com/sass/libsass-python" |
116 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
117 |
+ |
118 |
+LICENSE="MIT" |
119 |
+SLOT="0" |
120 |
+KEYWORDS="~amd64 ~x86" |
121 |
+ |
122 |
+DEPEND="dev-libs/libsass |
123 |
+ dev-python/six[${PYTHON_USEDEP}] |
124 |
+ test? ( |
125 |
+ dev-python/PyQt5[testlib,${PYTHON_USEDEP}] |
126 |
+ dev-python/werkzeug[${PYTHON_USEDEP}] |
127 |
+ )" |
128 |
+ |
129 |
+# Remove sassc, in favour of pysassc, see: https://github.com/sass/libsass-python/issues/134 |
130 |
+# This avoids a file collision with dev-lang/sassc |
131 |
+PATCHES=( "${FILESDIR}"/${P}_rename_sassc.patch ) |
132 |
+ |
133 |
+distutils_enable_tests pytest |
134 |
+ |
135 |
+python_test() { |
136 |
+ "${EPYTHON}" sasstests.py || die "Tests fail with ${EPYTHON}" |
137 |
+} |