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
df52fd46
Commit
df52fd46
authored
Mar 14, 2017
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace stripper for runtime.txt
parent
2e37a969
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
python
bin/steps/python
+4
-0
runtime-fixer
vendor/runtime-fixer
+11
-0
No files found.
bin/steps/python
View file @
df52fd46
set +e
# Fix any pending whitespace around runtime.txt.
runtime-fixer runtime.txt
PYTHON_VERSION=$(cat runtime.txt)
# Install Python.
...
...
vendor/runtime-fixer
0 → 100755
View file @
df52fd46
#!/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