Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
hiredis package option
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Nov 3, 2016
1 parent 031e815 commit f634bab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions rodario/hiredis_requirements.txt
@@ -0,0 +1 @@
hiredis==0.2.0
13 changes: 7 additions & 6 deletions rodario/setup.py
Expand Up @@ -6,14 +6,17 @@

if __name__ == '__main__':
reqs = []
test_reqs = []
extras = {}
abspath = realpath(dirname(__file__))

with open(join(abspath, 'requirements.txt')) as reqfile:
reqs = reqfile.readlines()

with open(join(abspath, 'test_requirements.txt')) as reqfile:
test_reqs = reqfile.readlines()
for extra in ('test', 'hiredis',):
filename = '{extra}_requirements.txt'.format(extra=extra)

with open(join(abspath, filename)) as reqfile:
extras[extra] = reqfile.readlines()

setup(
name='rodario',
Expand All @@ -33,7 +36,5 @@
keywords='actor framework',
packages=find_packages(),
install_requires=reqs,
extras_require={
'test': test_reqs,
}
extras_require=extras
)

0 comments on commit f634bab

Please sign in to comment.