[python-pymeasure] 01/02: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Jul 23 12:09:34 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository python-pymeasure.

commit 596b308ad9f950e185e21f86b165bbdae9ee3079
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sun Jul 23 11:26:07 2017 +0100

    Initial debianization
---
 debian/changelog                              |  5 +++
 debian/compat                                 |  1 +
 debian/control                                | 58 +++++++++++++++++++++++++++
 debian/copyright                              | 30 ++++++++++++++
 debian/gbp.conf                               |  7 ++++
 debian/patches/No-privacy-breach.patch        | 28 +++++++++++++
 debian/patches/No-pytest-conftest.patch       | 24 +++++++++++
 debian/patches/series                         |  2 +
 debian/python-pymeasure-doc.doc-base          |  9 +++++
 debian/python-pymeasure-doc.docs              |  1 +
 debian/python-pymeasure-doc.lintian-overrides |  2 +
 debian/rules                                  | 26 ++++++++++++
 debian/source/format                          |  1 +
 debian/source/options                         |  1 +
 debian/tests/control                          |  9 +++++
 debian/watch                                  |  3 ++
 16 files changed, 207 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d4087aa
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-pymeasure (0.4.5-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #863604)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Sun, 23 Jul 2017 11:22:33 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f93d061
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,58 @@
+Source: python-pymeasure
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-python,
+               dpkg-dev (>= 1.17.14),
+               python3-all,
+               python3-numpy,
+               python3-pandas,
+               python3-pyqtgraph (>= 0.9.10),
+               python3-pytest <!nocheck>,
+               python3-pyvisa,
+               python3-serial (>= 2.7),
+               python3-setuptools,
+               python3-sphinx <!nodoc>,
+               python3-sphinx-rtd-theme <!nodoc>,
+               sphinx-common
+Standards-Version: 4.0.0
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/python-pymeasure.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-pymeasure.git
+Homepage: https://github.com/ralph-group/pymeasure
+
+Package: python3-pymeasure
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-pymeasure-doc <!nodoc>
+Description: scientific measurement library for Python
+ PyMeasure makes scientific measurements easy to set up and run.
+ .
+ The package contains a repository of instrument classes and a system for
+ running experiment procedures, which provides graphical interfaces for
+ graphing live data and managing queues of experiments. Both parts of the
+ package are independent, and when combined provide all the necessary
+ requirements for advanced measurements with only limited coding.
+ .
+ This package provides the modules for Python 3.
+
+Package: python-pymeasure-doc
+Architecture: all
+Multi-Arch: foreign
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for PyMeasure
+ PyMeasure makes scientific measurements easy to set up and run.
+ .
+ The package contains a repository of instrument classes and a system for
+ running experiment procedures, which provides graphical interfaces for
+ graphing live data and managing queues of experiments. Both parts of the
+ package are independent, and when combined provide all the necessary
+ requirements for advanced measurements with only limited coding.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9e0f3cf
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PyMeasure
+Source: https://pypi.python.org/pypi/PyMeasure
+
+Files: *
+Copyright: 2013-2017 PyMeasure Developers
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Expat
+
+License: Expat
+ 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/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/patches/No-privacy-breach.patch b/debian/patches/No-privacy-breach.patch
new file mode 100644
index 0000000..cdbf9c7
--- /dev/null
+++ b/debian/patches/No-privacy-breach.patch
@@ -0,0 +1,28 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 23 Jul 2017 13:00:36 +0100
+Subject: No privacy breach
+
+---
+ docs/index.rst | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+diff --git a/docs/index.rst b/docs/index.rst
+index 77dd724..93c0b3b 100644
+--- a/docs/index.rst
++++ b/docs/index.rst
+@@ -16,15 +16,6 @@ Installing Python and PyMeasure are demonstrated in the :doc:`Quick Start guide
+ 
+ PyMeasure is currently under active development, so please report any issues you experience on our `Issues page`_.
+ 
+-.. image:: https://ci.appveyor.com/api/projects/status/hcj2n2a7l97wfbb8/branch/master?svg=true
+-    :target: https://ci.appveyor.com/project/cjermain/pymeasure
+-
+-.. image:: https://travis-ci.org/ralph-group/pymeasure.svg?branch=master
+-    :target: https://travis-ci.org/ralph-group/pymeasure
+-
+-.. image:: https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat
+-    :target: http://pymeasure.readthedocs.org/en/latest/
+-
+ .. _Issues page: https://github.com/ralph-group/pymeasure/issues
+ 
+ 
diff --git a/debian/patches/No-pytest-conftest.patch b/debian/patches/No-pytest-conftest.patch
new file mode 100644
index 0000000..9122a11
--- /dev/null
+++ b/debian/patches/No-pytest-conftest.patch
@@ -0,0 +1,24 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 23 Jul 2017 12:18:00 +0100
+Subject: No pytest conftest
+
+---
+ pymeasure/experiment/tests/test_workers.py | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/pymeasure/experiment/tests/test_workers.py b/pymeasure/experiment/tests/test_workers.py
+index 2fad5ee..dc474ef 100644
+--- a/pymeasure/experiment/tests/test_workers.py
++++ b/pymeasure/experiment/tests/test_workers.py
+@@ -35,10 +35,7 @@ from pymeasure.experiment.results import Results
+ data_path = os.path.join(os.path.dirname(__file__), 'data/procedure_for_testing.py')
+ procedure = SourceFileLoader('procedure', data_path).load_module()
+ 
+-slow = pytest.mark.skipif(
+-    not pytest.config.getoption("--runslow"),
+-    reason="need --runslow option to run"
+-)
++slow = pytest.mark.skipif("slow")
+ 
+ 
+ def test_procedure():
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ffd99ca
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+No-pytest-conftest.patch
+No-privacy-breach.patch
diff --git a/debian/python-pymeasure-doc.doc-base b/debian/python-pymeasure-doc.doc-base
new file mode 100644
index 0000000..ce04b4d
--- /dev/null
+++ b/debian/python-pymeasure-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-pymeasure-doc
+Title: PyMeasure Documentation
+Author: PyMeasure Developers
+Abstract: This is the reference documentation for PyMeasure.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-pymeasure-doc/html/index.html
+Files: /usr/share/doc/python-pymeasure-doc/html/*.html
diff --git a/debian/python-pymeasure-doc.docs b/debian/python-pymeasure-doc.docs
new file mode 100644
index 0000000..4ecc793
--- /dev/null
+++ b/debian/python-pymeasure-doc.docs
@@ -0,0 +1 @@
+docs/_build/html
diff --git a/debian/python-pymeasure-doc.lintian-overrides b/debian/python-pymeasure-doc.lintian-overrides
new file mode 100644
index 0000000..1718578
--- /dev/null
+++ b/debian/python-pymeasure-doc.lintian-overrides
@@ -0,0 +1,2 @@
+# This file is part of the upstream documentation.
+extra-license-file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..530716d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=pymeasure
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE=test
+endif
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_clean:
+	dh_auto_clean
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+	$(MAKE) -C docs clean
+endif
+
+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
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
+endif
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..6e88e49
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+\.egg-info/"
\ No newline at end of file
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d731838
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,9 @@
+Test-Command: set -e
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -v --pyargs pymeasure
+ ; done
+Depends: python3-all,
+         python3-pymeasure,
+         python3-pytest
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c95e900
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/PyMeasure/PyMeasure@ANY_VERSION@@ARCHIVE_EXT@

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



More information about the debian-science-commits mailing list