Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid repeating requirements #7

Merged
merged 4 commits into from
Apr 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
except ImportError:
from distutils.core import setup

requires = 'numpy pandas numba blosc zstd tqdm dill'.split()

def req_file(filename):
with open(filename) as f:
content = f.readlines()
# you may also want to remove whitespace characters like `\n` at the end of each line
return [x.strip().split('=')[0] for x in content]

setup(name='strax',
version='0.0.1',
description='Streaming analysis for XENON',
author='Jelle Aalbers',
author_email='[email protected]',
url='https://github.com/jelleaalbers/strax',
setup_requires=['pytest-runner'],
install_requires=requires,
tests_require=requires + ['pytest', 'boltons', 'hypothesis'],
install_requires=req_file('requirements.txt'),
tests_require=req_file('requirements.txt') + ['pytest', 'boltons', 'hypothesis'],
packages=['strax'])