[med-svn] [python-cgcloud] 02/02: Initial upload just happened.

Steffen Möller moeller at moszumanska.debian.org
Sun Jan 15 01:06:56 UTC 2017


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

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

commit 07ef7fe2cf10d66e46b334ff2408c791d76be098
Author: Steffen Moeller <moeller at debian.org>
Date:   Sun Jan 15 02:05:44 2017 +0100

    Initial upload just happened.
---
 debian/README.Debian                 |  8 +++++
 debian/README.source                 |  9 ++++++
 debian/changelog                     |  5 +++
 debian/compat                        |  1 +
 debian/control                       | 50 ++++++++++++++++++++++++++++
 debian/copyright                     | 28 ++++++++++++++++
 debian/patches/adjust_versions.patch | 42 ++++++++++++++++++++++++
 debian/patches/series                |  1 +
 debian/rules                         | 63 ++++++++++++++++++++++++++++++++++++
 debian/source/format                 |  1 +
 debian/source/options                |  1 +
 debian/watch                         |  8 +++++
 12 files changed, 217 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..ef08828
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,8 @@
+python-cgcloud for Debian
+------------------------
+
+This is a very preliminary packaging to get things going. Man pages are still missing.
+And because of incomplete dependencies, yet only the lib and the core modules of this
+package collection are provided.
+
+ -- Steffen Moeller <moeller at debian.org>  Sat, 14 Jan 2017 16:25:53 +0100
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..2de9654
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+python-cgcloud for Debian
+------------------------
+
+Sources were taken directly from the github project, not from pypi. It
+is all a bit awkward in that the source tree is a collection of Python
+packages. The debian/rules file manages, though.
+
+ -- Steffen Moeller <moeller at debian.org>  Sat, 14 Jan 2017 16:25:53 +0100
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9b8d7f4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-cgcloud (1.6.0-1) unstable; urgency=medium
+
+  * Initial release (Closes: #851401)
+
+ -- Steffen Moeller <moeller at debian.org>  Sat, 14 Jan 2017 16:25:53 +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..8823652
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,50 @@
+Source: python-cgcloud
+Section: python
+Priority: optional
+Maintainer: Steffen Moeller <moeller at debian.org>
+Build-Depends: debhelper (>= 9), dh-python, python-all, python-setuptools,
+#python3-all, python3-setuptools,
+   python-concurrent.futures,
+   fabric,
+   python-paramiko,
+   python-subprocess32,
+   python-tabulate,
+   python-yaml
+Standards-Version: 3.9.8
+Homepage: https://github.com/BD2KGenomics/cgcloud/
+X-Python-Version: >= 2.6
+#X-Python3-Version: >= 3.2 # since bd2k is python2 only
+Vcs-Git: https://anonscm.debian.org/git/debian-med//python-cgcloud.git
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-cgcloud.git/
+#Testsuite: autopkgtest-pkg-python
+
+Package: python-cgcloud-lib
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: management of VM for Spark, Jenkins, Mesos in Cloud (Python 2)
+ Someone please add a good description.
+ .
+ This package installs the library for Python 2, Python 3 is not yet supported.
+
+Package: python-cgcloud-core
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: management of VM for Spark, Jenkins, Mesos in Cloud (Python 2)
+ Someone please add a good description.
+ .
+ This package installs the library for Python 2, Python 3 is not yet supported.
+
+Package: python-cgcloud
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python-cgcloud-lib, python-cgcloud-core
+Description: virtual package to combine all of cgcloud (Python 2)
+ Nothing described, yet.
+
+#Package: python3-python-cgcloud
+#Architecture: all
+#Depends: ${python3:Depends}, ${misc:Depends}
+#Suggests: python-python-cgcloud-doc
+#Description: <insert up to 60 chars description> (Python 3)
+# <insert long description, indented with spaces>
+# .
+# This package installs the library for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..19c5a51
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: cgcloud
+Source: https://github.com/BD2KGenomics/cgcloud/
+
+Files: *
+Authors: Hannes Schmidt, Christopher Ketchum
+Copyright: 2011-15 by UCSC Computational Genomics Lab
+License: Apache-2.0
+
+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".
diff --git a/debian/patches/adjust_versions.patch b/debian/patches/adjust_versions.patch
new file mode 100644
index 0000000..4d4f364
--- /dev/null
+++ b/debian/patches/adjust_versions.patch
@@ -0,0 +1,42 @@
+Index: python-cgcloud-1.6.0/core/setup.py
+===================================================================
+--- python-cgcloud-1.6.0.orig/core/setup.py
++++ python-cgcloud-1.6.0/core/setup.py
+@@ -19,14 +19,13 @@ setup( name='cgcloud-core',
+            'console_scripts': [
+                'cgcloud = cgcloud.core.cli:main' ], },
+        install_requires=[ bd2k_python_lib_dep,
+-                          'cgcloud-lib==' + cgcloud_version,
+-                          'futures==3.0.4',
++                         # 'cgcloud-lib==' + cgcloud_version,
++                          'futures>=3.0.4',
+                           # such that cgcloud-lib can use the futures backport for its thread_pool
+                           boto_dep,
+                           fabric_dep,
+-                          'paramiko==1.16.0',
+-                          'futures==3.0.4',
+-                          'PyYAML==3.11',
+-                          'subprocess32==3.2.7',
+-                          'tabulate==0.7.5'],
++                          'paramiko>=1.16.0',
++                          'PyYAML>=3.11',
++                          'subprocess32>=3.2.7',
++                          'tabulate>=0.7.5'],
+        test_suite='cgcloud.core.test' )
+Index: python-cgcloud-1.6.0/version.py
+===================================================================
+--- python-cgcloud-1.6.0.orig/version.py
++++ python-cgcloud-1.6.0/version.py
+@@ -1,8 +1,8 @@
+ cgcloud_version = '1.6.0'
+-bd2k_python_lib_dep = 'bd2k-python-lib>=1.14a1.dev37'
+-boto_dep = 'boto==2.38.0'
+-fabric_dep = 'Fabric==1.10.3'
+-s3am_dep = 's3am==2.0a1.dev105'
++bd2k_python_lib_dep = 'bd2k>=1.14a1.dev37'
++boto_dep = 'boto>=2.38.0'
++fabric_dep = 'Fabric>=1.10.3'
++s3am_dep = 's3am>=2.0a1.dev105'
+ 
+ 
+ def main( ):
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8ccddb0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+adjust_versions.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2077299
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+
+export PYBUILD_NAME=cgcloud-$(SUBPACKAGE)
+export PYBUILD_DISABLE_python3=test
+#export PYBUILD_DISABLE_python2=test
+export PYTHONPATH=..
+
+SUBDIRS=lib core
+
+ifeq (,$(SUBPACKAGE))
+%:
+	for i in $(SUBDIRS); \
+	do \
+		echo "No Subpackage defined - iterating over all" ; \
+		if ! test -L "$$i/debian"; then \
+			echo "I: Creating symbolic links to destination debian folder" ; \
+			(cd $$i && ln -s ../debian .) ; \
+			(cd $$i && ln -s ../version.py .) ; \
+		fi ; \
+		\
+		if test -L "$$i/debian"; then \
+			(cd $$i && ./debian/rules SUBPACKAGE=$$i $@ ) ; \
+		else \
+			echo "W: No links in subdir found, continueing" ; \
+		fi ; \
+	done 
+else
+%:
+	echo "I: PYBUILD_NAME set to $(PYBUILD_NAME)"
+	dh $@ --package=python-cgcloud-$(SUBPACKAGE) --with python2 --buildsystem=pybuild
+	find .. -name "*.deb" | xargs -r mv -t ../..
+endif
+
+
+# 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_clean clean:
+	test -r debian/control && dh_clean
+	for i in $(SUBDIRS); do \
+		(cd "$$i" && if [ -r debian/control ] ; then dh_clean; fi ) ; \
+	done
+	
+	echo "Removing symbolic lincs to debian folder from subdirs"
+	rm -f lib/debian core/debian 
+	find . -name .pybuild -type d |xargs -r rm -r
+	find . -name "*.egg-info" -type d |xargs -r rm -r
+	find . -name .eggs -type d |xargs -r rm -r
+	find . -name __pycache__ -type d |xargs -r rm -r
+	find . -name "*.pyc" |xargs -r rm 
+	find . -name "*.deb" |xargs -r rm 
+	rm -f */MANIFEST.in */version.py
+
+override_dh_auto_test:
+	echo "I: Not testing"
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..55101c2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,8 @@
+version=4
+# GitHub hosted projects
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%<project>-$1.tar.gz%" \
+   https://github.com/BD2KGenomics/cgcloud/tags \
+   (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
+
+# PyPI
+# https://pypi.debian.net/python-cgcloud/python-cgcloud-(.+)\.(?: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-cgcloud.git



More information about the debian-med-commit mailing list