Skip to content

Commit

Permalink
Drop py3.3 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Jul 23, 2017
1 parent 4301b3e commit f7251c1
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ cache:
directories:
- $HOME/.cache/pip
python:
#- 3.3
- 3.4
- 3.5
- 3.6
Expand Down
6 changes: 5 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
v3.0.8 (dev)
v3.0.9 (dev)
------------

v3.0.8 (2017.07.23)
-------------------
* *Possible breaking change*: We discovered that python 3.3 support never fully worked due to some incompatibilities in the backported libraries for features we rely on that were introduced in 3.4. Thus, we are officially dropping support for python 3.3. This also reverts the change made in 3.0.7.

v3.0.7 (2017.07.22)
-------------------
* Add missing pathlib backport dependency for py3.3.
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
tests = tests
desc = ''
# Use this option to show full stack trace for errors
#pytestopts = '--full-trace'
# Use these options to measure test coverage (requires python >= 3.5 and
# pytest-cov package)
pytestopts = '--cov --cov-report term-missing'

BUILD = python setup.py install
TEST = python -m pytest -m "not perf" --cov --cov-report term-missing $(pytestopts) $(tests)
TEST = python -m pytest -m "not perf" $(pytestopts) $(tests)

all:
$(BUILD)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img src="https://github.com/jdidion/xphyle/blob/master/docs/logo.png?raw=true"
alt="logo" width="200" height="200">

xphyle is a small python (3.3+) library that makes it easy to open compressed
xphyle is a small python (3.4+) library that makes it easy to open compressed
files. Most importantly, xphyle will use the appropriate program (e.g. 'gzip') to compress/decompress a file if it is available on your system; this is almost always faster than using the corresponding python library. xphyle also provides methods that simplify common file I/O operations.

# Installation
Expand All @@ -20,7 +20,7 @@ files. Most importantly, xphyle will use the appropriate program (e.g. 'gzip') t
pip install xphyle
```

If you are using python 3.3 or 3.4, this will install one dependency: [backports.typing](https://pypi.python.org/pypi/backports.typing).
If you are using python < 3.6, this will install one dependency: [backports.typing](https://pypi.python.org/pypi/backports.typing).

# Building from source

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xphyle: extraordinarily simple file handling
============================================

xphyle is a small python (3.3+) library that makes it easy to open
xphyle is a small python (3.4+) library that makes it easy to open
compressed files. Most importantly, xphyle will use the appropriate
program (e.g. 'gzip') to compress/decompress a file if it is available
on your system; this is almost always faster than using the
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ xphyle: extraordinarily simple file handling
:height: 200px
:width: 200 px

xphyle is a small python (3.3+) library that makes it easy to open compressed
xphyle is a small python (3.4+) library that makes it easy to open compressed
files and URLs for the highest possible performance available on your system.

* `API <api/modules.html>`_
Expand Down
20 changes: 10 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
from setuptools import setup
import sys

requirements = []
version_info = sys.version_info

if version_info < (3, 3):
sys.stdout.write("At least Python 3.3 is required.\n")
if version_info < (3, 4):
sys.stdout.write("At least Python 3.4 is required.\n")
sys.exit(1)

if version_info < (3, 4):
requirements.append('pathlib')
install_requirements = []
test_requirements = ['pytest']

if version_info >= (3, 5):
test_requirements.append('pytest-cov')

if version_info < (3, 6):
# typing was added in 3.5, and we rely on critical features that were
# introduced in 3.5.2+, so for versions older than 3.6 we rely on
# a backport
requirements.append('backports.typing')
install_requirements.append('backports.typing')

import versioneer

Expand All @@ -29,22 +31,20 @@
author_email='john.didion@nih.gov',
license='MIT',
packages = ['xphyle'],
install_requires = requirements,
install_requires = install_requirements,
extras_require = {
'performance' : ['lorem']
},
tests_require = ['pytest', 'pytest-cov', ],
tests_require = test_requirements,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'License :: Public Domain',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.6',
],
)

0 comments on commit f7251c1

Please sign in to comment.