Skip to content

Commit e9b937d

Browse files
author
Daniel Neuhäuser
committed
Add Python 3.4 support
This is needed to build the documentation on read the docs.
1 parent 2f58d6f commit e9b937d

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ python:
44
- "3.5"
55

66
env:
7+
- TOXENV=py34
78
- TOXENV=py35
89
- TOXENV=packaging
910
- TOXENV=style

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ You can access the property and call the method on the class or on an instance:
6767
'spam'
6868
>>> foo.eggs
6969

70-
Hybrid-Attributes is BSD licensed and available for Python 3.5.
70+
Hybrid-Attributes is BSD licensed and available for Python 3.4 and later.

setup.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,24 @@ def get_version():
2424
raise ValueError('__version__ not found')
2525

2626

27+
def read_text(path):
28+
# Python 3.4 doesn't support Path.read_text
29+
with path.open(encoding='utf-8') as f:
30+
return f.read()
31+
32+
2733
if __name__ == '__main__':
2834
setup(
2935
name='hybrid-attributes',
3036
version=get_version(),
3137
description='Hybrid attributes',
32-
long_description=(PROJECT_PATH / 'README.rst').read_text('utf-8'),
38+
long_description=read_text(PROJECT_PATH / 'README.rst'),
3339
url='https://github.com/DasIch/hybrid-attributes/',
3440
author='Daniel Neuhäuser',
3541
author_email='[email protected]',
3642
classifiers=[
3743
'License :: OSI Approved :: BSD License',
44+
'Programming Language :: Python :: 3.4',
3845
'Programming Language :: Python :: 3.5',
3946
'Programming Language :: Python :: Implementation :: CPython'
4047
],

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = coverage-clean, py35, packaging, style, docs, coverage-report
2+
envlist = coverage-clean, py34, py35, packaging, style, docs, coverage-report
33

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)