[Python-modules-commits] [straight.plugin] 01/01: Some fixes before first release

Sergio Durigan Junior sergiodj-guest at moszumanska.debian.org
Sat Jul 2 20:56:13 UTC 2016


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

sergiodj-guest pushed a commit to branch master
in repository straight.plugin.

commit df501404760d2b7cd1cd576ace78deeef89cf3f0
Author: Sergio Durigan Junior <sergiodj at sergiodj.net>
Date:   Sat Jul 2 16:49:12 2016 -0400

    Some fixes before first release
    
    - Remove unnecessary line on debian/changelog about git-dpm
    
    - Improve dh_auto_test rule by taking into account DEB_BUILD_OPTIONS
      and using PYBUILD_SYSTEM=custom
---
 debian/changelog | 1 -
 debian/rules     | 9 +++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e9f5fad..b0e3962 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,5 @@
 straight.plugin (1.4.1-1) unstable; urgency=medium
 
-  * Initialize git-dpm
   * Initial release of straight.plugin. (Closes: #829153)
 
  -- Sergio Durigan Junior <sergiodj at sergiodj.net>  Fri, 01 Jul 2016 18:40:42 -0400
diff --git a/debian/rules b/debian/rules
index d61e1a5..332af14 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,5 +10,10 @@ override_dh_auto_build:
 	PYTHONPATH=../ $(MAKE) -C docs/ html man
 
 override_dh_auto_test:
-	python setup.py test
-	python3 setup.py test
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="{interpreter} setup.py test" \
+	dh_auto_test
+else
+	@echo "Skipping testsuite as DEB_BUILD_OPTIONS=nocheck is set"
+endif

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



More information about the Python-modules-commits mailing list