~sircmpwn/sr.ht-packages

core.sr.ht-deb: split out python3-srht-dev v2 PROPOSED

Armin Weigl: 1
 split out python3-srht-dev

 7 files changed, 25 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-packages/patches/22595/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH core.sr.ht-deb v2] split out python3-srht-dev Export this patch

Signed-off-by: Armin Weigl <tb46305@gmail.com>
---
v2:
  - add changelog
  - debian/{install => python3-srht.install}
  - don't rely on dh_install resolving globs
 debian/changelog                         |  1 +
 debian/control                           | 15 +++++++++++++++
 debian/not-installed                     |  1 +
 debian/python3-srht-dev.install          |  3 +++
 debian/{links => python3-srht-dev.links} |  0
 debian/python3-srht.install              |  5 +++++
 debian/rules                             |  1 -
 7 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 debian/not-installed
 create mode 100644 debian/python3-srht-dev.install
 rename debian/{links => python3-srht-dev.links} (100%)
 create mode 100755 debian/python3-srht.install

diff --git a/debian/changelog b/debian/changelog
index b8a9af2..4b4210d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ core.sr.ht (0.67.4-2) UNRELEASED; urgency=medium

  [ Armin Weigl ]
  * bump debhelper compat to 13
  * Split out python3-srht-dev

 -- Denis Laxalde <denis@laxalde.org>  Sat, 01 May 2021 09:43:05 +0200

diff --git a/debian/control b/debian/control
index ed36d21..4d320bf 100644
--- a/debian/control
+++ b/debian/control
@@ -28,3 +28,18 @@ Description: shared library for sr.ht (Python 3)
 development projects.
 .
 This package installs the core library for Python 3.

Package: python3-srht-dev
Architecture: all
Depends:
  ${python3:Depends},
  ${misc:Depends},
  python3-srht (= ${binary:Version}),
  cleancss,
  sassc,
  libjs-bootstrap4,
Description: shared library for sr.ht (Python 3) (development files)
 Sourcehut (a.k.a. sr.ht) is a software suite for managing your software
 development projects.
 .
 This package installs the development files for Python 3.
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..53fde12
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1 @@
usr/lib/python3.*/dist-packages/srht/package.json
diff --git a/debian/python3-srht-dev.install b/debian/python3-srht-dev.install
new file mode 100644
index 0000000..937e37f
--- /dev/null
+++ b/debian/python3-srht-dev.install
@@ -0,0 +1,3 @@
usr/lib/python3.*/dist-packages/srht/scss
usr/lib/python3.*/dist-packages/srht/static
usr/lib/python3.*/dist-packages/srht/Makefile
diff --git a/debian/links b/debian/python3-srht-dev.links
similarity index 100%
rename from debian/links
rename to debian/python3-srht-dev.links
diff --git a/debian/python3-srht.install b/debian/python3-srht.install
new file mode 100755
index 0000000..79a2f5c
--- /dev/null
+++ b/debian/python3-srht.install
@@ -0,0 +1,5 @@
#!/bin/sh
echo usr/bin
echo debian/tmp/usr/lib/python3.*/dist-packages/srht-*.egg-info|tr ' ' '\n'
echo debian/tmp/usr/lib/python3.*/dist-packages/srht/templates|tr ' ' '\n'
find debian/tmp -name '*.py' -or -name '*.pyc'
diff --git a/debian/rules b/debian/rules
index 39cc431..166a2a4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,6 @@

export PKGVER=$(shell dpkg-parsechangelog -S Version | cut -d'-' -f1)

export PYBUILD_NAME=srht
export PYBUILD_DISABLE=test

%:
-- 
2.30.2
Applied this patch and respective ones in other repos. All builds have
run and packages should now be available in the mirror (except hg.sr.ht,
for which builds is not possible on my side).

While I'm open to contributions to this project, this one was kind of a
hassle to manage on my side; so I'd appreciate if we could refrain from
such large/invasive changes unless they are really needed.