Commit 00efdffe authored by Tres Seaver's avatar Tres Seaver

Drop support for Python 2.5.

parent 051af14e
``zodburi`` Changelog ``zodburi`` Changelog
===================== =====================
Unreleased
----------
- Dropped support for Python 2.5.
1.1 (2012-09-12) 1.1 (2012-09-12)
---------------- ----------------
......
...@@ -7,7 +7,7 @@ Overview ...@@ -7,7 +7,7 @@ Overview
A library which parses URIs and converts them to ZODB storage objects and A library which parses URIs and converts them to ZODB storage objects and
database arguments. database arguments.
It will run under CPython 2.5, 2.6, and 2.7. It will not run under PyPy or It will run under CPython 2.6, and 2.7. It will not run under PyPy or
Jython. It requires ZODB >= 3.10.0. Jython. It requires ZODB >= 3.10.0.
Installation Installation
......
import os import os
import sys
from setuptools import setup from setuptools import setup
from setuptools import find_packages from setuptools import find_packages
...@@ -7,25 +6,29 @@ from setuptools import find_packages ...@@ -7,25 +6,29 @@ from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__)) here = os.path.abspath(os.path.dirname(__file__))
try: try:
README = open(os.path.join(here, 'README.rst')).read() with open(os.path.join(here, 'README.rst')) as f:
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() README = f.read()
except: except:
README = '' README = ''
try:
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
except:
CHANGES = '' CHANGES = ''
requires = ['ZODB3'] requires = ['ZODB3']
if sys.version_info[:2] < (2, 6):
requires.insert(0, 'zope.interface>=3.6.0,<4.0dev')
requires.insert(0, 'transaction<1.2')
tests_require = requires + ['mock'] tests_require = requires + ['mock']
setup(name='zodburi', setup(name='zodburi',
version='1.1', version='1.2dev',
description=('Constructs ZODB storage instances from URIs.'), description=('Constructs ZODB storage instances from URIs.'),
long_description=README + '\n\n' + CHANGES, long_description=README + '\n\n' + CHANGES,
classifiers=[ classifiers=[
"Intended Audience :: Developers", "Intended Audience :: Developers",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"License :: Repoze Public License", "License :: Repoze Public License",
], ],
keywords='zodb zodbconn', keywords='zodb zodbconn',
......
[tox] [tox]
envlist = envlist =
py25,py26,py27,cover py26,py27,cover
[testenv] [testenv]
commands = commands =
python setup.py test -q python setup.py test -q
[testenv:py25]
deps =
zope.interface>=3.6.0,<4.0dev
transaction<1.2
commands =
python setup.py test -q
[testenv:cover] [testenv:cover]
basepython = basepython =
python2.6 python2.6
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment