-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
49 lines (43 loc) · 1.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from textwrap import dedent, fill
def format_desc(desc):
return fill(dedent(desc), 200)
def format_classifiers(classifiers):
return dedent(classifiers).strip().split('\n')
def split_keywords(keywords):
return dedent(keywords).strip().replace('\n', ' ').split(' ')
def file_contents(filename):
with open(filename) as f:
return f.read()
setup(
name = "CloseableQueue",
version = "0.9.1.1",
author = "Ted Tibbetts",
author_email = "[email protected]",
url = "http://github.com/intuited/CloseableQueue",
description = format_desc("""
These classes and functions provide the facility to close a queue
and to use it as an iterator.
"""),
long_description = file_contents('README.txt'),
classifiers = format_classifiers("""
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Utilities
"""),
keywords = split_keywords("""
queue multithreading threading iterator iterable iteration
"""),
py_modules = ['CloseableQueue'],
packages = ['CloseableQueue.test'],
package_dir = {'CloseableQueue': ''},
test_suite = 'test.make_test_suite',
)