Skip to content

Commit

Permalink
python 2.7 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-sk committed Mar 26, 2014
1 parent 8d0b463 commit 680932e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ CHANGES
---------------------------------

v0.0.1, 2014-03-05 -- Initial release.

v0.1.2, 2014-03-25 -- Deployment ready.

v0.1.19, 2014-03-26 -- Multiple fixes: non-restful mode, README, PUT/DELETE actions, error handling
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include README*
include CHANGES*
include bin/*
include config/*
include config/deploy/*
Expand Down
2 changes: 1 addition & 1 deletion rfw/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.19"
__version__ = "0.2.0"
10 changes: 10 additions & 0 deletions rfw/rfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

from __future__ import print_function
import sys
pytver = sys.version_info
if pytver[0] == 2 and pytver[1] >= 7:
pass
else:
print("rfw requires python 2.7")
sys.exit(1)


import argparse, logging, re, sys, struct, socket, subprocess, signal, time, json, os
from Queue import Queue, PriorityQueue
from threading import Thread
Expand Down
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,19 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import os, io, re
import sys, os, io, re
from setuptools.command.install import install
from setuptools import setup

pytver = sys.version_info

if pytver[0] == 2 and pytver[1] >= 7:
pass
else:
print("rfw requires python 2.7")
sys.exit(1)


# post install hook
class post_install(install):
def run(self):
Expand Down

0 comments on commit 680932e

Please sign in to comment.