Skip to content

Commit

Permalink
Merge pull request #386 from dhermes/document-supported-versions
Browse files Browse the repository at this point in the history
Document our explicit Python version support.
  • Loading branch information
silvolu committed Nov 25, 2014
2 parents a5127ce + 7415ea1 commit 572b864
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
31 changes: 31 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,37 @@ Contributions to this library are always welcome and highly encouraged.
See `CONTRIBUTING <CONTRIBUTING.rst>`__ for more information on how to
get started.

Supported Python Versions
-------------------------

We support:

- `Python 2.6 <https://docs.python.org/2.6/>`__
- `Python 2.7 <https://docs.python.org/2.7/>`__

We plan to support:

- `Python 3.3 <https://docs.python.org/3.3/>`__
- `Python 3.4 <https://docs.python.org/3.4/>`__

Supported versions can be found in our ``tox.ini``
`config <https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/tox.ini>`__.

We explicitly decided not to support
`Python 2.5 <https://docs.python.org/2.5/>`__ due to
`decreased usage <https://caremad.io/2013/10/a-look-at-pypi-downloads/>`__ and
lack of continuous integration
`support <http://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/>`__.

We also explicitly decided to support Python 3 beginning with version 3.3.
Reasons for this include:

- Encouraging use of newest versions of Python 3
- Taking the lead of prominent open-source
`projects <http://flask.pocoo.org/docs/0.10/python3/>`__
- Unicode literal `support <https://www.python.org/dev/peps/pep-0414>`__ which
allows for a cleaner codebase that works in both Python 2 and Python 3.

License
-------

Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from distutils.core import setup, find_packages


if sys.version_info <= (2, 4):
raise Exception('Requires Python Version 2.5 or above... exiting.')
if sys.version_info <= (2, 5):
raise Exception('Requires Python Version 2.6 or above... exiting.')


REQUIREMENTS = [
Expand Down Expand Up @@ -43,7 +43,6 @@
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Internet',
Expand Down

0 comments on commit 572b864

Please sign in to comment.