[Python-modules-commits] [pytds] 08/08: Initial packaging

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Sat Mar 11 22:26:53 UTC 2017


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

mans0954 pushed a commit to branch master
in repository pytds.

commit a110c0734dbaa61226f19c44a583c079317197ae
Author: Christopher Hoskin <christopher.hoskin at gmail.com>
Date:   Sat Mar 11 22:24:21 2017 +0000

    Initial packaging
---
 debian/changelog               |  2 +-
 debian/control                 | 36 +++++++++++++++++++++----
 debian/copyright               | 61 ++++++++++++++++++++++++++++++++++++++++++
 debian/python-tds-doc.doc-base |  9 +++++++
 debian/python-tds-doc.docs     |  1 +
 debian/rules                   | 10 +++++--
 debian/tests/control           |  6 +++++
 debian/watch                   |  3 +++
 8 files changed, 120 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0a85df0..b15f0cb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
 pytds (1.8.2-1) unstable; urgency=low
 
-  * source package automatically created by stdeb 0.8.5
+  * source package automatically created by stdeb 0.8.5. Closes: #857458.
 
  -- Christopher Hoskin <mans0954 at debian.org>  Sat, 11 Mar 2017 20:12:33 +0000
diff --git a/debian/control b/debian/control
index 42ad78c..ba466cd 100644
--- a/debian/control
+++ b/debian/control
@@ -1,18 +1,44 @@
 Source: pytds
-Maintainer: Christopher Hoskin <mans0954 at debian.org>
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Christopher Hoskin <mans0954 at debian.org>
 Section: python
 Priority: optional
-Build-Depends: dh-python, python-setuptools (>= 0.6b3), python3-setuptools, python-all (>= 2.6.6-3), python3-all, debhelper (>= 9)
-Standards-Version: 3.9.6
+Build-Depends: dh-python, python-setuptools, python3-setuptools, python-all, python3-all, debhelper (>= 9),
+ python-nose, python3-nose, python-sphinx, python3-six
+Standards-Version: 3.9.8
 Homepage: https://github.com/denisenkom/pytds
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pytds.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/pytds.git
+
 
 Package: python-tds
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}
-Description: Python DBAPI driver for MSSQL using pure Python TDS (Tabular
+Description: Python DBAPI driver for MSSQL using pure Python TDS (Python 2)
+ A platform independent Python DBAPI driver for Microsoft SQL Server using pure
+ Python TDS (Tabular Data Stream) protocol implementation. It doesn't depend on
+ ADO or FreeTDS.
+ .
+ This is the Python 2 version of the package.
 
 Package: python3-tds
 Architecture: all
 Depends: ${misc:Depends}, ${python3:Depends}
-Description: Python DBAPI driver for MSSQL using pure Python TDS (Tabular
+Description: Python DBAPI driver for MSSQL using pure Python TDS (Python 3)
+ A platform independent Python DBAPI driver for Microsoft SQL Server using pure
+ Python TDS (Tabular Data Stream) protocol implementation. It doesn't depend on
+ ADO or FreeTDS.
+ .
+ This is the Python 3 version of the package.
+
+Package: python-tds-doc
+Architecture: all
+Section: doc
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Description: Python DBAPI driver for MSSQL using pure Python TDS (documentation)
+ A platform independent Python DBAPI driver for Microsoft SQL Server using pure
+ Python TDS (Tabular Data Stream) protocol implementation. It doesn't depend on
+ ADO or FreeTDS.
+ .
+ This is the documentation package.
 
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..652bd6e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,61 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pytds
+Source: https://github.com/denisenkom/pytds
+
+Files: *
+Copyright: 2014 Mikhail Denisenko <denisenkom at gmail.com>
+License: Expat
+
+Files: pytds/lcid.py
+Copyright: 2010 Michael Murr
+License: LGPL-3+
+
+Files: pytds/ntlm.py
+Copyright: Matthijs Mullender
+License: LGPL-3+
+Comment: Author not specified in file, but appears to have been adapted from
+ python-ntlm https://github.com/mullender/python-ntlm
+
+
+Files: debian/*
+Copyright: 2017 Christopher Hoskin <mans0954 at debian.org>
+License: Expat
+
+License: Expat
+ Copyright (c) 2014 Mikhail Denisenko
+ .
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+License: LGPL-3+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 3 of the License, or (at your option) any later version.
+ .
+ This package 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-3".
+
diff --git a/debian/python-tds-doc.doc-base b/debian/python-tds-doc.doc-base
new file mode 100644
index 0000000..a159770
--- /dev/null
+++ b/debian/python-tds-doc.doc-base
@@ -0,0 +1,9 @@
+Document: pytds
+Title: pytds documentation
+Author: Mikhail Denisenko <denisenkom at gmail.com>
+Abstract: This document describes how to use python-tds
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-tds-doc/html/index.html
+Files: /usr/share/doc/python-tds-doc/html/*.html     
diff --git a/debian/python-tds-doc.docs b/debian/python-tds-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-tds-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
index 63cb98e..cbb2ab9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,13 @@
 
 # This file was automatically generated by stdeb 0.8.5 at
 # Sat, 11 Mar 2017 20:12:33 +0000
-export PYBUILD_NAME=python-tds
+export PYBUILD_NAME=tds
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build: export http_proxy=127.0.0.1:9
+override_dh_auto_build: export https_proxy=127.0.0.1:9
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. sphinx-build -N -bhtml docs/ build/html # HTML generator
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..565ae46
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+Test-Command: set -e ; for py in $(pyversions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import pytds; print pytds" ; done
+Depends: python-all, python-tds
+
+Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import pytds; print(pytds)" ; done
+Depends: python3-all, python3-tds
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..552ab05
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/pytds-$1\.tar\.gz/ \
+  https://github.com/denisenkom/pytds/tags .*/v?(\d\S+)\.tar\.gz

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



More information about the Python-modules-commits mailing list