diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-07 10:30:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-07 10:30:26 +0000 |
commit | c7b0c71354a7b7b9645ba15b430f0408342298aa (patch) | |
tree | 526df5137070cb8f116c415f8725a684f4c230d2 | |
parent | 6f9648873873146dd7f07b86ab3f1544eac6d9ba (diff) |
automatic import of python-qtsass
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-qtsass.spec | 86 | ||||
-rw-r--r-- | sources | 2 |
3 files changed, 27 insertions, 62 deletions
@@ -1 +1,2 @@ /qtsass-0.3.2.tar.gz +/qtsass-0.4.0.tar.gz diff --git a/python-qtsass.spec b/python-qtsass.spec index 0c33f7a..dc4e47b 100644 --- a/python-qtsass.spec +++ b/python-qtsass.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-qtsass -Version: 0.3.2 +Version: 0.4.0 Release: 1 Summary: Compile SCSS files to valid Qt stylesheets. License: MIT URL: https://github.com/spyder-ide/qtsass -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/20/65/9191a3d6ebaadd65fc2510964e9bf9bb3e83ea47e2ae0951125db2b796a8/qtsass-0.3.2.tar.gz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cf/a9/7e03e21e72aa503c18a76e6e847b46f3c953ca39c0e684b01f10c29976db/qtsass-0.4.0.tar.gz BuildArch: noarch Requires: python3-libsass @@ -161,31 +161,16 @@ Arguments: Returns: - Qt compliant CSS string -### `compile_filename(input_file, dest_file, **kwargs)`: +### `compile_filename(input_file, output_file=None, **kwargs)`: -Compile and save QtSASS file as Qt compliant CSS. +Compile and return a QtSASS file as Qt compliant CSS. Optionally save to a file. Examples: ```bash >>> import qtsass ->>> qtsass.compile_filename('dummy.scss', 'dummy.css') -``` - -Arguments: -- input_file: Path to QtSass file. -- dest_file: Path to destination Qt compliant CSS file. -- kwargs: Keyword arguments to pass to sass.compile - -### `compile_filename(input_file, output_file, **kwargs)`: - -Compile and save QtSASS file as Qt compliant CSS. - -Examples: - -```bash ->>> import qtsass ->>> qtsass.compile_filename('dummy.scss', 'dummy.css') +>>> qtsass.compile_filename("dummy.scss", "dummy.css") +>>> css = qtsass.compile_filename("dummy.scss") ``` Arguments: @@ -193,6 +178,9 @@ Arguments: - output_file: Path to write Qt compliant CSS. - kwargs: Keyword arguments to pass to sass.compile +Returns: +- Qt compliant CSS string + ### `compile_dirname(input_dir, output_dir, **kwargs)`: Compiles QtSASS files in a directory including subdirectories. @@ -419,31 +407,16 @@ Arguments: Returns: - Qt compliant CSS string -### `compile_filename(input_file, dest_file, **kwargs)`: +### `compile_filename(input_file, output_file=None, **kwargs)`: -Compile and save QtSASS file as Qt compliant CSS. +Compile and return a QtSASS file as Qt compliant CSS. Optionally save to a file. Examples: ```bash >>> import qtsass ->>> qtsass.compile_filename('dummy.scss', 'dummy.css') -``` - -Arguments: -- input_file: Path to QtSass file. -- dest_file: Path to destination Qt compliant CSS file. -- kwargs: Keyword arguments to pass to sass.compile - -### `compile_filename(input_file, output_file, **kwargs)`: - -Compile and save QtSASS file as Qt compliant CSS. - -Examples: - -```bash ->>> import qtsass ->>> qtsass.compile_filename('dummy.scss', 'dummy.css') +>>> qtsass.compile_filename("dummy.scss", "dummy.css") +>>> css = qtsass.compile_filename("dummy.scss") ``` Arguments: @@ -451,6 +424,9 @@ Arguments: - output_file: Path to write Qt compliant CSS. - kwargs: Keyword arguments to pass to sass.compile +Returns: +- Qt compliant CSS string + ### `compile_dirname(input_dir, output_dir, **kwargs)`: Compiles QtSASS files in a directory including subdirectories. @@ -674,31 +650,16 @@ Arguments: Returns: - Qt compliant CSS string -### `compile_filename(input_file, dest_file, **kwargs)`: - -Compile and save QtSASS file as Qt compliant CSS. - -Examples: - -```bash ->>> import qtsass ->>> qtsass.compile_filename('dummy.scss', 'dummy.css') -``` +### `compile_filename(input_file, output_file=None, **kwargs)`: -Arguments: -- input_file: Path to QtSass file. -- dest_file: Path to destination Qt compliant CSS file. -- kwargs: Keyword arguments to pass to sass.compile - -### `compile_filename(input_file, output_file, **kwargs)`: - -Compile and save QtSASS file as Qt compliant CSS. +Compile and return a QtSASS file as Qt compliant CSS. Optionally save to a file. Examples: ```bash >>> import qtsass ->>> qtsass.compile_filename('dummy.scss', 'dummy.css') +>>> qtsass.compile_filename("dummy.scss", "dummy.css") +>>> css = qtsass.compile_filename("dummy.scss") ``` Arguments: @@ -706,6 +667,9 @@ Arguments: - output_file: Path to write Qt compliant CSS. - kwargs: Keyword arguments to pass to sass.compile +Returns: +- Qt compliant CSS string + ### `compile_dirname(input_dir, output_dir, **kwargs)`: Compiles QtSASS files in a directory including subdirectories. @@ -776,7 +740,7 @@ Please consider becoming a sponsor! %prep -%autosetup -n qtsass-0.3.2 +%autosetup -n qtsass-0.4.0 %build %py3_build @@ -816,5 +780,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.2-1 +* Fri Apr 07 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1 - Package Spec generated @@ -1 +1 @@ -bda3c6c19f4e4a45ebddfa995d106907 qtsass-0.3.2.tar.gz +da3bd7c3c6a4b9a41fdd8bb37e82f0b8 qtsass-0.4.0.tar.gz |