1
0
Fork 0

Adding debian version 0.1.0-1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-30 19:00:59 +02:00
parent 638d6148c0
commit 2e992d03e1
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
11 changed files with 104 additions and 0 deletions

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
sortxml (0.1.0-1) unstable; urgency=low
* Initial upload to sid.
-- Daniel Baumann <daniel@debian.org> Fri, 30 May 2025 18:55:56 +0200

26
debian/control vendored Normal file
View file

@ -0,0 +1,26 @@
Source: sortxml
Section: python
Priority: optional
Maintainer: Daniel Baumann <daniel@debian.org>
Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
pybuild-plugin-pyproject,
python3-all,
python3-dateutil,
python3-setuptools,
Rules-Requires-Root: no
Standards-Version: 4.7.2
Homepage: https://github.com/Kopachris/sortxml
Vcs-Browser: https://forgejo.debian.net/python/sortxml
Vcs-Git: https://forgejo.debian.net/python/sortxml
Package: python3-sortxml
Section: python
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
Description: simple XML element sorter
sortxml is a simple XML element sorter. It can be used as a Python module
(sortxml.sort_xml) or by running standalone from the command-line.

38
debian/copyright vendored Normal file
View file

@ -0,0 +1,38 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: treelib
Upstream-Contact: https://github.com/Kopachris/sortxml/issues
Source: https://github.com/Kopachris/sortxml/tags
Files: *
Copyright: 2022 Chris Koch <kopachris@gmail.com>
License: BSD-3-clause
Files: debian/*
Copyright: 2025 Daniel Baumann <daniel@debian.org>
License: BSD-3-clause
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

3
debian/local/bin/sortxml vendored Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
python3 -m sortxml ${@}

View file

@ -0,0 +1,12 @@
Author: Daniel Baumann <daniel@debian.org>
Description: Correcting python interpreter.
diff -Naurp sortxml.orig/sortxml.py sortxml/sortxml.py
--- sortxml.orig/sortxml.py
+++ sortxml/sortxml.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python310
+#!/usr/bin/python3
"""Simple XML element sorter.

1
debian/patches/series vendored Normal file
View file

@ -0,0 +1 @@
debian/0001-python-shebang.patch

1
debian/python3-sortxml.install vendored Normal file
View file

@ -0,0 +1 @@
debian/local/bin/* /usr/bin

10
debian/rules vendored Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/make -f
export PYBUILD_NAME=sortxml
%:
dh ${@} --buildsystem=pybuild
execute_after_dh_auto_clean:
# help pybuild
rm -rf *.egg-info

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/Kopachris/sortxml/issues
Bug-Submit: https://github.com/Kopachris/sortxml/issues/new
Repository: https://github.com/Kopachris/sortxml.git
Repository-Browse: https://github.com/Kopachris/sortxml

2
debian/watch vendored Normal file
View file

@ -0,0 +1,2 @@
version=4
https://github.com/Kopachris/sortxml/tags .*/v?(\d.*)@ARCHIVE_EXT@