Skip to content
Browse files

get dependency list from requirements.pip.

  • Loading branch information...
1 parent fdf7084 commit 4948e9e155bbea3ea34e390d3de72ab0c992cf8f @gkmngrgn gkmngrgn committed May 5, 2013
Showing with 12 additions and 11 deletions.
  1. +3 −1 MANIFEST.in
  2. +3 −0 requirements.pip
  3. +0 −3 requires.txt
  4. +6 −7 setup.py
View
4 MANIFEST.in
@@ -1 +1,3 @@
-include README.md
+include README.rst
+include LICENSE.txt
+include requirements.pip
View
3 requirements.pip
@@ -0,0 +1,3 @@
+Pillow>=1.7.8
+colormath>=1.0.8
+numpy>=1.6.1
View
3 requires.txt
@@ -1,3 +0,0 @@
-colormath>=1.0.8
-numpy>=1.6.1
-https://github.com/larsyencken/Pillow/tarball/master
View
13 setup.py
@@ -18,25 +18,24 @@
sys.stderr.flush()
sys.exit(1)
-import os
+import os.path
from setuptools import setup
-readme = os.path.join(os.path.dirname(__file__), 'README.rst')
+PROJECT_DIR = os.path.realpath(os.path.join(os.path.dirname(__file__)))
+README_FILE_PATH = os.path.join(PROJECT_DIR, 'README.rst')
+REQUIREMENTS_FILE_PATH = os.path.join(PROJECT_DIR, 'requirements.pip')
setup(
name='colorific',
version='0.2.1',
description='Automatic color palette detection',
- long_description=open(readme).read(),
+ long_description=file(README_FILE_PATH).read(),
author='Lars Yencken',
author_email='lars@yencken.org',
url='http://github.com/99designs/colorific',
py_modules=['colorific'],
install_requires=[
- 'Pillow>=1.7.8',
- 'colormath>=1.0.8',
- 'numpy>=1.6.1',
- ],
+ i.strip() for i in file(REQUIREMENTS_FILE_PATH).readlines()],
license='ISC',
entry_points={
'console_scripts': [

0 comments on commit 4948e9e

Please sign in to comment.
Something went wrong with that request. Please try again.