[Python-modules-commits] [robot-detection] 03/03: Add Debian packaging files
Jonas Meurer
mejo at moszumanska.debian.org
Sat Sep 16 00:54:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
mejo pushed a commit to branch master
in repository robot-detection.
commit 1bae93c4db71e4ab0ebb15dceea90f421a6a38e0
Author: Jonas Meurer <jonas at freesources.org>
Date: Fri Sep 15 14:15:23 2017 +0200
Add Debian packaging files
---
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 42 ++++++++++++++++++++++++++++++++++++++++++
debian/copyright | 32 ++++++++++++++++++++++++++++++++
debian/rules | 17 +++++++++++++++++
debian/watch | 3 +++
6 files changed, 100 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..050e653
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+robot-detection (0.4.0-1) unstable; urgency=medium
+
+ * Initial release. (closes: #875869)
+
+ -- Jonas Meurer <mejo at debian.org> Fri, 15 Sep 2017 14:21:35 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..32727c3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: robot-detection
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Jonas Meurer <mejo at debian.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+ dh-python,
+ python-all,
+ python-setuptools,
+ python-six,
+ python3-all,
+ python3-setuptools,
+ python3-six
+Standards-Version: 4.1.0
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/robot-detection.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/robot-detection.git
+Homepage: https://github.com/rory/robot-detection
+Testsuite: autopkgtest-pkg-python
+X-Python-Version: >=2.7
+X-Python3-Version: >=3.4
+
+Package: python-robot-detection
+Architecture: all
+Depends: python-six,
+ ${misc:Depends},
+ ${python:Depends}
+Description: Detect web crawlers from HTTP UserAgent (Python 2 version)
+ This Python module detects if a given HTTP User Agent is a web crawler.
+ It uses the list of registered robots from the robotstxt.org.
+ .
+ This package contains the Python 2 version of the library.
+
+Package: python3-robot-detection
+Architecture: all
+Depends: python3-six,
+ ${misc:Depends},
+ ${python3:Depends}
+Description: Detect web crawlers from HTTP UserAgent (Python 3 version)
+ This Python module detects if a given HTTP User Agent is a web crawler.
+ It uses the list of registered robots from the robotstxt.org.
+ .
+ This package contains the Python 3 version of the library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3a92d10
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: https://github.com/rory/robot-detection
+Author: Rory McCann <rory at technomancy.org>
+
+Files: *
+Copyright: © 2012-2017 Rory McCann <rory at technomancy.org>
+License: GPL-3
+
+Files: debian/*
+Copyright: © 2017 Jonas Meurer <mejo at debian.org>
+License: GPL-2
+
+License: GPL-3
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, version 3.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in the /usr/share/common-licenses/GPL-3 file.
+
+License: GPL-2
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, version 2.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in the /usr/share/common-licenses/GPL-2 file.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3803a6c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=robot-detection
+
+%:
+ dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ set -e; \
+ for python in $(shell pyversions -r) $(shell py3versions -r); do \
+ PYTHONPATH="." $$python setup.py test;\
+ done
+endif
+
+get-orig-source:
+ uscan --verbose --rename
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9858340
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+https://github.com/rory/robot-detection/releases \
+.*[^n]/(?:|v|version-|r|REL_|rel-|(?:robot-detection)(?:_|-))(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/robot-detection.git
More information about the Python-modules-commits
mailing list