[med-svn] [python-bd2k] 02/02: Preparing for initial release

Steffen Möller moeller at moszumanska.debian.org
Sat Jan 14 09:08:54 UTC 2017


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

moeller pushed a commit to branch master
in repository python-bd2k.

commit ed5b3e70b7e3de7554f699f741a342ea7971b0c6
Author: Steffen Moeller <moeller at debian.org>
Date:   Sat Jan 14 09:52:36 2017 +0100

    Preparing for initial release
---
 .gitignore                                        |  2 +
 debian/README.Debian                              |  6 +++
 debian/README.source                              | 10 ++++
 debian/changelog                                  |  5 ++
 debian/compat                                     |  1 +
 debian/control                                    | 48 +++++++++++++++++++
 debian/copyright                                  | 56 +++++++++++++++++++++++
 debian/patches/accept_any_boto.patch              | 19 ++++++++
 debian/patches/change_package_name_to_bd2k.patch  | 13 ++++++
 debian/patches/series                             |  3 ++
 debian/patches/setupcfg_pytest_section_name.patch | 10 ++++
 debian/rules                                      | 28 ++++++++++++
 debian/source/format                              |  1 +
 debian/source/options                             |  1 +
 debian/watch                                      |  9 ++++
 15 files changed, 212 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1ee6269
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+# Quilt
+.pc
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..4113087
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,6 @@
+bd2k-python-lib for Debian
+-------------------------
+
+The package ships with automated tests which yet need to be activated.
+
+ -- Steffen Moeller <moeller at debian.org>  Fri, 13 Jan 2017 19:31:02 +0100
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..33b0774
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,10 @@
+bd2k-python-lib for Debian
+-------------------------
+
+A series of files were removed from the upstream source tree to achieve repeatable builds
+
+  rm -r .eggs/
+
+
+ -- Steffen Moeller <moeller at debian.org>  Fri, 13 Jan 2017 19:31:02 +0100
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..633c3d4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-bd2k (1.14~alpha1.37-1) unstable; urgency=medium
+
+  * Initial release (Closes: #851341)
+
+ -- Steffen Moeller <moeller at debian.org>  Fri, 13 Jan 2017 19:31:02 +0100
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..d2a11ee
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,48 @@
+Source: python-bd2k
+Section: python
+Priority: extra
+Maintainer: Steffen Moeller <moeller at debian.org>
+Build-Depends: debhelper (>= 9), dh-python, python-all, python-setuptools, python3-all, python3-setuptools,
+  python-boto,python3-boto,
+  python-dill,python3-dill,
+  python-lockfile,python3-lockfile,
+  python-mock,python3-mock,
+  python-pytest,python3-pytest
+Standards-Version: 3.9.8
+Homepage: https://github.com/BD2KGenomics/bd2k-python-lib
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+Vcs-Git: https://anonscm.debian.org/git/debian-med/python-bd2k.git
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-bd2k.git/
+#Testsuite: autopkgtest-pkg-python
+
+Package: python-bd2k
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: utilities for BD2KGenomics (Python 2)
+ This package provides a range of smallish software solutions
+ like hashes and hash tables or iterators that are of importance
+ to a range of reverse dependencies of the BD2KGenomics
+ repository.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-bd2k
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: utilities for BD2KGenomics (Python 3)
+ This package provides a range of smallish software solutions
+ like hashes and hash tables or iterators that are of importance
+ to a range of reverse dependencies of the BD2KGenomics
+ repository.
+ .
+ This package installs the library for Python 3.
+
+#Package: python-bd2k-python-lib-doc
+#Architecture: all
+#Section: doc
+#Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+#Description: <insert up to 60 chars description> (common documentation)
+# <insert long description, indented with spaces>
+# .
+# This is the common documentation package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..995f85e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,56 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: bd2k-python-lib
+Source: https://github.com/BD2KGenomics/bd2k-python-lib/
+
+Files: *
+Copyright: 2015 Hannes Schmidt <hannes at ucsc.edu>
+License: Apache-2.0
+
+Files: src/bd2k/util/d32.py
+       src/bd2k/util/d64.py
+Copyright: 2015 Hannes Schmidt <hannes at ucsc.edu>
+           2014 Dominic Tarr
+License: Apache-2.0
+
+Files: src/bd2k/util/humanize.py
+Copyright: Giampaolo Rodola <g.rodola at gmail.com>
+License: MIT
+
+Files: debian/*
+Copyright: 2017 Steffen Moeller <moeller at debian.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ https://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
+
+License: MIT
+ 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.
diff --git a/debian/patches/accept_any_boto.patch b/debian/patches/accept_any_boto.patch
new file mode 100644
index 0000000..cb83227
--- /dev/null
+++ b/debian/patches/accept_any_boto.patch
@@ -0,0 +1,19 @@
+Index: bd2k-python-lib-1.14a1.dev29/setup.py
+===================================================================
+--- bd2k-python-lib-1.14a1.dev29.orig/setup.py
++++ bd2k-python-lib-1.14a1.dev29/setup.py
+@@ -17,10 +17,10 @@ kwargs = dict(
+     packages=find_packages( 'src' ),
+     install_requires=[ ],
+     tests_require=[
+-        'pytest==2.7.2',
+-        'mock==1.0.1',
+-        'lockfile==0.11.0',
+-        'boto==2.38.0' ],
++        'pytest>=2.7.2',
++        'mock>=1.0.1',
++        'lockfile>=0.11.0',
++        'boto>=2.38.0' ],
+     namespace_packages=[ 'bd2k' ] )
+ 
+ from setuptools.command.test import test as TestCommand
diff --git a/debian/patches/change_package_name_to_bd2k.patch b/debian/patches/change_package_name_to_bd2k.patch
new file mode 100644
index 0000000..6e3dc33
--- /dev/null
+++ b/debian/patches/change_package_name_to_bd2k.patch
@@ -0,0 +1,13 @@
+Index: python-bd2k/setup.py
+===================================================================
+--- python-bd2k.orig/setup.py
++++ python-bd2k/setup.py
+@@ -5,7 +5,7 @@ assert sys.version_info >= (2, 6)
+ from setuptools import setup, find_packages
+ 
+ kwargs = dict(
+-    name="bd2k-python-lib",
++    name="bd2k",
+     version="1.14a1",
+ 
+     author='Hannes Schmidt',
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a2e7d41
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+accept_any_boto.patch
+change_package_name_to_bd2k.patch
+setupcfg_pytest_section_name.patch
diff --git a/debian/patches/setupcfg_pytest_section_name.patch b/debian/patches/setupcfg_pytest_section_name.patch
new file mode 100644
index 0000000..52de248
--- /dev/null
+++ b/debian/patches/setupcfg_pytest_section_name.patch
@@ -0,0 +1,10 @@
+Index: bd2k-python-lib-1.14a1.dev29/setup.cfg
+===================================================================
+--- bd2k-python-lib-1.14a1.dev29.orig/setup.cfg
++++ bd2k-python-lib-1.14a1.dev29/setup.cfg
+@@ -1,4 +1,4 @@
+-[pytest]
++[tool:pytest]
+ python_files = *.py
+ addopts = --doctest-modules
+ 
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4c2d3a5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME=bd2k-python-lib
+
+export PYBUILD_DESTDIR_python2=debian/python-bd2k/
+#export PYBUILD_DESTDIR_python2-dbg=debian/python-bd2k-dbg/
+export PYBUILD_DESTDIR_python3=debian/python3-bd2k/
+#export PYBUILD_DESTDIR_python3-dbg=debian/python3-bd2k-dbg/
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+
+# If you need to rebuild the Sphinx documentation
+# Add spinxdoc to the dh --with line
+#override_dh_auto_build:
+#	dh_auto_build
+#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        docs/ build/html # HTML generator
+#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman        docs/ build/man # Manpage generator
+
+
+override_dh_auto_test:
+	echo "Not testing this time."
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf src/bd2k.egg-info
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..cb61fa5
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore = "^[^/]*[.]egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9954f2a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,9 @@
+version=4
+# GitHub hosted projects
+#opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%<project>-$1.tar.gz%" \
+#   https://github.com/<user>/bd2k-python-lib/tags \
+#   (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
+
+# PyPI
+opts="uversionmangle=s%a(\d*).dev(\d*)%~alpha$1.$2%" \
+   https://pypi.debian.net/bd2k-python-lib/bd2k-python-lib-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-bd2k.git



More information about the debian-med-commit mailing list