Skip to content

Commit

Permalink
[qacode] fix all py versions +extra added
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto netzulo committed Sep 29, 2017
1 parent e96fd83 commit 38a66ca
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from sys import version_info
from setuptools import setup, find_packages
from os import path

Expand All @@ -6,12 +7,13 @@


def readme():
# TODO: just tested on windows, check this on linux to get real solution
with open(path.join(CURR_PATH, 'README.rst')) as f:
if version_info.major == 3:
with open(path.join(CURR_PATH, 'README.rst'), encoding='utf-8') as f:
return f.read()
if version_info.major == 2:
with open(path.join(CURR_PATH, 'README.rst')) as f:
return f.read().decode("UTF-8")

# TODO: Add how to add extra requires and automatic `nose` execution with the
# command `python setup.py test`
setup(
name='qacode',
version='0.1.9',
Expand Down Expand Up @@ -59,5 +61,8 @@ def readme():
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
]
],
extras_require={
'test': 'nose',
},
)

0 comments on commit 38a66ca

Please sign in to comment.