Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53e218e

Browse files
committed
Fixed py2.6 and added setup.py classifier.
virtual env installation tests indicated setup.py is working as expected
1 parent 42986b1 commit 53e218e

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

async/test/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Another reason for choosing to safe time here is that async is a nonsense library thanks to the GIL, which
1515
# should better be removed from git-python in case there is trouble with it ... . Ideally, this is done
1616
# in any way ... !
17-
py2 = sys.version_info.major < 3
17+
py2 = sys.version_info[0] < 3
1818

1919
class TestBase(unittest.TestCase):
2020
"""Common base for all tests"""

setup.py

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,32 @@ def get_data_files(self):
6666
packages = ('async', 'async.test'),
6767
package_dir = {'async':'async'},
6868
license = "BSD License",
69-
zip_safe = False,
7069
long_description = """Async is a framework to process interdependent tasks in a pool of workers""",
7170
tests_require = ('nose'),
72-
test_suite = 'nose.collector')
71+
test_suite = 'nose.collector',
72+
zip_safe=True,
73+
classifiers=[
74+
# Picked from
75+
# http://pypi.python.org/pypi?:action=list_classifiers
76+
#"Development Status :: 1 - Planning",
77+
#"Development Status :: 2 - Pre-Alpha",
78+
#"Development Status :: 3 - Alpha",
79+
# "Development Status :: 4 - Beta",
80+
#"Development Status :: 5 - Production/Stable",
81+
#"Development Status :: 6 - Mature",
82+
"Development Status :: 7 - Inactive",
83+
"Environment :: Console",
84+
"Intended Audience :: Developers",
85+
"License :: OSI Approved :: BSD License",
86+
"Operating System :: OS Independent",
87+
"Operating System :: POSIX",
88+
"Operating System :: Microsoft :: Windows",
89+
"Operating System :: MacOS :: MacOS X",
90+
"Programming Language :: Python",
91+
"Programming Language :: Python :: 2",
92+
"Programming Language :: Python :: 2.6",
93+
"Programming Language :: Python :: 2.7",
94+
"Programming Language :: Python :: 3",
95+
"Programming Language :: Python :: 3.3",
96+
"Programming Language :: Python :: 3.4",
97+
])

0 commit comments

Comments
 (0)