Import Debian changes 0.21.0-ok1

libsass-python (0.21.0-ok1) yangtze; urgency=medium

  * Build for openkylin.
This commit is contained in:
sufang 2022-10-11 10:19:07 +08:00 committed by su-fang
parent 7f76b7e4da
commit ee185d9486
14 changed files with 198 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
libsass-python (0.21.0-ok1) yangtze; urgency=medium
* Build for openkylin.
-- sufang <sufang@kylinos.cn> Tue, 11 Oct 2022 10:19:07 +0800

47
debian/control vendored Normal file
View File

@ -0,0 +1,47 @@
Source: libsass-python
Section: python
Priority: optional
Maintainer: OpenKylin Developers <packaging@lists.openkylin.top>
Build-Depends:
debhelper-compat (= 12),
dh-python,
python3-all-dev,
python3-setuptools,
python3-six,
python3-sphinx,
python3-werkzeug,
python3-flake8,
python3-pytest,
python3-doc,
python-flask-doc,
python-setuptools-doc,
libsass-dev
Standards-Version: 4.6.0
Vcs-Browser: https://gitee.com/openkylin/libsass-python
Vcs-Git: https://gitee.com/openkylin/libsass-python.git
Homepage: https://sass.github.io/libsass-python
Rules-Requires-Root: no
X-Python-Version: >= 2.6
X-Python3-Version: >= 3.2
Package: python3-libsass
Architecture: any
Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
Description: SASS for Python 3: a straightforward binding of libsass for Python
This package provides a simple Python 3 extension module sass which is binding
Libsass (written in C/C++ by Hampton Catlin and Aaron Leung). It's very
straightforward and there isn't any headache related Python
distribution/deployment.
That means you can add just libsass into your setup.py's install_requires list
or requirements.txt file. Need no Ruby nor Node.js.
Package: pysassc
Section: web
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}, python3-libsass
Description: SASS for Python: command line utility for libsass
This package provides a simple Python script to access libsass
functionnalities.
Libsass (written in C/C++ by Hampton Catlin and Aaron Leung). It's very
straightforward and there isn't any headache related Python
distribution/deployment.

86
debian/copyright vendored Normal file
View File

@ -0,0 +1,86 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libsass-python
Source: <url://example.com>
#
# Please double check copyright with the licensecheck(1) command.
Files: .ackrc
.coveragerc
.gitignore
.gitmodules
.pre-commit-config.yaml
CODE_OF_CONDUCT.md
CONTRIBUTING.rst
MANIFEST.in
README.rst
_sass.c
azure-pipelines.yml
bin/build-manylinux-wheels
bin/download-windows-wheels
docs/Makefile
docs/changes.rst
docs/conf.py
docs/frameworks/flask.rst
docs/index.rst
docs/make.bat
docs/pysassc.rst
docs/sass.rst
docs/sassutils.rst
docs/sassutils/builder.rst
docs/sassutils/distutils.rst
docs/sassutils/wsgi.rst
pysassc.py
requirements-dev.txt
sass.py
sassc.py
sasstests.py
sassutils/__init__.py
sassutils/_compat.py
sassutils/builder.py
sassutils/distutils.py
sassutils/wsgi.py
setup.cfg
setup.py
test/_f.scss
test/a.scss
test/b.scss
test/c.scss
test/d.scss
test/e.scss
test/g.scss
test/h.sass
test/subdir/_sub.scss
test/subdir/recur.scss
testpkg/setup.py
testpkg/testpkg/__init__.py
testpkg/testpkg/static/css/README
testpkg/testpkg/static/scss/a.scss
tox.ini
Copyright: __NO_COPYRIGHT_NOR_LICENSE__
License: __NO_COPYRIGHT_NOR_LICENSE__
#----------------------------------------------------------------------------
# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
# license/copyright files.
#----------------------------------------------------------------------------
# License file: LICENSE
Copyright (c) 2015 Hong Minhee <https://hongminhee.org/>
.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

1
debian/libsass-python.changelog vendored Symbolic link
View File

@ -0,0 +1 @@
../docs/changes.rst

2
debian/not-installed vendored Normal file
View File

@ -0,0 +1,2 @@
usr/bin/sassc
usr/lib/*/dist-packages/__pycache__/*.pyc

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
# You must remove unused comment lines for the released package.

1
debian/pysassc.install vendored Normal file
View File

@ -0,0 +1 @@
usr/bin/pysassc

1
debian/pysassc.manpages vendored Normal file
View File

@ -0,0 +1 @@
debian/tmp/usr/share/man/man1/pysassc.1

4
debian/python3-libsass.install vendored Normal file
View File

@ -0,0 +1,4 @@
usr/lib/python3*/*-packages/*.py
usr/lib/python3*/*-packages/_sass*.so
usr/lib/python3*/*-packages/*.egg-info/
usr/lib/python3*/*-packages/sassutils/

1
debian/python3-libsass.manpages vendored Normal file
View File

@ -0,0 +1 @@
usr/share/man/man3/libsass.3

39
debian/rules vendored Executable file
View File

@ -0,0 +1,39 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
export PYTHON_EGG_CACHE=$(CURDIR)/debian/tmp
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export SYSTEM_SASS = 1
%: .libsass-upstream-version
dh $@ --with python3 --buildsystem=pybuild
.libsass-upstream-version:
dpkg-query -f '$${Version}\n' -W libsass-dev|sed 's/-.*//' > .libsass-upstream-version
override_dh_auto_build:
pybuild --build -p "$(shell py3versions -vr)"
# build doc once
pybuild -s custom --build -p $(shell py3versions -vd) \
--build-args="env PYTHONPATH={build_dir} python3 -m sphinx -N -bman docs/ build/man"
override_dh_auto_install:
dh_auto_install -O--buildsystem=pybuild
mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1
mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man3
cp $(CURDIR)/build/man/pysassc.1 $(CURDIR)/debian/tmp/usr/share/man/man1/
cp $(CURDIR)/build/man/libsass.3 $(CURDIR)/debian/tmp/usr/share/man/man3/
rm $(CURDIR)/debian/tmp/usr/lib/python*/dist-packages/sasstests.py
sed -i '1c#!/usr/bin/python3' $(CURDIR)/debian/tmp/usr/bin/pysassc
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# Skip DistutilsTestCase.* to not rebuild sass again
pybuild -s custom --test -p "$(shell py3versions -vr)" \
--test-args="cd {build_dir}; \
{interpreter} -m pytest -k 'not DistutilsTestCase' sasstests.py"
endif
override_dh_auto_clean:
dh_auto_clean -O--buildsystem=pybuild
rm -fr libsass.egg-info .libsass-upstream-version

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

5
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,5 @@
---
Bug-Database: https://github.com/dahlia/libsass-python/issues
Bug-Submit: https://github.com/dahlia/libsass-python/issues/new
Repository: https://github.com/dahlia/libsass-python.git
Repository-Browse: https://github.com/dahlia/libsass-python

4
debian/watch vendored Normal file
View File

@ -0,0 +1,4 @@
version=4
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%" \
https://github.com/dahlia/libsass-python/tags \
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate