Control: tags 938811 + patch

Dear maintainer,

I've prepared an NMU for webcolors (versioned as 1.5-2.1). The diff
is attached to this message.

Regards.

diff -Nru webcolors-1.5/debian/changelog webcolors-1.5/debian/changelog
--- webcolors-1.5/debian/changelog	2016-10-05 16:25:08.000000000 -0400
+++ webcolors-1.5/debian/changelog	2019-12-20 17:50:30.000000000 -0500
@@ -1,3 +1,10 @@
+webcolors (1.5-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop python2 support; Closes: #938811
+
+ -- Sandro Tosi <[email protected]>  Fri, 20 Dec 2019 17:50:30 -0500
+
 webcolors (1.5-2) unstable; urgency=medium
 
   * debian/control
diff -Nru webcolors-1.5/debian/control webcolors-1.5/debian/control
--- webcolors-1.5/debian/control	2016-10-05 16:24:24.000000000 -0400
+++ webcolors-1.5/debian/control	2019-12-20 17:50:30.000000000 -0500
@@ -2,26 +2,10 @@
 Section: python
 Priority: optional
 Maintainer: Kouhei Maeda <[email protected]>
-Build-Depends: debhelper (>= 8.0.0), python-all, python-setuptools, python3-all, python3-setuptools
+Build-Depends: debhelper (>= 8.0.0), python3-all, python3-setuptools, dh-python
 Standards-Version: 3.9.8
-X-Python-Version: 2.7, >= 3.2
 Homepage: http://www.bitbucket.org/ubernostrum/webcolors/overview/
 
-Package: python-webcolors
-Architecture: all
-Provides: ${python:Provides}
-Depends: ${python:Depends}, ${misc:Depends}
-Description: library of color names and value formats defined by HTML and CSS
- Support is included for the following formats, but this support RGB colorspace
- only.
-  * Specification-defined color names
-  * Six-digit hexadecimal
-  * Three-digit hexadecimal
-  * Integer rgb() triplet
-  * Percentage rgb() triplet
- This module conversion to/from HSL can be handled by the "colorsys" module in
- the Python standard library.
-
 Package: python3-webcolors
 Architecture: all
 Depends: ${python3:Depends}, ${misc:Depends}
diff -Nru webcolors-1.5/debian/rules webcolors-1.5/debian/rules
--- webcolors-1.5/debian/rules	2013-06-06 12:18:25.000000000 -0400
+++ webcolors-1.5/debian/rules	2019-12-20 17:50:24.000000000 -0500
@@ -1,32 +1,5 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
 
 %:
-	dh $@ --with python2,python3
-
-override_dh_auto_build:
-	for py in $(shell pyversions -vr) $(shell py3versions -vr); do \
-		python$$py setup.py build --build-base=build$$py; \
-	done
-
-override_dh_auto_install:
-	python setup.py install --no-compile -O0 --install-layout=deb \
-		--root $(CURDIR)/debian/python-webcolors && \
-	python3 setup.py install --no-compile -O0 --install-layout=deb \
-		--root $(CURDIR)/debian/python3-webcolors
+	dh $@ --with python3 --buildsystem=pybuild
 
-override_dh_auto_clean:
-	dh_clean
-	for py in $(shell pyversions -vr) $(shell py3versions -vr); do \
-		python$$py setup.py clean --build-temp=build && \
-		python$$py setup.py clean --build-temp=build$$py; \
-	done
-	find $(CUDIR) -name "*.pyc" -delete

Reply via email to