[Python-modules-commits] [python-requirements-detector] 01/01: put CLI tool into Py3 package

Daniel Stender danstender-guest at moszumanska.debian.org
Sat Jun 27 06:54:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

danstender-guest pushed a commit to branch master
in repository python-requirements-detector.

commit 88b98a7b6f239189860bbd105d37eccc37c74374
Author: Daniel Stender <debian at danielstender.com>
Date:   Sat Jun 27 08:30:55 2015 +0200

    put CLI tool into Py3 package
---
 debian/changelog |  2 +-
 debian/control   | 16 ++++------------
 debian/rules     |  8 ++++++--
 3 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b507774..33e4da4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ python-requirements-detector (0.4-1) unstable; urgency=medium
 
   * Initial release (Closes: #788208).
 
- -- Daniel Stender <debian at danielstender.com>  Tue, 23 Jun 2015 11:30:52 +0200
+ -- Daniel Stender <debian at danielstender.com>  Sat, 27 Jun 2015 08:50:08 +0200
diff --git a/debian/control b/debian/control
index 3b117f9..fed0293 100644
--- a/debian/control
+++ b/debian/control
@@ -29,29 +29,21 @@ Architecture: all
 Depends:
  ${misc:Depends},
  ${python:Depends}
-Conflicts:
- python3-requirements-detector
-Replaces:
- python3-requirements-detector
-Description: finds and lists the requirements of a Python project
+Description: finds and lists the requirements of a Python project (Python 2)
  Requirements-detector could be run either as a module or with its CLI tool
  (detect-requirements). It scans for and lists the project's requirements
  out of several sources for them.
  .
- This package contains requirements-detector for Python2.
+ This package contains the modules for Python 2.
 
 Package: python3-requirements-detector
 Architecture: all
 Depends:
  ${misc:Depends},
  ${python3:Depends}
-Conflicts:
- python-requirements-detector
-Replaces:
- python-requirements-detector
-Description: finds and lists the requirements of a Python3 project
+Description: finds and lists the requirements of a Python project
  Requirements-detector could be run either as a module or with its CLI tool
  (detect-requirements). It scans for and lists the project's requirements
  out of several sources for them.
  .
- This package contains requirements-detector for Python3.
+ This package contains the CLI tool and the modules for Python 3.
diff --git a/debian/rules b/debian/rules
index 65a6576..191a24b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,10 @@ DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
+override_dh_auto_install:
+	dh_auto_install
+	rm -rf debian/python-requirements-detector/usr/bin
+
 override_dh_auto_test:
 	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m nose --verbose" dh_auto_test
 
@@ -17,6 +21,6 @@ override_dh_installdocs:
 	dh_installdocs -A README.md
 
 override_dh_installman:
-	txt2man -s 1 -v "python-requirements-detector" -t "detect-requirements" \
+	txt2man -s 1 -v "python3-requirements-detector" -t "detect-requirements" \
 	-r "$(VERSION)" -d "$(DEBDATE)" debian/detect-requirements.txt > .pybuild/detect-requirements.1
-	dh_installman -A .pybuild/detect-requirements.1
+	dh_installman -ppython3-requirements-detector .pybuild/detect-requirements.1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-requirements-detector.git



More information about the Python-modules-commits mailing list