Commit c3849fb6 authored by Kenneth Reitz's avatar Kenneth Reitz

improvements

parent 5608ed9f
# Install dependencies with Pip.
puts-cmd "pip install -r requirements.txt"
puts-step "Installing requirements with pip"
set +e
# delete any existing egg links, to uninstall exisisting installations.
......
......@@ -4,7 +4,7 @@ if [[ -f Pipfile ]]; then
if [[ ! -f requirements.txt ]]; then
puts-step "Generating 'requirements.txt' with pipenv"
pip install git+https://github.com/kennethreitz/pipenv.git#egg=pipenv &> /dev/null
pip install pipenv --upgrade &> /dev/null
pipenv lock --requirements > requirements.txt 2> /dev/null
pipstrip requirements.txt
......
set +e
runtime-fixer runtime.txt
PYTHON_VERSION=$(cat runtime.txt)
# Install Python.
......
wordnet
\ No newline at end of file
nltk
\ No newline at end of file
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
[packages]
requests = "*"
[requires]
python_version = "3.6"
\ No newline at end of file
{
"default": {
"requests": {
"version": "==2.13.0",
"hash": "sha256:1a720e8862a41aa22e339373b526f508ef0c8988baf48b84d3fc891a8e237efb"
}
},
"develop": {},
"_meta": {
"sources": [
{
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
],
"requires": {
"python_version": "3.6"
},
"hash": {
"sha256": "5866990104fc8f27d13cdf01abc2a32c553129e03f666316cacc5b42d3e0884e"
}
}
}
\ No newline at end of file
[packages]
"delegator.py" = "*"
#!/usr/bin/env bash
testNoRequirements() {
compile "no-requirements"
assertCapturedError
}
testNLTK() {
compile "nltk"
assertCaptured "wordnet"
assertCapturedSuccess
}
testPipenvVersion() {
compile "pipenv-version"
assertCaptured "3.6.0"
assertCapturedSuccess
}
testPipenv() {
compile "pipenv"
assertCapturedSuccess
}
testSetupPy() {
compile "setup-py"
assertCaptured "maya"
......
......@@ -150,6 +150,8 @@ _assertContains()
debug()
{
cat $STD_OUT
echo '^^^^^^'
cat $STD_ERR
}
assertContains()
......
#!/usr/bin/env python
import sys
runtime_file = sys.argv[1]
with open(req_file, 'r') as f:
r = f.read().strip()
with open(runtime_file, 'w') as f:
f.write(r)
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