Skip to content

Commit 626ece3

Browse files
committed
Update documentation: Python 2.6 and 3.3 are no longer supported.
1 parent 3d14eb0 commit 626ece3

File tree

7 files changed

+8
-42
lines changed

7 files changed

+8
-42
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: python
22
python:
33
- "2.7"
4-
- "3.3"
54
- "3.4"
65
- "3.5"
76
- "3.6"
7+
- "3.7"
88
install: pip install -r requirements.txt
99
script: make test
1010

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ include LICENSE.txt
33
include MANIFEST.in
44
include README.rst
55
include doc/examples/*.py
6-
include python2_6.patch
76
include tests/conftest.py
87
include tests/pytest.ini
98
include tests/test_*.py

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ build:
88
test: build
99
PYTHONPATH=$(BUILDDIR)/lib $(PYTHON) -m pytest tests
1010

11-
sdist: python2_6.patch .gitrevision
11+
sdist: .gitrevision
1212
$(PYTHON) setup.py sdist
1313

1414
doc-html:
1515
$(MAKE) -C doc html
1616

17-
1817
clean:
1918
rm -f *~ tests/*~
2019
rm -rf build
@@ -27,15 +26,11 @@ distclean: clean
2726
rm -rf __pycache__ tests/__pycache__
2827
rm -rf dist
2928
rm -rf pytest_dependency.egg-info
30-
rm -f python2_6.patch
29+
rm -rf .pytest_cache
3130
$(MAKE) -C doc distclean
3231

3332
.gitrevision:
3433
git describe --always --dirty > .gitrevision
3534

36-
python2_6.patch:
37-
git diff `git merge-base master python2_6` python2_6 \
38-
-- . ':(exclude).travis.yml' > $@
39-
4035

4136
.PHONY: build test sdist doc-html clean distclean .gitrevision

README.rst

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@ The latest release version can be found at PyPI, see
2020
System requirements
2121
-------------------
2222

23-
+ Python 2.6, 2.7, or 3.3 and newer.
24-
Python 2.6 requires patching the sources, see below.
23+
+ Python 2.7 or 3.4 and newer.
2524
+ `setuptools`_.
2625
+ `pytest`_ 3.6.0 or newer.
2726

28-
(Python 3.2 is not supported by pytest 3.6.0 itself.)
29-
3027

3128
Installation
3229
------------
@@ -48,16 +45,6 @@ Installation
4845
The last step might require admin privileges in order to write into
4946
the site-packages directory of your Python installation.
5047

51-
If you are using Python 2.6, apply python2_6.patch after the first
52-
step:
53-
54-
1a. Patch::
55-
56-
$ patch -p1 < python2_6.patch
57-
58-
It removes the use of certain language features (dict comprehensions)
59-
that were introduced in Python 2.7.
60-
6148

6249
Documentation
6350
-------------

doc/src/about.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Copyright and License
7171

7272
- Copyright 2013-2015
7373
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
74-
- Copyright 2016-2017 Rolf Krahl
74+
- Copyright 2016-2018 Rolf Krahl
7575

7676
Licensed under the Apache License, Version 2.0 (the "License"); you
7777
may not use this file except in compliance with the License. You may

doc/src/install.rst

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ Installation instructions
44
System requirements
55
-------------------
66

7-
+ Python 2.6, 2.7, or 3.3 and newer.
8-
Python 2.6 requires patching the sources, see below.
7+
+ Python 2.7 or 3.4 and newer.
98
+ `setuptools`_.
109
+ `pytest`_ 3.6.0 or newer.
1110

12-
(Python 3.2 is not supported by pytest 3.6.0 itself.)
13-
1411

1512
.. _install-other-packages:
1613

@@ -55,20 +52,8 @@ Installation
5552
The last step might require admin privileges in order to write into
5653
the site-packages directory of your Python installation.
5754

58-
If you are using Python 2.6, apply python2_6.patch after the first
59-
step:
60-
61-
1a. Patch::
62-
63-
$ patch -p1 < python2_6.patch
64-
65-
It removes the use of certain language features (dict comprehensions)
66-
that were introduced in Python 2.7.
67-
6855
For production use, it is always recommended to use the latest release
69-
version from PyPI, see above. If you build from the development
70-
sources that can be found at GitHub, please note that python2_6.patch
71-
is generated dynamically and not in the source repository.
56+
version from PyPI, see above.
7257

7358

7459
.. _setuptools: http://pypi.python.org/pypi/setuptools/

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def make_release_tree(self, base_dir, files):
7070
'Programming Language :: Python :: 2',
7171
'Programming Language :: Python :: 2.7',
7272
'Programming Language :: Python :: 3',
73-
'Programming Language :: Python :: 3.3',
7473
'Programming Language :: Python :: 3.4',
7574
'Programming Language :: Python :: 3.5',
7675
'Programming Language :: Python :: 3.6',
76+
'Programming Language :: Python :: 3.7',
7777
'Operating System :: OS Independent',
7878
'License :: OSI Approved :: Apache Software License',
7979
],

0 commit comments

Comments
 (0)