Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
add a test to check python version
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Oct 25, 2014
1 parent 4665948 commit fab6266
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.rst
Expand Up @@ -76,6 +76,8 @@ Started in 2013/08.
Versions
--------

* **0.9 - 2014/??/??**
* **add:** Python version is now checked, ImportError is raised if it used on Python 2
* **0.8 - 2014/10/24**
* **add:** add method :meth:`copy_to <pyensae.sql.database_main.Database.copy_to>` to copy every table from a database to another one
* **fix:** class :class:`Database <pyensae.sql.database_main.Database>` can now handle in memory database
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -47,7 +47,7 @@
subversion = 1

project_var_name = "pyensae"
sversion = "0.8"
sversion = "0.9"
versionPython = "%s.%s" % (sys.version_info.major, sys.version_info.minor)
path = "Lib/site-packages/" + project_var_name
readme = 'README.rst'
Expand Down
6 changes: 5 additions & 1 deletion src/pyensae/__init__.py
Expand Up @@ -4,7 +4,11 @@
@brief Main file
"""

__version__ = "0.8"
import sys
if sys.version_info[0] < 3 :
raise ImportError("pyensae only works with Python 3")

__version__ = "0.9"
__author__ = "Xavier Dupré"
__github__ = "https://github.com/sdpython/pyensae"
__url__ = "http://www.xavierdupre.fr/app/pyensae/helpsphinx/index.html"
Expand Down

0 comments on commit fab6266

Please sign in to comment.