Skip to content

Commit

Permalink
Merge pull request #671 from opencobra/deprecate_py2
Browse files Browse the repository at this point in the history
Deprecate py2
  • Loading branch information
Midnighter committed Sep 6, 2019
2 parents dc0cb85 + 7f92581 commit a84f61a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ node_js: "node"
os:
- linux
python:
- "3.7"
- "3.6"
- "3.5"
- "2.7"
sudo: false
git:
depth: 2
Expand Down
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ at via GitHub pages for your repository.
Installation
============

**Please Note**: With its
`retirement on the horizon <https://pythonclock.org>`_ we decided to stop
testing against Python 2.7,
and `like many others <https://python3statement.org>`_, want to focus entirely
on Python 3.
Hence, we cannot guarantee that `memote` will still function as expected
on older versions of Python.

Before installing `memote`, make sure that you have correctly installed the
latest version of `git <https://git-scm.com/>`_.

Expand Down
8 changes: 8 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
Installation
============

**Please Note**: With its
`retirement on the horizon <https://pythonclock.org>`_ we decided to stop
testing against Python 2.7,
and `like many others <https://python3statement.org>`_, want to focus entirely
on Python 3.
Hence, we cannot guarantee that `memote` will still function as expected


Before installing memote, make sure that you have correctly installed the
latest version of `git`_.

Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ classifiers =
Topic :: Scientific/Engineering :: Bio-Informatics
License :: OSI Approved :: Apache Software License
Natural Language :: English
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Expand Down
10 changes: 10 additions & 0 deletions src/memote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
from memote.suite.reporting import *
from memote.jinja2_extension import *

import sys
import warnings

__author__ = "Moritz E. Beber"
__email__ = "morbeb@biosustain.dtu.dk"
__version__ = "0.9.12"

if sys.version_info < (3,):
warnings.warn('You are using `Memote` with Python 2. '
'Memote will soon be Python 3 only, and we have ceased to '
'test against Python 2. This means that memote may no '
'longer work as exprected. Please consider migrating to '
'Python 3.', FutureWarning)

0 comments on commit a84f61a

Please sign in to comment.