Skip to content

Commit 46fa065

Browse files
committed
updating setup.py
1 parent 426f688 commit 46fa065

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

CLASSIFIERS.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Development Status :: 4 - Beta
2+
Intended Audience :: Developers
3+
License :: OSI Approved :: BSD License
4+
Operating System :: OS Independent
5+
Programming Language :: Python
6+
Framework :: Django
7+
Topic :: Software Development :: Libraries :: Python Modules

setup.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from setuptools import setup, find_packages
22

3+
def listify(filename):
4+
return filter(None, open(filename,'r').read().split('\n'))
5+
36
setup(
47
name = "dango-cache-sweeper",
58
version = "0.1",
@@ -11,15 +14,7 @@
1114
author_email = "[email protected]",
1215
packages = find_packages('src'),
1316
package_dir = {'': 'src'},
14-
install_requires = map(lambda s: s.strip(), open('requirements.pip','r').readlines()),
15-
classifiers = [
16-
'Development Status :: 4 - Beta',
17-
'Intended Audience :: Developers',
18-
'License :: OSI Approved :: BSD License',
19-
'Operating System :: OS Independent',
20-
'Programming Language :: Python',
21-
'Framework :: Django',
22-
'Topic :: Software Development :: Libraries :: Python Modules',
23-
]
17+
install_requires = listify('requirements.pip'),
18+
classifiers = listify('CLASSIFIERS.txt')
2419
)
2520

0 commit comments

Comments
 (0)