1
0
Quellcode durchsuchen

Packaging cleanup

* Override locale settings in test only
  Less noise in the build log, not zero though.
* Update autopkgtest dependencies
* Add upstream metadata information
* Improve dh_gencontrol usage
Christoph Biedl vor 2 Tagen
Ursprung
Commit
a27103980b
3 geänderte Dateien mit 13 neuen und 3 gelöschten Zeilen
  1. 6 3
      debian/rules
  2. 1 0
      debian/tests/control
  3. 6 0
      debian/upstream/metadata

+ 6 - 3
debian/rules

@@ -1,12 +1,15 @@
 #!/usr/bin/make -f
 
-export LC_ALL = en_US.UTF-8
-
 libmagic_package := $(shell dpkg-query '-f$${Depends}' -W libmagic-dev | awk '{print $$1}')
 
 %:
 	dh $@ --buildsystem=pybuild --test-pytest --with python3
 
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	LC_ALL=en_US.UTF-8 $(DH_OVERRIDDEN_COMMAND)
+endif
+
 override_dh_gencontrol:
 	echo "magic:Depends=$(libmagic_package)" >>debian/python3-magic.substvars
-	dh_gencontrol $@
+	$(DH_OVERRIDDEN_COMMAND)

+ 1 - 0
debian/tests/control

@@ -1,4 +1,5 @@
 Tests: run-testsuite
 Depends: @,
+    python3-pytest,
 Restrictions:
     allow-stderr,

+ 6 - 0
debian/upstream/metadata

@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/ahupp/python-magic/issues
+Bug-Submit: https://github.com/ahupp/python-magic/issues/new
+Changelog: https://github.com/ahupp/python-magic/blob/master/CHANGELOG
+Documentation: https://github.com/ahupp/python-magic/blob/master/README.md
+Repository-Browse: https://github.com/ahupp/python-magic
+Repository: https://github.com/ahupp/python-magic