Skip to content

Commit

Permalink
Updating setup.py so that it will always install whatever is in requi…
Browse files Browse the repository at this point in the history
…rements.txt. Also I added ipywidgets to the requirements.txt because that dependency was missing.
  • Loading branch information
Tim Shawver committed Feb 15, 2016
1 parent 8ca10a2 commit 335d4ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
notebook==4.1.0
pandas==0.17.1
ipywidgets==4.1.1
16 changes: 11 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup
from os.path import (
join, dirname, abspath
)

def read_requirements(basename):
reqs_file = join(dirname(abspath(__file__)), basename)
with open(reqs_file) as f:
return [req.strip() for req in f.readlines()]

reqs = read_requirements('requirements.txt')

setup(
name='qgrid',
Expand All @@ -38,10 +48,6 @@
'Topic :: Office/Business :: Financial',
'Topic :: Scientific/Engineering :: Information Analysis',
],
install_requires=[
'numpy',
'pandas',
'ipython[notebook]',
],
install_requires=reqs,
url="https://github.com/quantopian/qgrid"
)

0 comments on commit 335d4ce

Please sign in to comment.