From 5e4e6d31b54d333897feef15cb4ae1023eec43d8 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 10 Mar 2022 11:53:12 -0500 Subject: [PATCH] remove deprecated `sassc` entry --- sassc.py | 15 --------------- sasstests.py | 12 ------------ setup.py | 4 +--- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 sassc.py 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/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: 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=[ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy