From fa0be00596b4bbae2330cdc0a01fb7289ead7377 Mon Sep 17 00:00:00 2001 From: Philipp Eder Date: Tue, 10 Nov 2020 15:30:19 +0100 Subject: [PATCH 1/3] remove libsass --- pheme/parameter.py | 2 -- pheme/scripts/parameter.py | 1 - pheme/transformation/scanreport/renderer.py | 3 --- 3 files changed, 6 deletions(-) diff --git a/pheme/parameter.py b/pheme/parameter.py index 61ee8381..9b2efc31 100644 --- a/pheme/parameter.py +++ b/pheme/parameter.py @@ -20,8 +20,6 @@ logger = logging.getLogger(__name__) -mimetypes.add_type('text/scss', '.scss') - def load_params(from_path: str = settings.PARAMETER_FILE_ADDRESS) -> Dict: param_file_obj = Path(from_path) diff --git a/pheme/scripts/parameter.py b/pheme/scripts/parameter.py index e6785dff..044f0979 100755 --- a/pheme/scripts/parameter.py +++ b/pheme/scripts/parameter.py @@ -56,7 +56,6 @@ def main(): if len(sys.argv) != 2: sys.stderr.write("need exactly one one path parameter. Aborting.") sys.exit(1) - mimetypes.add_type('text/scss', '.scss') data = {} paths = sys.argv[1:] for i in paths: diff --git a/pheme/transformation/scanreport/renderer.py b/pheme/transformation/scanreport/renderer.py index bdc0ac82..e534ea94 100644 --- a/pheme/transformation/scanreport/renderer.py +++ b/pheme/transformation/scanreport/renderer.py @@ -25,7 +25,6 @@ from rest_framework import renderers from rest_framework.request import Request from weasyprint import CSS, HTML -import sass from pheme.settings import DEBUG from pheme.parameter import load_params from pheme.get_user_information import get_username_role @@ -102,7 +101,6 @@ def apply(self, name: str, data: Dict, parameter: Dict): css = _load_template(self.__css_template, parameter).render( Context(parameter) ) - css = sass.compile(string=css, output_style="compressed") data['css'] = css return _load_template(self.__template).render( @@ -121,7 +119,6 @@ def apply(self, name: str, data: Dict, parameter: Dict): css = _load_template(self.__css_template, parameter).render( Context(parameter) ) - css = sass.compile(string=css, output_style="compressed") html_template = _load_template(self.__template) html = html_template.render(Context(_enrich(name, data, parameter))) logger.debug("created html") From 8778d046634b75201cd8e4a02857f7a23947eb39 Mon Sep 17 00:00:00 2001 From: Philipp Eder Date: Tue, 10 Nov 2020 15:32:07 +0100 Subject: [PATCH 2/3] remove libsass depndency --- poetry.lock | 505 +++++++++++++++++++++++-------------------------- pyproject.toml | 1 - 2 files changed, 235 insertions(+), 271 deletions(-) diff --git a/poetry.lock b/poetry.lock index 4457b07c..a724d4b3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,29 +1,29 @@ [[package]] -name = "appdirs" -version = "1.4.4" -description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." category = "dev" +description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +name = "appdirs" optional = false python-versions = "*" +version = "1.4.4" [[package]] -name = "asgiref" -version = "3.2.10" -description = "ASGI specs, helper code, and adapters" category = "main" +description = "ASGI specs, helper code, and adapters" +name = "asgiref" optional = false python-versions = ">=3.5" +version = "3.2.10" [package.extras] tests = ["pytest", "pytest-asyncio"] [[package]] -name = "astroid" -version = "2.4.2" -description = "An abstract syntax tree for Python with inference support." category = "main" +description = "An abstract syntax tree for Python with inference support." +name = "astroid" optional = false python-versions = ">=3.5" +version = "2.4.2" [package.dependencies] lazy-object-proxy = ">=1.4.0,<1.5.0" @@ -32,20 +32,20 @@ typed-ast = {version = ">=1.4.0,<1.5", markers = "implementation_name == \"cpyth wrapt = ">=1.11,<2.0" [[package]] -name = "atomicwrites" -version = "1.4.0" -description = "Atomic file writes." category = "main" +description = "Atomic file writes." +name = "atomicwrites" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.4.0" [[package]] -name = "attrs" -version = "20.3.0" -description = "Classes Without Boilerplate" category = "main" +description = "Classes Without Boilerplate" +name = "attrs" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "20.3.0" [package.extras] dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "furo", "sphinx", "pre-commit"] @@ -54,12 +54,12 @@ tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)" tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"] [[package]] -name = "autohooks" -version = "2.2.0" -description = "Library for managing git hooks" category = "dev" +description = "Library for managing git hooks" +name = "autohooks" optional = false python-versions = ">=3.5,<4.0" +version = "2.2.0" [package.dependencies] colorful = ">=0.5.4,<0.6.0" @@ -67,36 +67,36 @@ packaging = ">=20.3,<21.0" tomlkit = ">=0.5.11,<0.6.0" [[package]] -name = "autohooks-plugin-black" -version = "1.2.0" -description = "Autohooks plugin for code formatting via black" category = "dev" +description = "Autohooks plugin for code formatting via black" +name = "autohooks-plugin-black" optional = false python-versions = ">=3.5" +version = "1.2.0" [package.dependencies] autohooks = ">=1.1" black = "*" [[package]] -name = "autohooks-plugin-pylint" -version = "1.2.0" -description = "Autohooks plugin for code linting via pylint" category = "dev" +description = "Autohooks plugin for code linting via pylint" +name = "autohooks-plugin-pylint" optional = false python-versions = ">=3.5" +version = "1.2.0" [package.dependencies] autohooks = ">=1.1" pylint = "*" [[package]] -name = "black" -version = "20.8b1" -description = "The uncompromising code formatter." category = "dev" +description = "The uncompromising code formatter." +name = "black" optional = false python-versions = ">=3.6" +version = "20.8b1" [package.dependencies] appdirs = "*" @@ -113,12 +113,12 @@ colorama = ["colorama (>=0.4.3)"] d = ["aiohttp (>=3.3.2)", "aiohttp-cors"] [[package]] -name = "cairocffi" -version = "1.2.0" -description = "cffi-based cairo bindings for Python" category = "main" +description = "cffi-based cairo bindings for Python" +name = "cairocffi" optional = false python-versions = ">=3.6" +version = "1.2.0" [package.dependencies] cffi = ">=1.1.0" @@ -129,12 +129,12 @@ test = ["pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"] xcb = ["xcffib (>=0.3.2)"] [[package]] -name = "cairosvg" -version = "2.5.0" -description = "A Simple SVG Converter based on Cairo" category = "main" +description = "A Simple SVG Converter based on Cairo" +name = "cairosvg" optional = false python-versions = ">=3.5" +version = "2.5.0" [package.dependencies] cairocffi = "*" @@ -148,66 +148,66 @@ doc = ["sphinx", "sphinx-rtd-theme"] test = ["pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"] [[package]] -name = "certifi" -version = "2020.11.8" -description = "Python package for providing Mozilla's CA Bundle." category = "main" +description = "Python package for providing Mozilla's CA Bundle." +name = "certifi" optional = false python-versions = "*" +version = "2020.11.8" [[package]] -name = "cffi" -version = "1.14.3" -description = "Foreign Function Interface for Python calling C code." category = "main" +description = "Foreign Function Interface for Python calling C code." +name = "cffi" optional = false python-versions = "*" +version = "1.14.3" [package.dependencies] pycparser = "*" [[package]] -name = "chardet" -version = "3.0.4" -description = "Universal encoding detector for Python 2 and 3" category = "main" +description = "Universal encoding detector for Python 2 and 3" +name = "chardet" optional = false python-versions = "*" +version = "3.0.4" [[package]] -name = "click" -version = "7.1.2" -description = "Composable command line interface toolkit" category = "dev" +description = "Composable command line interface toolkit" +name = "click" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "7.1.2" [[package]] -name = "colorama" -version = "0.4.4" -description = "Cross-platform colored terminal text." category = "main" +description = "Cross-platform colored terminal text." +name = "colorama" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "0.4.4" [[package]] -name = "colorful" -version = "0.5.4" -description = "Terminal string styling done right, in Python." category = "dev" +description = "Terminal string styling done right, in Python." +name = "colorful" optional = false python-versions = "*" +version = "0.5.4" [package.dependencies] colorama = {version = "*", markers = "platform_system == \"Windows\""} [[package]] -name = "coreapi" -version = "2.3.3" -description = "Python client library for Core API." category = "main" +description = "Python client library for Core API." +name = "coreapi" optional = false python-versions = "*" +version = "2.3.3" [package.dependencies] coreschema = "*" @@ -216,34 +216,34 @@ requests = "*" uritemplate = "*" [[package]] -name = "coreschema" -version = "0.0.4" -description = "Core Schema." category = "main" +description = "Core Schema." +name = "coreschema" optional = false python-versions = "*" +version = "0.0.4" [package.dependencies] jinja2 = "*" [[package]] -name = "coverage" -version = "5.3" -description = "Code coverage measurement for Python" category = "main" +description = "Code coverage measurement for Python" +name = "coverage" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" +version = "5.3" [package.extras] toml = ["toml"] [[package]] -name = "cssselect2" -version = "0.4.1" -description = "cssselect2" category = "main" +description = "cssselect2" +name = "cssselect2" optional = false python-versions = ">=3.6" +version = "0.4.1" [package.dependencies] tinycss2 = "*" @@ -254,31 +254,31 @@ doc = ["sphinx", "sphinx-rtd-theme"] test = ["pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "coverage"] [[package]] -name = "cycler" -version = "0.10.0" -description = "Composable style cycles" category = "main" +description = "Composable style cycles" +name = "cycler" optional = false python-versions = "*" +version = "0.10.0" [package.dependencies] six = "*" [[package]] -name = "defusedxml" -version = "0.6.0" -description = "XML bomb protection for Python stdlib modules" category = "main" +description = "XML bomb protection for Python stdlib modules" +name = "defusedxml" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "0.6.0" [[package]] -name = "django" -version = "3.1.3" -description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." category = "main" +description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." +name = "django" optional = false python-versions = ">=3.6" +version = "3.1.3" [package.dependencies] asgiref = ">=3.2.10,<4" @@ -290,23 +290,23 @@ argon2 = ["argon2-cffi (>=16.1.0)"] bcrypt = ["bcrypt"] [[package]] -name = "djangorestframework" -version = "3.12.2" -description = "Web APIs for Django, made easy." category = "main" +description = "Web APIs for Django, made easy." +name = "djangorestframework" optional = false python-versions = ">=3.5" +version = "3.12.2" [package.dependencies] django = ">=2.2" [[package]] -name = "djangorestframework-dataclasses" -version = "0.8" -description = "A dataclasses serializer for Django REST Framework" category = "main" +description = "A dataclasses serializer for Django REST Framework" +name = "djangorestframework-dataclasses" optional = false python-versions = ">=3.7" +version = "0.8" [package.dependencies] django = ">=2.0" @@ -314,12 +314,12 @@ djangorestframework = ">=3.9" typing_extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""} [[package]] -name = "html5lib" -version = "1.1" -description = "HTML parser based on the WHATWG HTML specification" category = "main" +description = "HTML parser based on the WHATWG HTML specification" +name = "html5lib" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "1.1" [package.dependencies] six = ">=1.9" @@ -332,20 +332,20 @@ genshi = ["genshi"] lxml = ["lxml"] [[package]] -name = "idna" -version = "2.10" -description = "Internationalized Domain Names in Applications (IDNA)" category = "main" +description = "Internationalized Domain Names in Applications (IDNA)" +name = "idna" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.10" [[package]] -name = "importlib-metadata" -version = "2.0.0" -description = "Read metadata from Python packages" category = "main" +description = "Read metadata from Python packages" +name = "importlib-metadata" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" +version = "2.0.0" [package.dependencies] zipp = ">=0.5" @@ -355,41 +355,41 @@ docs = ["sphinx", "rst.linker"] testing = ["packaging", "pep517", "importlib-resources (>=1.3)"] [[package]] -name = "iniconfig" -version = "1.1.1" -description = "iniconfig: brain-dead simple config-ini parsing" category = "main" +description = "iniconfig: brain-dead simple config-ini parsing" +name = "iniconfig" optional = false python-versions = "*" +version = "1.1.1" [[package]] -name = "isort" -version = "5.6.4" -description = "A Python utility / library to sort Python imports." category = "main" +description = "A Python utility / library to sort Python imports." +name = "isort" optional = false python-versions = ">=3.6,<4.0" +version = "5.6.4" [package.extras] +colors = ["colorama (>=0.4.3,<0.5.0)"] pipfile_deprecated_finder = ["pipreqs", "requirementslib"] requirements_deprecated_finder = ["pipreqs", "pip-api"] -colors = ["colorama (>=0.4.3,<0.5.0)"] [[package]] -name = "itypes" -version = "1.2.0" -description = "Simple immutable types for python." category = "main" +description = "Simple immutable types for python." +name = "itypes" optional = false python-versions = "*" +version = "1.2.0" [[package]] -name = "jinja2" -version = "2.11.2" -description = "A very fast and expressive template engine." category = "main" +description = "A very fast and expressive template engine." +name = "jinja2" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "2.11.2" [package.dependencies] MarkupSafe = ">=0.23" @@ -398,47 +398,36 @@ MarkupSafe = ">=0.23" i18n = ["Babel (>=0.8)"] [[package]] -name = "kiwisolver" -version = "1.3.1" -description = "A fast implementation of the Cassowary constraint solver" category = "main" +description = "A fast implementation of the Cassowary constraint solver" +name = "kiwisolver" optional = false python-versions = ">=3.6" +version = "1.3.1" [[package]] -name = "lazy-object-proxy" -version = "1.4.3" -description = "A fast and thorough lazy object proxy." category = "main" +description = "A fast and thorough lazy object proxy." +name = "lazy-object-proxy" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.4.3" [[package]] -name = "libsass" -version = "0.20.1" -description = "Sass for Python: A straightforward binding of libsass for Python." category = "main" -optional = false -python-versions = "*" - -[package.dependencies] -six = "*" - -[[package]] -name = "markupsafe" -version = "1.1.1" description = "Safely add untrusted strings to HTML/XML markup." -category = "main" +name = "markupsafe" optional = false python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*" +version = "1.1.1" [[package]] -name = "matplotlib" -version = "3.3.2" -description = "Python plotting package" category = "main" +description = "Python plotting package" +name = "matplotlib" optional = false python-versions = ">=3.6" +version = "3.3.2" [package.dependencies] certifi = ">=2020.06.20" @@ -450,48 +439,48 @@ pyparsing = ">=2.0.3,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6" python-dateutil = ">=2.1" [[package]] -name = "mccabe" -version = "0.6.1" -description = "McCabe checker, plugin for flake8" category = "main" +description = "McCabe checker, plugin for flake8" +name = "mccabe" optional = false python-versions = "*" +version = "0.6.1" [[package]] -name = "mypy-extensions" -version = "0.4.3" -description = "Experimental type system extensions for programs checked with the mypy typechecker." category = "dev" +description = "Experimental type system extensions for programs checked with the mypy typechecker." +name = "mypy-extensions" optional = false python-versions = "*" +version = "0.4.3" [[package]] -name = "numpy" -version = "1.19.4" -description = "NumPy is the fundamental package for array computing with Python." category = "main" +description = "NumPy is the fundamental package for array computing with Python." +name = "numpy" optional = false python-versions = ">=3.6" +version = "1.19.4" [[package]] -name = "packaging" -version = "20.4" -description = "Core utilities for Python packages" category = "main" +description = "Core utilities for Python packages" +name = "packaging" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "20.4" [package.dependencies] pyparsing = ">=2.0.2" six = "*" [[package]] -name = "pandas" -version = "1.1.4" -description = "Powerful data structures for data analysis, time series, and statistics" category = "main" +description = "Powerful data structures for data analysis, time series, and statistics" +name = "pandas" optional = false python-versions = ">=3.6.1" +version = "1.1.4" [package.dependencies] numpy = ">=1.15.4" @@ -502,28 +491,28 @@ pytz = ">=2017.2" test = ["pytest (>=4.0.2)", "pytest-xdist", "hypothesis (>=3.58)"] [[package]] -name = "pathspec" -version = "0.8.1" -description = "Utility library for gitignore style pattern matching of file paths." category = "dev" +description = "Utility library for gitignore style pattern matching of file paths." +name = "pathspec" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "0.8.1" [[package]] -name = "pillow" -version = "8.0.1" -description = "Python Imaging Library (Fork)" category = "main" +description = "Python Imaging Library (Fork)" +name = "pillow" optional = false python-versions = ">=3.6" +version = "8.0.1" [[package]] -name = "pluggy" -version = "0.13.1" -description = "plugin and hook calling mechanisms for python" category = "main" +description = "plugin and hook calling mechanisms for python" +name = "pluggy" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.13.1" [package.dependencies] importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} @@ -532,12 +521,12 @@ importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} dev = ["pre-commit", "tox"] [[package]] -name = "pontos" -version = "0.3.0" -description = "Common utilities and tools maintained by Greenbone Networks" category = "dev" +description = "Common utilities and tools maintained by Greenbone Networks" +name = "pontos" optional = false python-versions = ">=3.7,<4.0" +version = "0.3.0" [package.dependencies] packaging = ">=20.3,<21.0" @@ -545,28 +534,28 @@ requests = ">=2.24.0,<3.0.0" tomlkit = ">=0.5.11,<0.6.0" [[package]] -name = "py" -version = "1.9.0" -description = "library with cross-python path, ini-parsing, io, code, log facilities" category = "main" +description = "library with cross-python path, ini-parsing, io, code, log facilities" +name = "py" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.9.0" [[package]] -name = "pycparser" -version = "2.20" -description = "C parser in Python" category = "main" +description = "C parser in Python" +name = "pycparser" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.20" [[package]] -name = "pylint" -version = "2.6.0" -description = "python code static checker" category = "main" +description = "python code static checker" +name = "pylint" optional = false python-versions = ">=3.5.*" +version = "2.6.0" [package.dependencies] astroid = ">=2.4.0,<=2.5" @@ -576,12 +565,12 @@ mccabe = ">=0.6,<0.7" toml = ">=0.7.1" [[package]] -name = "pylint-django" -version = "2.3.0" -description = "A Pylint plugin to help Pylint understand the Django web framework" category = "main" +description = "A Pylint plugin to help Pylint understand the Django web framework" +name = "pylint-django" optional = false python-versions = "*" +version = "2.3.0" [package.dependencies] pylint = ">=2.0" @@ -592,39 +581,39 @@ for_tests = ["coverage", "django-tables2", "factory-boy", "pytest"] with_django = ["django"] [[package]] -name = "pylint-plugin-utils" -version = "0.6" -description = "Utilities and helpers for writing Pylint plugins" category = "main" +description = "Utilities and helpers for writing Pylint plugins" +name = "pylint-plugin-utils" optional = false python-versions = "*" +version = "0.6" [package.dependencies] pylint = ">=1.7" [[package]] -name = "pyparsing" -version = "2.4.7" -description = "Python parsing module" category = "main" +description = "Python parsing module" +name = "pyparsing" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" +version = "2.4.7" [[package]] -name = "pyphen" -version = "0.10.0" -description = "Pure Python module to hyphenate text" category = "main" +description = "Pure Python module to hyphenate text" +name = "pyphen" optional = false python-versions = "*" +version = "0.10.0" [[package]] -name = "pytest" -version = "6.1.2" -description = "pytest: simple powerful testing with Python" category = "main" +description = "pytest: simple powerful testing with Python" +name = "pytest" optional = false python-versions = ">=3.5" +version = "6.1.2" [package.dependencies] atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""} @@ -642,12 +631,12 @@ checkqa_mypy = ["mypy (==0.780)"] testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"] [[package]] -name = "pytest-cov" -version = "2.10.1" -description = "Pytest plugin for measuring coverage." category = "main" +description = "Pytest plugin for measuring coverage." +name = "pytest-cov" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "2.10.1" [package.dependencies] coverage = ">=4.4" @@ -657,12 +646,12 @@ pytest = ">=4.6" testing = ["fields", "hunter", "process-tests (==2.0.2)", "six", "pytest-xdist", "virtualenv"] [[package]] -name = "pytest-django" -version = "4.1.0" -description = "A Django plugin for pytest." category = "main" +description = "A Django plugin for pytest." +name = "pytest-django" optional = false python-versions = ">=3.5" +version = "4.1.0" [package.dependencies] pytest = ">=5.4.0" @@ -672,58 +661,58 @@ docs = ["sphinx", "sphinx-rtd-theme"] testing = ["django", "django-configurations (>=2.0)"] [[package]] -name = "pytest-env" -version = "0.6.2" -description = "py.test plugin that allows you to add environment variables." category = "main" +description = "py.test plugin that allows you to add environment variables." +name = "pytest-env" optional = false python-versions = "*" +version = "0.6.2" [package.dependencies] pytest = ">=2.6.0" [[package]] -name = "python-dateutil" -version = "2.8.1" -description = "Extensions to the standard Python datetime module" category = "main" +description = "Extensions to the standard Python datetime module" +name = "python-dateutil" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +version = "2.8.1" [package.dependencies] six = ">=1.5" [[package]] -name = "pytz" -version = "2020.4" -description = "World timezone definitions, modern and historical" category = "main" +description = "World timezone definitions, modern and historical" +name = "pytz" optional = false python-versions = "*" +version = "2020.4" [[package]] -name = "pyyaml" -version = "5.3.1" -description = "YAML parser and emitter for Python" category = "main" +description = "YAML parser and emitter for Python" +name = "pyyaml" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "5.3.1" [[package]] -name = "regex" -version = "2020.10.28" -description = "Alternative regular expression module, to replace re." category = "dev" +description = "Alternative regular expression module, to replace re." +name = "regex" optional = false python-versions = "*" +version = "2020.10.28" [[package]] -name = "requests" -version = "2.24.0" -description = "Python HTTP for Humans." category = "main" +description = "Python HTTP for Humans." +name = "requests" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "2.24.0" [package.dependencies] certifi = ">=2017.4.17" @@ -736,47 +725,47 @@ security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"] socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] [[package]] -name = "rope" -version = "0.18.0" -description = "a python refactoring library..." category = "main" +description = "a python refactoring library..." +name = "rope" optional = false python-versions = "*" +version = "0.18.0" [package.extras] dev = ["pytest"] [[package]] -name = "six" -version = "1.15.0" -description = "Python 2 and 3 compatibility utilities" category = "main" +description = "Python 2 and 3 compatibility utilities" +name = "six" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +version = "1.15.0" [[package]] -name = "sqlparse" -version = "0.4.1" -description = "A non-validating SQL parser." category = "main" +description = "A non-validating SQL parser." +name = "sqlparse" optional = false python-versions = ">=3.5" +version = "0.4.1" [[package]] -name = "squarify" -version = "0.4.3" -description = "Pure Python implementation of the squarify treemap layout algorithm" category = "main" +description = "Pure Python implementation of the squarify treemap layout algorithm" +name = "squarify" optional = false python-versions = "*" +version = "0.4.3" [[package]] -name = "tinycss2" -version = "1.1.0" -description = "tinycss2" category = "main" +description = "tinycss2" +name = "tinycss2" optional = false python-versions = ">=3.6" +version = "1.1.0" [package.dependencies] webencodings = ">=0.4" @@ -786,52 +775,52 @@ doc = ["sphinx", "sphinx-rtd-theme"] test = ["pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "coverage"] [[package]] -name = "toml" -version = "0.10.2" -description = "Python Library for Tom's Obvious, Minimal Language" category = "main" +description = "Python Library for Tom's Obvious, Minimal Language" +name = "toml" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" +version = "0.10.2" [[package]] -name = "tomlkit" -version = "0.5.11" -description = "Style preserving TOML library" category = "dev" +description = "Style preserving TOML library" +name = "tomlkit" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.5.11" [[package]] -name = "typed-ast" -version = "1.4.1" -description = "a fork of Python 2 and 3 ast modules with type comment support" category = "main" +description = "a fork of Python 2 and 3 ast modules with type comment support" +name = "typed-ast" optional = false python-versions = "*" +version = "1.4.1" [[package]] -name = "typing-extensions" -version = "3.7.4.3" -description = "Backported and Experimental Type Hints for Python 3.5+" category = "main" +description = "Backported and Experimental Type Hints for Python 3.5+" +name = "typing-extensions" optional = false python-versions = "*" +version = "3.7.4.3" [[package]] -name = "uritemplate" -version = "3.0.1" -description = "URI templates" category = "main" +description = "URI templates" +name = "uritemplate" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "3.0.1" [[package]] -name = "urllib3" -version = "1.25.11" -description = "HTTP library with thread-safe connection pooling, file post, and more." category = "main" +description = "HTTP library with thread-safe connection pooling, file post, and more." +name = "urllib3" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" +version = "1.25.11" [package.extras] brotli = ["brotlipy (>=0.6.0)"] @@ -839,12 +828,12 @@ secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "cer socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [[package]] -name = "weasyprint" -version = "52.1" -description = "The Awesome Document Factory" category = "main" +description = "The Awesome Document Factory" +name = "weasyprint" optional = false python-versions = ">=3.6" +version = "52.1" [package.dependencies] cairocffi = ">=0.9.0" @@ -861,45 +850,45 @@ doc = ["sphinx", "sphinx-rtd-theme"] test = ["pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"] [[package]] -name = "webencodings" -version = "0.5.1" -description = "Character encoding aliases for legacy web content" category = "main" +description = "Character encoding aliases for legacy web content" +name = "webencodings" optional = false python-versions = "*" +version = "0.5.1" [[package]] -name = "wrapt" -version = "1.12.1" -description = "Module for decorators, wrappers and monkey patching." category = "main" +description = "Module for decorators, wrappers and monkey patching." +name = "wrapt" optional = false python-versions = "*" +version = "1.12.1" [[package]] -name = "xmltodict" -version = "0.12.0" -description = "Makes working with XML feel like you are working with JSON" category = "main" +description = "Makes working with XML feel like you are working with JSON" +name = "xmltodict" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.12.0" [[package]] -name = "zipp" -version = "3.4.0" -description = "Backport of pathlib-compatible object wrapper for zip files" category = "main" +description = "Backport of pathlib-compatible object wrapper for zip files" +name = "zipp" optional = false python-versions = ">=3.6" +version = "3.4.0" [package.extras] docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["pytest (>=3.5,!=3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pytest-cov", "jaraco.test (>=3.2.0)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"] [metadata] +content-hash = "0290c94ba0ff3e1cf21a86784f4da1737a83b2e2b488d510be36f1219e0296e8" lock-version = "1.1" python-versions = "^3.7" -content-hash = "abae2ff2603f47117e4b2666ce83ff2e1f276535b34d2f3d0234dedf1ffa8b82" [metadata.files] appdirs = [ @@ -1153,21 +1142,6 @@ lazy-object-proxy = [ {file = "lazy_object_proxy-1.4.3-cp38-cp38-win32.whl", hash = "sha256:5541cada25cd173702dbd99f8e22434105456314462326f06dba3e180f203dfd"}, {file = "lazy_object_proxy-1.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:59f79fef100b09564bc2df42ea2d8d21a64fdcda64979c0fa3db7bdaabaf6239"}, ] -libsass = [ - {file = "libsass-0.20.1-cp27-cp27m-macosx_10_14_x86_64.whl", hash = "sha256:4a246e4b88fd279abef8b669206228c92534d96ddcd0770d7012088c408dff23"}, - {file = "libsass-0.20.1-cp27-cp27m-win32.whl", hash = "sha256:697f0f9fa8a1367ca9ec6869437cb235b1c537fc8519983d1d890178614a8903"}, - {file = "libsass-0.20.1-cp27-cp27m-win_amd64.whl", hash = "sha256:1b2d415bbf6fa7da33ef46e549db1418498267b459978eff8357e5e823962d35"}, - {file = "libsass-0.20.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:1521d2a8d4b397c6ec90640a1f6b5529077035efc48ef1c2e53095544e713d1b"}, - {file = "libsass-0.20.1-cp36-abi3-macosx_10_14_x86_64.whl", hash = "sha256:2ae806427b28bc1bb7cb0258666d854fcf92ba52a04656b0b17ba5e190fb48a9"}, - {file = "libsass-0.20.1-cp36-abi3-manylinux1_x86_64.whl", hash = "sha256:25ebc2085f5eee574761ccc8d9cd29a9b436fc970546d5ef08c6fa41eb57dff1"}, - {file = "libsass-0.20.1-cp36-cp36m-win32.whl", hash = "sha256:553e5096414a8d4fb48d0a48f5a038d3411abe254d79deac5e008516c019e63a"}, - {file = "libsass-0.20.1-cp36-cp36m-win_amd64.whl", hash = "sha256:e64ae2587f1a683e831409aad03ba547c245ef997e1329fffadf7a866d2510b8"}, - {file = "libsass-0.20.1-cp37-cp37m-win32.whl", hash = "sha256:c9411fec76f480ffbacc97d8188322e02a5abca6fc78e70b86a2a2b421eae8a2"}, - {file = "libsass-0.20.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a8fd4af9f853e8bf42b1425c5e48dd90b504fa2e70d7dac5ac80b8c0a5a5fe85"}, - {file = "libsass-0.20.1-cp38-cp38-win32.whl", hash = "sha256:f6852828e9e104d2ce0358b73c550d26dd86cc3a69439438c3b618811b9584f5"}, - {file = "libsass-0.20.1-cp38-cp38-win_amd64.whl", hash = "sha256:daa98a51086d92aa7e9c8871cf1a8258124b90e2abf4697852a3dca619838618"}, - {file = "libsass-0.20.1.tar.gz", hash = "sha256:e0e60836eccbf2d9e24ec978a805cd6642fa92515fbd95e3493fee276af76f8a"}, -] markupsafe = [ {file = "MarkupSafe-1.1.1-cp27-cp27m-macosx_10_6_intel.whl", hash = "sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161"}, {file = "MarkupSafe-1.1.1-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7"}, @@ -1487,28 +1461,19 @@ typed-ast = [ {file = "typed_ast-1.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75"}, {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652"}, {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7"}, - {file = "typed_ast-1.4.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:fcf135e17cc74dbfbc05894ebca928ffeb23d9790b3167a674921db19082401f"}, {file = "typed_ast-1.4.1-cp36-cp36m-win32.whl", hash = "sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1"}, {file = "typed_ast-1.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa"}, {file = "typed_ast-1.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614"}, {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41"}, {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b"}, - {file = "typed_ast-1.4.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:f208eb7aff048f6bea9586e61af041ddf7f9ade7caed625742af423f6bae3298"}, {file = "typed_ast-1.4.1-cp37-cp37m-win32.whl", hash = "sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe"}, {file = "typed_ast-1.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355"}, {file = "typed_ast-1.4.1-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6"}, {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907"}, {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d"}, - {file = "typed_ast-1.4.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:7e4c9d7658aaa1fc80018593abdf8598bf91325af6af5cce4ce7c73bc45ea53d"}, {file = "typed_ast-1.4.1-cp38-cp38-win32.whl", hash = "sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c"}, {file = "typed_ast-1.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4"}, {file = "typed_ast-1.4.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34"}, - {file = "typed_ast-1.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:92c325624e304ebf0e025d1224b77dd4e6393f18aab8d829b5b7e04afe9b7a2c"}, - {file = "typed_ast-1.4.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:d648b8e3bf2fe648745c8ffcee3db3ff903d0817a01a12dd6a6ea7a8f4889072"}, - {file = "typed_ast-1.4.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:fac11badff8313e23717f3dada86a15389d0708275bddf766cca67a84ead3e91"}, - {file = "typed_ast-1.4.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:0d8110d78a5736e16e26213114a38ca35cb15b6515d535413b090bd50951556d"}, - {file = "typed_ast-1.4.1-cp39-cp39-win32.whl", hash = "sha256:b52ccf7cfe4ce2a1064b18594381bccf4179c2ecf7f513134ec2f993dd4ab395"}, - {file = "typed_ast-1.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:3742b32cf1c6ef124d57f95be609c473d7ec4c14d0090e5a5e05a15269fb4d0c"}, {file = "typed_ast-1.4.1.tar.gz", hash = "sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b"}, ] typing-extensions = [ diff --git a/pyproject.toml b/pyproject.toml index 1dfeab31..dcdf15df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,6 @@ pandas = "^1.1.2" rope = ">=0.17,<0.19" squarify = "^0.4.3" pytest-env = "^0.6.2" -libsass = "^0.20.1" [tool.poetry.dev-dependencies] pylint = "^2.6.0" From 928511972b6961ec58b6a1582ef77ec8dec66e1c Mon Sep 17 00:00:00 2001 From: Philipp Eder Date: Tue, 10 Nov 2020 15:33:24 +0100 Subject: [PATCH 3/3] add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7df5923..42d5880a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed ### Deprecated ### Removed +- libsass support: https://sass-lang.com/blog/libsass-is-deprecated [111](https://github.com/greenbone/pheme/pull/111) ### Fixed [Unreleased]: https://github.com/greenbone/pheme/compare/v0.0.1a3...HEAD