Repository: sass/libsass-python (language: python)

Issue:
Python script sassc renaming ?
Hi,
libsass-python provides a sassc utility in python.
The name "sassc" means "Sass implemented in C", and it can collide with the binary sassc from the original project in C, when installing.
Would it make sense to rename the python utility from sassc to pysassc ?

Fred



Discussion / hints:

Fix patch:
diff --git a/sassc.py b/sassc.py
deleted file mode 100644
index 771dec71..00000000
--- 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__':
-    raise SystemExit(main())
diff --git a/setup.py b/setup.py
index 2bbf408c..9ed894a0 100644
--- a/setup.py
+++ b/setup.py
@@ -243,7 +243,7 @@ def finalize_options(self):
     version=version(),
     ext_modules=[sass_extension],
     packages=['sassutils'],
-    py_modules=['pysassc', 'sass', 'sassc', 'sasstests'],
+    py_modules=['pysassc', 'sass', 'sasstests'],
     package_data={
         '': [
             'README.rst',
@@ -264,8 +264,6 @@ def finalize_options(self):
         ],
         'console_scripts': [
             ['pysassc = pysassc:main'],
-            # TODO: remove `sassc` entry (#134)
-            ['sassc = sassc:main'],
         ],
     },
     classifiers=[


Test patch:
diff --git a/sasstests.py b/sasstests.py
index c901e561..c20401e1 100644
--- a/sasstests.py
+++ b/sasstests.py
@@ -21,7 +21,6 @@
 
 import pysassc
 import sass
-import sassc
 from sassutils.builder import Manifest, build_directory
 from sassutils.wsgi import SassMiddleware
 
@@ -970,17 +969,6 @@ def test_pysassc_stdout(self):
         assert self.err.getvalue() == ''
         assert A_EXPECTED_CSS.strip() == self.out.getvalue().strip()
 
-    def test_sassc_stdout(self):
-        with pytest.warns(FutureWarning) as warninfo:
-            exit_code = sassc.main(
-                ['sassc', 'test/a.scss'],
-                self.out, self.err,
-            )
-        assert 'use `pysassc`' in warninfo[0].message.args[0]
-        assert exit_code == 0
-        assert self.err.getvalue() == ''
-        assert A_EXPECTED_CSS.strip() == self.out.getvalue().strip()
-
     def test_pysassc_output(self):
         fd, tmp = tempfile.mkstemp('.css')
         try: