Commit cf1be470 by Will Daly

Merge pull request #50 from edx/will/setup-requirements

Add requirements to setup.py; bump version number
parents 6ace8b7c d44b446a
from setuptools import setup, find_packages
with open('requirements.txt') as f:
required = f.read().splitlines()
def is_requirement(line):
"""
Return True if the requirement line is a package requirement;
that is, it is not blank, a comment, or editable.
"""
# Remove whitespace at the start/end of the line
line = line.strip()
# Skip blank lines, comments, and editable installs
return not (
line == '' or
line.startswith('-r') or
line.startswith('#') or
line.startswith('-e') or
line.startswith('git+')
)
REQUIREMENTS = [
line.strip() for line in (
open("pre-requirements.txt").readlines() +
open("requirements.txt").readlines() +
open("base_requirements.txt").readlines()
)
if is_requirement(line)
]
setup(
name = "ease",
version = "0.1.1",
version = "0.1.2",
packages=['ease', 'ease.external_code', 'ease.data', 'ease.data.nltk_data'],
package_data = {
'': ['*.txt', '*.rst', '*.p', '*.zip'],
......@@ -17,4 +43,5 @@ setup(
keywords = "ml machine learning nlp essay education",
url = "https://github.com/edx/ease",
include_package_data = True,
)
install_requires=REQUIREMENTS,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment