[python-hdf5storage] 143/152: Formally added Python 2.6 support in the README.rst and the installer.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:43 UTC 2016


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

ghisvail-guest pushed a commit to annotated tag 0.1
in repository python-hdf5storage.

commit 90b429631cefd6af8f2728da9a8520dc05c8bec6
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Sun Feb 16 00:58:46 2014 -0500

    Formally added Python 2.6 support in the README.rst and the installer.
---
 README.rst | 10 +++++-----
 setup.py   |  8 +++++++-
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/README.rst b/README.rst
index 6657a6e..3ba56d7 100644
--- a/README.rst
+++ b/README.rst
@@ -16,7 +16,7 @@ http://opensource.org/licenses/BSD-2-Clause).
 Installation
 ============
 
-This package will probably not work on Python < 2.7.
+This package only supports Python >= 2.6.
 
 This package requires the numpy and h5py (>= 2.1) packages. An optional
 dependency is the scipy package.
@@ -25,11 +25,11 @@ To install hdf5storage, download the package and run the command::
 
     python3 setup.py install
 
-Python 2.7
-==========
+Python 2
+========
 
-This package was designed and written for Python 3, with Python 2.7
-support added later. This does mean that a few things are a little
+This package was designed and written for Python 3, with Python 2.7 and
+2.6 support added later. This does mean that a few things are a little
 clunky in Python 2. Examples include supporting ``unicode`` keys for
 dictionaries, not being able to import a structured ``numpy.ndarray`` if
 any of its fields contain characters outside of ASCII, the ``int`` and
diff --git a/setup.py b/setup.py
index 18cfcc6..03344d0 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,8 @@
+import sys
+
+if sys.hexversion < '0x2060000':
+    raise NotImplementedError('Python < 2.6 not supported.')
+
 import ez_setup
 ez_setup.use_setuptools()
 
@@ -18,7 +23,8 @@ setup(name='hdf5storage',
       license='BSD',
       keywords='hdf5 matlab',
       classifiers=[
-          "Programming Language :: Python :: 2.7"
+          "Programming Language :: Python :: 2.6",
+          "Programming Language :: Python :: 2.7",
           "Programming Language :: Python :: 3",
           "Development Status :: 3 - Alpha",
           "License :: OSI Approved :: BSD License",

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



More information about the debian-science-commits mailing list