Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
c3849fb6
Commit
c3849fb6
authored
Mar 14, 2017
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements
parent
5608ed9f
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
75 additions
and
2 deletions
+75
-2
pip-install
bin/steps/pip-install
+1
-1
pipenv
bin/steps/pipenv
+1
-1
python
bin/steps/python
+1
-0
nltk.txt
test/fixtures/nltk/nltk.txt
+1
-0
requirements.txt
test/fixtures/nltk/requirements.txt
+1
-0
init
test/fixtures/no-requirements/init
+0
-0
Pipfile
test/fixtures/pipenv-version/Pipfile
+9
-0
Pipfile.lock
test/fixtures/pipenv-version/Pipfile.lock
+23
-0
Pipfile
test/fixtures/pipenv/Pipfile
+2
-0
run
test/run
+23
-0
utils
test/utils
+2
-0
runtime-fixer
vendor/runtime-fixer
+11
-0
No files found.
bin/steps/pip-install
View file @
c3849fb6
# Install dependencies with Pip.
# Install dependencies with Pip.
puts-
cmd "pip install -r requirements.txt
"
puts-
step "Installing requirements with pip
"
set +e
set +e
# delete any existing egg links, to uninstall exisisting installations.
# delete any existing egg links, to uninstall exisisting installations.
...
...
bin/steps/pipenv
View file @
c3849fb6
...
@@ -4,7 +4,7 @@ if [[ -f Pipfile ]]; then
...
@@ -4,7 +4,7 @@ if [[ -f Pipfile ]]; then
if [[ ! -f requirements.txt ]]; then
if [[ ! -f requirements.txt ]]; then
puts-step "Generating 'requirements.txt' with pipenv"
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
pipenv lock --requirements > requirements.txt 2> /dev/null
pipstrip requirements.txt
pipstrip requirements.txt
...
...
bin/steps/python
View file @
c3849fb6
set +e
set +e
runtime-fixer runtime.txt
PYTHON_VERSION=$(cat runtime.txt)
PYTHON_VERSION=$(cat runtime.txt)
# Install Python.
# Install Python.
...
...
test/fixtures/nltk/nltk.txt
0 → 100644
View file @
c3849fb6
wordnet
\ No newline at end of file
test/fixtures/nltk/requirements.txt
0 → 100644
View file @
c3849fb6
nltk
\ No newline at end of file
test/fixtures/no-requirements/init
0 → 100644
View file @
c3849fb6
test/fixtures/pipenv-version/Pipfile
0 → 100644
View file @
c3849fb6
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
[packages]
requests = "*"
[requires]
python_version = "3.6"
\ No newline at end of file
test/fixtures/pipenv-version/Pipfile.lock
0 → 100644
View file @
c3849fb6
{
"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
test/fixtures/pipenv/Pipfile
0 → 100644
View file @
c3849fb6
[packages]
"delegator.py" = "*"
test/run
View file @
c3849fb6
#!/usr/bin/env bash
#!/usr/bin/env bash
testNoRequirements
()
{
testNoRequirements
()
{
compile
"no-requirements"
compile
"no-requirements"
assertCapturedError
assertCapturedError
}
}
testNLTK
()
{
compile
"nltk"
assertCaptured
"wordnet"
assertCapturedSuccess
}
testPipenvVersion
()
{
compile
"pipenv-version"
assertCaptured
"3.6.0"
assertCapturedSuccess
}
testPipenv
()
{
compile
"pipenv"
assertCapturedSuccess
}
testSetupPy
()
{
testSetupPy
()
{
compile
"setup-py"
compile
"setup-py"
assertCaptured
"maya"
assertCaptured
"maya"
...
...
test/utils
View file @
c3849fb6
...
@@ -150,6 +150,8 @@ _assertContains()
...
@@ -150,6 +150,8 @@ _assertContains()
debug
()
debug
()
{
{
cat
$STD_OUT
cat
$STD_OUT
echo
'^^^^^^'
cat
$STD_ERR
}
}
assertContains
()
assertContains
()
...
...
vendor/runtime-fixer
0 → 100755
View file @
c3849fb6
#!/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
)
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