Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ease
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ease
Commits
47d6fabd
Commit
47d6fabd
authored
May 28, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize requirements files
parent
d44b446a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
40 deletions
+16
-40
.travis.yml
+2
-2
base_requirements.txt
+0
-7
dev-requirements.txt
+6
-0
requirements.txt
+5
-5
setup.py
+3
-26
No files found.
.travis.yml
View file @
47d6fabd
...
...
@@ -7,8 +7,8 @@ before_install:
-
sudo apt-get update
-
sudo xargs -a apt-packages.txt apt-get install --fix-missing
install
:
-
pip install -r base_requirements.txt
-
sudo apt-get install python-matplotlib python-numpy python-scipy python-sklearn
-
pip install nltk==2.0.3 scikit-learn==0.12.1
-
pip install -r requirements.txt
-
pip install -r dev-requirements.txt
-
sudo mv ease/data/nltk_data /usr/share/nltk_data
script
:
nosetests
base_requirements.txt
deleted
100644 → 0
View file @
d44b446a
lxml
==3.0.1
mock
==0.8.0
nose
==1.2.1
path.py
==3.0
pylint
==0.26.0
pytz
==2012h
fisher
==0.1.4
dev-requirements.txt
0 → 100644
View file @
47d6fabd
coverage
==3.5.3
django-sphinx-autodoc
mock
==0.8.0
nose
==1.2.1
pylint
==0.26.0
sphinx
requirements.txt
View file @
47d6fabd
-r base_requirements.txt
coverage
==3.5.3
lxml
==3.0.1
fisher
==0.1.4
nltk
==2.0.3
path.py
==3.0
pytz
==2012h
scipy
==0.11.0
scikit-learn
==0.12.1
sphinx
django-sphinx-autodoc
nltk
==2.0.3
setup.py
View file @
47d6fabd
from
setuptools
import
setup
,
find_packages
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
)
]
REQUIREMENTS
=
[
line
.
strip
()
for
line
in
open
(
"requirements.txt"
)
.
readlines
()]
DEV_REQUIREMENTS
=
[
line
.
strip
()
for
line
in
open
(
"dev-requirements.txt"
)
.
readlines
()]
setup
(
...
...
@@ -44,4 +20,5 @@ setup(
url
=
"https://github.com/edx/ease"
,
include_package_data
=
True
,
install_requires
=
REQUIREMENTS
,
tests_require
=
DEV_REQUIREMENTS
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment