mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Compare commits
263 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ef333c516b | |||
| 552f0f77d5 | |||
| 583b9cfd95 | |||
| c182bacdf2 | |||
| ca9b6de50f | |||
| 5910581665 | |||
| c1f6862110 | |||
| 520c240edd | |||
| 61341d17b8 | |||
| acfc7240f8 | |||
| e32aaf9d00 | |||
| ec57979bf8 | |||
| 0057d19082 | |||
| 0419921227 | |||
| 7d743e7998 | |||
| 2942fc8e4a | |||
| 0e1ac6217b | |||
| 848c846a3d | |||
| 179f345f5b | |||
| 6fc11b8370 | |||
| f189df5415 | |||
| 8253ffa354 | |||
| 514c494891 | |||
| 9a9e972db0 | |||
| 1750242ccd | |||
| 50460beb95 | |||
| 69c17b343a | |||
| f31e9fa835 | |||
| 5788ff57cd | |||
| f0f3463658 | |||
| ffc7683c05 | |||
| 3a6f7f849b | |||
| 475af5a1f8 | |||
| d166ee88d7 | |||
| ba55465a2b | |||
| 8eb2954e92 | |||
| 468d27ab98 | |||
| 515a222cc4 | |||
| 53c4674ecd | |||
| 93a620e6ed | |||
| a7a257e099 | |||
| 40e91a9755 | |||
| 7686370d81 | |||
| 2d6990425e | |||
| b5b640ab00 | |||
| dfe28cbe28 | |||
| 8fc94c0868 | |||
| 86fc9f156b | |||
| 2a4f0a66c3 | |||
| 87ba8b499a | |||
| f03b7ed048 | |||
| bf1b1dc3f8 | |||
| a421ea93e3 | |||
| 3c40bf8bea | |||
| f28465bec7 | |||
| fade163df8 | |||
| 13fad186ff | |||
| c12f395c9a | |||
| 43c54abf0e | |||
| 151df58e86 | |||
| 1c87fd3d6e | |||
| 50cdf10a36 | |||
| 0be5993e32 | |||
| 3f9a80ad24 | |||
| 14c15f4dd8 | |||
| 9bd5fa7c7f | |||
| 89885a4472 | |||
| 3c193bd475 | |||
| a7f62496b1 | |||
| f1b0f8c154 | |||
| f90dfbc12e | |||
| 9ca0c4eb84 | |||
| dc694d4712 | |||
| b4b94abea0 | |||
| 0c66cea063 | |||
| 48f6e20fc5 | |||
| 7ceb774c63 | |||
| f43caaadc3 | |||
| bb31a012fd | |||
| 9ab6a56cba | |||
| ab89e49235 | |||
| 5293169aa8 | |||
| 3698cb5715 | |||
| c126f6239d | |||
| e821501114 | |||
| 7f639739e3 | |||
| 4328847f1e | |||
| c79e6f02ad | |||
| 1d938c35f8 | |||
| 99a2a55f6a | |||
| 79dbd79b13 | |||
| 0b4a2d664b | |||
| 3726d3b473 | |||
| 9b72199cdf | |||
| 22e6239222 | |||
| 39e4e85747 | |||
| 05612fa1eb | |||
| fb1ca18e90 | |||
| 0207d8aff0 | |||
| 6bf3a75da2 | |||
| 011f1e7e60 | |||
| 0b804b186c | |||
| ec56074c18 | |||
| 34508bfc35 | |||
| af1ef93311 | |||
| 0fc7b6c186 | |||
| 33cd4a5fe1 | |||
| 7ff7fa4462 | |||
| 9a830367fe | |||
| 521ed3ff60 | |||
| 03c12e8081 | |||
| de18566b47 | |||
| a165486180 | |||
| d7327b8d13 | |||
| 47c6dbab32 | |||
| 939594ecf4 | |||
| 23adcc42c4 | |||
| cc2d1ad17f | |||
| 91a0be91e1 | |||
| 4a4a6a1df0 | |||
| b30838072f | |||
| 950572132c | |||
| fe5da9a0a6 | |||
| 4eed56e2e5 | |||
| 00d44d2e34 | |||
| 0c78978e90 | |||
| d0fd9ad58a | |||
| 24e0858902 | |||
| d54da94d47 | |||
| 1721fa3703 | |||
| 970b6c1e4b | |||
| 89145ef839 | |||
| ce6657d5fe | |||
| cacd163958 | |||
| cd4601a707 | |||
| 05e29c74bc | |||
| dbfdb5a356 | |||
| 8512fcb811 | |||
| 6b328504de | |||
| b4553d4bee | |||
| af860be62a | |||
| 2be890d2e8 | |||
| e936ff00c3 | |||
| 3096299184 | |||
| ffc7359b19 | |||
| 7a313c53a5 | |||
| 98df315cfa | |||
| 74bc1d4049 | |||
| df18c0485d | |||
| 629ab233bf | |||
| c4b4bfaa3c | |||
| fe6a81d513 | |||
| 7c82017a0e | |||
| 75ce3f537d | |||
| a51d5f2976 | |||
| 6a8aa1e2b0 | |||
| 35873ee517 | |||
| b2b12d0355 | |||
| 15ecb76950 | |||
| adba08788c | |||
| e3d6bc8436 | |||
| 6e4b43fa1d | |||
| 3fef7caf50 | |||
| 0c701de466 | |||
| c410fd36a6 | |||
| ff42f318a0 | |||
| 09b5fe4881 | |||
| 7a431ee717 | |||
| a80f2be020 | |||
| 15289a94f1 | |||
| a013e54769 | |||
| bf8f9419ec | |||
| 3346bbc324 | |||
| ebfe4946df | |||
| 0bfd1bd51f | |||
| b1b3ab1c92 | |||
| dfb8185a63 | |||
| 1c5e876e3d | |||
| 149c046f5f | |||
| fc4cbf272a | |||
| 61ead23f7f | |||
| f3738a0e70 | |||
| 1e92f31436 | |||
| c969fa0d36 | |||
| 1851bbf285 | |||
| a41fd78f72 | |||
| 56322381f0 | |||
| dc878449ee | |||
| 204a6215b2 | |||
| a2f3ff7a35 | |||
| c3328f57dd | |||
| 5df70ce26c | |||
| 44fe0fe3fd | |||
| b8d1035231 | |||
| 006ea77641 | |||
| a239fde78c | |||
| 783c2e2329 | |||
| 06694bba18 | |||
| 158a3e28a8 | |||
| 9031333ef4 | |||
| b6e2739fb5 | |||
| a8da6e4ed5 | |||
| 707ed848bb | |||
| 385296c270 | |||
| 12279e69d5 | |||
| b5fa65d96c | |||
| a724dfc62e | |||
| aecdeddc32 | |||
| f3af6aa4a2 | |||
| 6bc4d42774 | |||
| e1d0fcae0e | |||
| 8f1b24f64e | |||
| 97e3366409 | |||
| 4f8bb77b13 | |||
| a771b7bf94 | |||
| b52fac4d32 | |||
| e28c1012b7 | |||
| 05b7ceb82c | |||
| a379779d43 | |||
| de1696bb02 | |||
| 77b012dd6f | |||
| 3d65278d61 | |||
| 59544ee799 | |||
| 34a631021c | |||
| 6a4ab8646a | |||
| 7d8ea3d266 | |||
| 0161b80a2b | |||
| 7eac72199e | |||
| df779aaa9a | |||
| bbdbebbc87 | |||
| 32cf8a8681 | |||
| 1479ab375e | |||
| 8366d66f54 | |||
| b156f237a2 | |||
| 0ffbf60882 | |||
| c458743a2a | |||
| 0ff53eb59b | |||
| 96ffc147d4 | |||
| 4063e9d22e | |||
| 751413168b | |||
| 527ea604c8 | |||
| 302c2f0432 | |||
| 14c7e26f7a | |||
| 58e664a9e3 | |||
| e965516197 | |||
| 8775cb821c | |||
| 9dcabe24a5 | |||
| 38f9a41a54 | |||
| 3880b1affa | |||
| 53e33bdf91 | |||
| 5337dd592b | |||
| de8ae808d9 | |||
| 2a7e85be85 | |||
| 7654d13f8b | |||
| 9d3639685a | |||
| 76bb572a4d | |||
| 8db4a79392 | |||
| 21430070ad | |||
| 20bbb3f54d | |||
| bebc0cf439 | |||
| c361c2ffc4 | |||
| 13d2a58add | |||
| 49e9147439 |
@@ -0,0 +1,12 @@
|
|||||||
|
name: Check Changelog
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Check that CHANGELOG is touched
|
||||||
|
run: |
|
||||||
|
cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md
|
||||||
@@ -7,3 +7,6 @@ repos/*
|
|||||||
|
|
||||||
#Venv
|
#Venv
|
||||||
buildpack/*
|
buildpack/*
|
||||||
|
|
||||||
|
builds/dockerenv.staging*
|
||||||
|
builds/dockerenv.production
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: git://github.com/detailyang/pre-commit-shell
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: 1.0.4
|
rev: v2.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: shell-lint
|
- id: check-yaml
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
|||||||
+22
-18
@@ -1,35 +1,39 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
rvm:
|
rvm:
|
||||||
- 2.4.4
|
- 2.4.4
|
||||||
before_script:
|
before_script:
|
||||||
- gem install bundler -v 1.16.2
|
- gem install bundler -v 1.16.2
|
||||||
- bundle exec hatchet ci:setup
|
- bundle exec hatchet ci:setup
|
||||||
|
|
||||||
|
script:
|
||||||
|
- docker build --pull --tag travis-build-cedar-14 --file $(pwd)/builds/cedar-14.Dockerfile .
|
||||||
|
- docker run --rm -e "STACK=cedar-14" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-cedar-14 bash $TESTFOLDER
|
||||||
|
- docker build --pull --tag travis-build-heroku-16 --file $(pwd)/builds/heroku-16.Dockerfile .
|
||||||
|
- docker run --rm -e "STACK=heroku-16" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-heroku-16 bash $TESTFOLDER
|
||||||
|
- docker build --pull --tag travis-build-heroku-18 --file $(pwd)/builds/heroku-18.Dockerfile .
|
||||||
|
- docker run --rm -e "STACK=heroku-18" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-heroku-18 bash $TESTFOLDER
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: Bash linting (shellcheck)
|
- stage: Bash linting (shellcheck)
|
||||||
sudo: false
|
sudo: false
|
||||||
script: make check
|
script: make check
|
||||||
- stage: Stack Unit Tests
|
|
||||||
services: docker
|
|
||||||
env: STACK=heroku-18
|
|
||||||
script: "./tests.sh"
|
|
||||||
- stage: Stack Unit Tests
|
|
||||||
services: docker
|
|
||||||
env: STACK=heroku-16
|
|
||||||
script: "./tests.sh"
|
|
||||||
- stage: Stack Unit Tests
|
|
||||||
services: docker
|
|
||||||
env: STACK=cedar-14
|
|
||||||
script: "./tests.sh"
|
|
||||||
- stage: Hatchet Integration
|
- stage: Hatchet Integration
|
||||||
|
if: branch = master
|
||||||
|
name: Run Hatchet
|
||||||
script: "bundle exec rspec"
|
script: "bundle exec rspec"
|
||||||
env:
|
env:
|
||||||
|
matrix:
|
||||||
|
- TESTFOLDER=test/run-deps
|
||||||
|
- TESTFOLDER=test/run-versions
|
||||||
|
- TESTFOLDER=test/run-features
|
||||||
global:
|
global:
|
||||||
- HATCHET_RETRIES=3
|
- HATCHET_RETRIES=3
|
||||||
- IS_RUNNING_ON_CI=true
|
- IS_RUNNING_ON_CI=true
|
||||||
- HATCHET_APP_LIMIT=5
|
- HATCHET_APP_LIMIT=5
|
||||||
- HATCHET_DEPLOY_STRATEGY=git
|
- HATCHET_DEPLOY_STRATEGY=git
|
||||||
- secure: yjtlPE5FbVxTKnjUy/tZUBgSEf4qADD3QOxtgziuid73S0U/1IEXlMGFULsQzIjtlHKmHeywZqpVVEpthIH4RuT7uoX1Pb7SSM/g0T8fT3VoEFbFK1uYl0oZQbUS4Klxv9tPiumj8if3m6ULEGIz1X0wZcMOC0tMLwVCnwmap0E=
|
- secure: yjtlPE5FbVxTKnjUy/tZUBgSEf4qADD3QOxtgziuid73S0U/1IEXlMGFULsQzIjtlHKmHeywZqpVVEpthIH4RuT7uoX1Pb7SSM/g0T8fT3VoEFbFK1uYl0oZQbUS4Klxv9tPiumj8if3m6ULEGIz1X0wZcMOC0tMLwVCnwmap0E=
|
||||||
- secure: ZeFTHWwnpIKE9nAqs88ocmiQh7bKce84lilGm5J23nf3N6V4wNyLwqlkvsM008WGBCaOg9AUx7ZunasT0ANsR5gLP3eV2UUg7ILdRgV2Gy13eNRFheC4PHdN92RqQ3aKoqlIv2K999xlhVjod0NzhkQQXB6PddfQINbuU7ks6As=
|
- secure: ZeFTHWwnpIKE9nAqs88ocmiQh7bKce84lilGm5J23nf3N6V4wNyLwqlkvsM008WGBCaOg9AUx7ZunasT0ANsR5gLP3eV2UUg7ILdRgV2Gy13eNRFheC4PHdN92RqQ3aKoqlIv2K999xlhVjod0NzhkQQXB6PddfQINbuU7ks6As=
|
||||||
|
|||||||
@@ -1,5 +1,86 @@
|
|||||||
# Python Buildpack Changelog
|
# Python Buildpack Changelog
|
||||||
|
|
||||||
|
# Master
|
||||||
|
|
||||||
|
- Update requirements.txt builds to use Pip 20.0.2
|
||||||
|
- Download get-pip.py to tmpdir instead of root dir
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# 163 (2019-12-23)
|
||||||
|
|
||||||
|
- New pythons released:
|
||||||
|
Python 3.8.1, 3.7.6, 3.6.10 (CPython)
|
||||||
|
Beta Release: Pypy 2.7 and 3.6, version 7.2.0
|
||||||
|
|
||||||
|
# 162 (2019-12-06)
|
||||||
|
|
||||||
|
- Bug fix: fragile sqlite3 install
|
||||||
|
|
||||||
|
# 161 (2019-12-2)
|
||||||
|
|
||||||
|
- Bug fix: Sqlite3 version bump
|
||||||
|
|
||||||
|
# 160 (2019-10-23)
|
||||||
|
|
||||||
|
- Bugfix: Pipenv no longer installs twice in CI
|
||||||
|
|
||||||
|
# 159 (2019-10-22)
|
||||||
|
|
||||||
|
- Python 2.7.17 now available on Heroku 18 and 16.
|
||||||
|
|
||||||
|
# 158 (2019-10-21)
|
||||||
|
|
||||||
|
- Python 3.7.5 and 3.8.0 now available on Heroku 18 and 16.
|
||||||
|
- Add support for Python 3.8 branch
|
||||||
|
- Sqlite3 Update:
|
||||||
|
- Test Improvements
|
||||||
|
- Add support for staging binary testing
|
||||||
|
|
||||||
|
# 157 (2019-09-18)
|
||||||
|
|
||||||
|
- Typo fixes
|
||||||
|
|
||||||
|
# 156 (2019-09-12)
|
||||||
|
|
||||||
|
- Python 3.6.9 and 3.7.4 now available.
|
||||||
|
|
||||||
|
- Move get-pip utility to S3
|
||||||
|
- Build utility and documentation updates
|
||||||
|
- Bump Hatchet tests to point at new default python version.
|
||||||
|
|
||||||
|
# 155 (2019-08-22)
|
||||||
|
|
||||||
|
add docs and make target for heroku-18 bob builds
|
||||||
|
|
||||||
|
# 154 (2019-07-17)
|
||||||
|
|
||||||
|
Fix python 3.5.7 formula actually building 3.7.2
|
||||||
|
|
||||||
|
# 153 (2019-06-21)
|
||||||
|
|
||||||
|
Hotfix for broken heroku-16 deploys
|
||||||
|
|
||||||
|
# 152 (2019-04-04)
|
||||||
|
|
||||||
|
Python 3.7.3 now available.
|
||||||
|
|
||||||
|
# 151 (2019-03-21)
|
||||||
|
|
||||||
|
Python 3.5.7 and 3.4.10 now available on all Heroku stacks.
|
||||||
|
|
||||||
|
# 150 (2019-03-13)
|
||||||
|
|
||||||
|
Python 2.7.16 now available on all Heroku stacks.
|
||||||
|
|
||||||
|
# 149 (2019-03-04)
|
||||||
|
|
||||||
|
Hotfix for broken Cedar 14 deploys
|
||||||
|
|
||||||
|
# 148 (2019-02-21)
|
||||||
|
|
||||||
|
No user facing changes, improving internal metrics
|
||||||
|
|
||||||
# 147 (2019-02-07)
|
# 147 (2019-02-07)
|
||||||
|
|
||||||
Python 3.7.2 and 3.6.8 now available on all Heroku stacks.
|
Python 3.7.2 and 3.6.8 now available on all Heroku stacks.
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
FROM heroku/heroku:18-build
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
ENV WORKSPACE_DIR="/app/builds" \
|
|
||||||
S3_BUCKET="lang-python" \
|
|
||||||
S3_PREFIX="heroku-18/"
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y python-pip && rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY requirements.txt /app/
|
|
||||||
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
@@ -1,32 +1,32 @@
|
|||||||
# These targets are not files
|
# These targets are not files
|
||||||
.PHONY: tests
|
.PHONY: tests
|
||||||
|
|
||||||
test: test-heroku-18 test-heroku-16
|
test: test-heroku-18 test-heroku-16 test-cedar-14
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@shellcheck -x bin/compile bin/detect bin/release bin/test-compile bin/utils bin/warnings
|
@shellcheck -x bin/compile bin/detect bin/release bin/test-compile bin/utils bin/warnings bin/default_pythons
|
||||||
@shellcheck -x bin/steps/collectstatic bin/steps/eggpath-fix bin/steps/eggpath-fix2 bin/steps/gdal bin/steps/geo-libs bin/steps/mercurial bin/steps/nltk bin/steps/pip-install bin/steps/pip-uninstall bin/steps/pipenv bin/steps/pipenv-python-version bin/steps/pylibmc bin/steps/python
|
@shellcheck -x bin/steps/collectstatic bin/steps/eggpath-fix bin/steps/eggpath-fix2 bin/steps/gdal bin/steps/geo-libs bin/steps/mercurial bin/steps/nltk bin/steps/pip-install bin/steps/pip-uninstall bin/steps/pipenv bin/steps/pipenv-python-version bin/steps/pylibmc bin/steps/python
|
||||||
@shellcheck -x bin/steps/hooks/*
|
@shellcheck -x bin/steps/hooks/*
|
||||||
|
|
||||||
test-cedar-14:
|
test-cedar-14:
|
||||||
@echo "Running tests in docker (cedar-14)..."
|
@echo "Running tests in docker (cedar-14)..."
|
||||||
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=cedar-14" heroku/cedar:14 bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
|
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=cedar-14" heroku/cedar:14 bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run-deps; test/run-features; test/run-versions;'
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
test-heroku-16:
|
test-heroku-16:
|
||||||
@echo "Running tests in docker (heroku-16)..."
|
@echo "Running tests in docker (heroku-16)..."
|
||||||
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=heroku-16" heroku/heroku:16-build bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
|
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=heroku-16" heroku/heroku:16-build bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run-deps; test/run-features; test/run-versions;'
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
test-heroku-18:
|
test-heroku-18:
|
||||||
@echo "Running tests in docker (heroku-18)..."
|
@echo "Running tests in docker (heroku-18)..."
|
||||||
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=heroku-18" heroku/heroku:18-build bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run;'
|
@docker run -v $(shell pwd):/buildpack:ro --rm -it -e "STACK=heroku-18" heroku/heroku:18-build bash -c 'cp -r /buildpack /buildpack_test; cd /buildpack_test/; test/run-deps; test/run-features; test/run-versions;'
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
buildenv-heroku-16:
|
buildenv-heroku-16:
|
||||||
@echo "Creating build environment (heroku-16)..."
|
@echo "Creating build environment (heroku-16)..."
|
||||||
@echo
|
@echo
|
||||||
@docker build --pull -t python-buildenv-heroku-16 .
|
@docker build --pull -f $(shell pwd)/builds/heroku-16.Dockerfile -t python-buildenv-heroku-16 .
|
||||||
@echo
|
@echo
|
||||||
@echo "Usage..."
|
@echo "Usage..."
|
||||||
@echo
|
@echo
|
||||||
@@ -36,6 +36,19 @@ buildenv-heroku-16:
|
|||||||
@echo
|
@echo
|
||||||
@docker run -it --rm python-buildenv-heroku-16
|
@docker run -it --rm python-buildenv-heroku-16
|
||||||
|
|
||||||
|
buildenv-heroku-18:
|
||||||
|
@echo "Creating build environment (heroku-18)..."
|
||||||
|
@echo
|
||||||
|
@docker build --pull -f $(shell pwd)/builds/heroku-18.Dockerfile -t python-buildenv-heroku-18 .
|
||||||
|
@echo
|
||||||
|
@echo "Usage..."
|
||||||
|
@echo
|
||||||
|
@echo " $$ export AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar # Optional unless deploying"
|
||||||
|
@echo " $$ bob build runtimes/python-2.7.13"
|
||||||
|
@echo " $$ bob deploy runtimes/python-2.7.13"
|
||||||
|
@echo
|
||||||
|
@docker run -it --rm python-buildenv-heroku-18
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
git clone https://github.com/kennethreitz/pip-pop.git
|
git clone https://github.com/kennethreitz/pip-pop.git
|
||||||
mv pip-pop/bin/* vendor/pip-pop/
|
mv pip-pop/bin/* vendor/pip-pop/
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ remote: Compressing source files... done.
|
|||||||
remote: Building source:
|
remote: Building source:
|
||||||
remote:
|
remote:
|
||||||
remote: -----> Python app detected
|
remote: -----> Python app detected
|
||||||
remote: -----> Installing python-3.7.1
|
remote: -----> Installing python-3.7.4
|
||||||
remote: -----> Installing pip
|
remote: -----> Installing pip
|
||||||
remote: -----> Installing SQLite3
|
remote: -----> Installing SQLite3
|
||||||
remote: -----> Installing requirements with pip
|
remote: -----> Installing requirements with pip
|
||||||
@@ -44,7 +44,7 @@ A `requirements.txt` must be present at the root of your application's repositor
|
|||||||
|
|
||||||
To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version.
|
To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version.
|
||||||
|
|
||||||
Current default Python Runtime: Python 3.6.7
|
Current default Python Runtime: Python 3.6.9
|
||||||
|
|
||||||
Alternatively, you can provide a `setup.py` file, or a `Pipfile`. Using `Pipenv` will generate `runtime.txt` based on `python-version` at build time.
|
Alternatively, you can provide a `setup.py` file, or a `Pipfile`. Using `Pipenv` will generate `runtime.txt` based on `python-version` at build time.
|
||||||
|
|
||||||
@@ -61,9 +61,9 @@ Specify a Python Runtime
|
|||||||
|
|
||||||
Supported runtime options include:
|
Supported runtime options include:
|
||||||
|
|
||||||
- `python-3.7.1`
|
- `python-3.7.4`
|
||||||
- `python-3.6.7`
|
- `python-3.6.9`
|
||||||
- `python-2.7.15`
|
- `python-2.7.17`
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
|
|||||||
+28
-13
@@ -42,34 +42,49 @@ export BUILD_DIR CACHE_DIR ENV_DIR
|
|||||||
VENDOR_URL="https://lang-python.s3.amazonaws.com/$STACK"
|
VENDOR_URL="https://lang-python.s3.amazonaws.com/$STACK"
|
||||||
if [[ -n ${BUILDPACK_VENDOR_URL:-} ]]; then
|
if [[ -n ${BUILDPACK_VENDOR_URL:-} ]]; then
|
||||||
VENDOR_URL="$BUILDPACK_VENDOR_URL"
|
VENDOR_URL="$BUILDPACK_VENDOR_URL"
|
||||||
|
elif [[ -n ${USE_STAGING_BINARIES} ]]; then
|
||||||
|
VENDOR_URL="$USE_STAGING_BINARIES/$STACK"
|
||||||
fi
|
fi
|
||||||
export VENDOR_URL
|
export VENDOR_URL
|
||||||
|
|
||||||
# Which versions of Python are we using?
|
# Default Python Versions
|
||||||
# These variables are used to specify which versions of Python to install by default,
|
# shellcheck source=bin/default_pythons
|
||||||
# as well as prompt the user to upgrade if they are using an un–supported version.
|
source "$BIN_DIR/default_pythons"
|
||||||
# Note: When 3.7 lands, I recommend switching to LATEST_36 and LATEST_37.
|
|
||||||
DEFAULT_PYTHON_VERSION="python-3.6.8"
|
|
||||||
LATEST_36="python-3.6.8"
|
|
||||||
LATEST_37="python-3.7.2"
|
|
||||||
LATEST_35="python-3.5.6"
|
|
||||||
LATEST_34="python-3.4.9"
|
|
||||||
LATEST_27="python-2.7.15"
|
|
||||||
|
|
||||||
# Supported Python Branches
|
# Supported Python Branches
|
||||||
|
PY38="python-3.8"
|
||||||
PY37="python-3.7"
|
PY37="python-3.7"
|
||||||
PY36="python-3.6"
|
PY36="python-3.6"
|
||||||
PY35="python-3.5"
|
PY35="python-3.5"
|
||||||
PY34="python-3.4"
|
PY34="python-3.4"
|
||||||
PY27="python-2.7"
|
PY27="python-2.7"
|
||||||
|
PYPY27="pypy2.7"
|
||||||
|
PYPY36="pypy3.6"
|
||||||
|
|
||||||
# Which stack is used (for binary downloading), if none is provided (e.g. outside of Heroku)?
|
# Which stack is used (for binary downloading), if none is provided (e.g. outside of Heroku)?
|
||||||
DEFAULT_PYTHON_STACK="cedar-14"
|
DEFAULT_PYTHON_STACK="cedar-14"
|
||||||
# If pip doesn't match this version (the version we install), run the installer.
|
# If pip doesn't match this version (the version we install), run the installer.
|
||||||
PIP_UPDATE="9.0.2"
|
PIP_UPDATE="20.0.2"
|
||||||
|
|
||||||
export DEFAULT_PYTHON_VERSION DEFAULT_PYTHON_STACK PIP_UPDATE
|
for file in "$BUILD_DIR/runtime.txt" "$CACHE_DIR/.heroku/python-version" ; do
|
||||||
export LATEST_27 LATEST_36 LATEST_37 LATEST_35 LATEST_34
|
[ -f "$file" ] || continue
|
||||||
|
|
||||||
|
version=$(tr -d '[:space:]' < "$file")
|
||||||
|
|
||||||
|
case "$version" in "$PY34"*)
|
||||||
|
# Python 3.4 support was dropped in pip >= 19.2.
|
||||||
|
PIP_UPDATE="19.1.1"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ -f "$BUILD_DIR/Pipfile" ]]; then
|
||||||
|
# Do not force pipenv users to re-install pipenv locally.
|
||||||
|
PIP_UPDATE="9.0.2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export DEFAULT_PYTHON_STACK PIP_UPDATE
|
||||||
export PY37 PY36 PY35 PY27 PY34
|
export PY37 PY36 PY35 PY27 PY34
|
||||||
|
|
||||||
# Common Problem Warnings:
|
# Common Problem Warnings:
|
||||||
|
|||||||
Executable
+21
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DEFAULT_PYTHON_VERSION="python-3.6.10"
|
||||||
|
LATEST_38="python-3.8.1"
|
||||||
|
LATEST_37="python-3.7.6"
|
||||||
|
LATEST_36="python-3.6.10"
|
||||||
|
LATEST_35="python-3.5.7"
|
||||||
|
LATEST_34="python-3.4.10"
|
||||||
|
LATEST_27="python-2.7.17"
|
||||||
|
PYPY_36="pypy3.6-7.2.0"
|
||||||
|
PYPY_27="pypy2.7-7.2.0"
|
||||||
|
|
||||||
|
export DEFAULT_PYTHON_VERSION \
|
||||||
|
LATEST_38 \
|
||||||
|
LATEST_37 \
|
||||||
|
LATEST_36 \
|
||||||
|
LATEST_35 \
|
||||||
|
LATEST_34 \
|
||||||
|
LATEST_27 \
|
||||||
|
PYPY_36 \
|
||||||
|
PYPY_27
|
||||||
+1
-1
@@ -26,9 +26,9 @@ if (pip-grep -s requirements.txt GDAL gdal pygdal &> /dev/null) then
|
|||||||
mkdir -p .heroku/vendor
|
mkdir -p .heroku/vendor
|
||||||
# Download and extract cryptography into target vendor directory.
|
# Download and extract cryptography into target vendor directory.
|
||||||
curl "$VENDORED_GDAL" -s | tar zxv -C .heroku/vendor &> /dev/null
|
curl "$VENDORED_GDAL" -s | tar zxv -C .heroku/vendor &> /dev/null
|
||||||
|
mcount "steps.vendor.gdal"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GDAL=$(pwd)/vendor
|
GDAL=$(pwd)/vendor
|
||||||
export GDAL
|
export GDAL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ source "$BIN_DIR/utils"
|
|||||||
|
|
||||||
# If GDAL exists within requirements, use vendored gdal.
|
# If GDAL exists within requirements, use vendored gdal.
|
||||||
if [[ "$BUILD_WITH_GEO_LIBRARIES" ]]; then
|
if [[ "$BUILD_WITH_GEO_LIBRARIES" ]]; then
|
||||||
|
mcount "buildvar.BUILD_WITH_GEO_LIBRARIES"
|
||||||
|
|
||||||
if [ ! -f ".heroku/vendor/bin/proj" ]; then
|
if [ ! -f ".heroku/vendor/bin/proj" ]; then
|
||||||
echo "-----> Bootstrapping gdal, geos, proj."
|
echo "-----> Bootstrapping gdal, geos, proj."
|
||||||
@@ -31,9 +32,11 @@ if [[ "$BUILD_WITH_GEO_LIBRARIES" ]]; then
|
|||||||
curl "$VENDORED_GEOS" -s | tar zxv -C .heroku/vendor &> /dev/null
|
curl "$VENDORED_GEOS" -s | tar zxv -C .heroku/vendor &> /dev/null
|
||||||
curl "$VENDORED_PROJ" -s | tar zxv -C .heroku/vendor &> /dev/null
|
curl "$VENDORED_PROJ" -s | tar zxv -C .heroku/vendor &> /dev/null
|
||||||
|
|
||||||
|
mcount "steps.vendor.geo_libs"
|
||||||
# Copy libjasper from build image to slug.
|
# Copy libjasper from build image to slug.
|
||||||
if [[ "$STACK" == "heroku-16" ]]; then
|
if [[ "$STACK" == "heroku-16" ]]; then
|
||||||
cp /usr/lib/x86_64-linux-gnu/libjasper.so* ".heroku/vendor/lib/."
|
cp /usr/lib/x86_64-linux-gnu/libjasper.so* ".heroku/vendor/lib/."
|
||||||
|
mcount "steps.vendor.libjasper"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-1
@@ -4,6 +4,6 @@
|
|||||||
if [[ -f "requirements.txt" ]]; then
|
if [[ -f "requirements.txt" ]]; then
|
||||||
if (grep -Fiq "hg+" requirements.txt) then
|
if (grep -Fiq "hg+" requirements.txt) then
|
||||||
/app/.heroku/python/bin/pip install mercurial | cleanup | indent
|
/app/.heroku/python/bin/pip install mercurial | cleanup | indent
|
||||||
|
mcount "steps.mercurial"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ if sp-grep -s nltk; then
|
|||||||
python -m nltk.downloader -d "$BUILD_DIR/.heroku/python/nltk_data" "${nltk_packages[@]}" | indent
|
python -m nltk.downloader -d "$BUILD_DIR/.heroku/python/nltk_data" "${nltk_packages[@]}" | indent
|
||||||
set_env NLTK_DATA "/app/.heroku/python/nltk_data"
|
set_env NLTK_DATA "/app/.heroku/python/nltk_data"
|
||||||
|
|
||||||
|
mcount "buildvar.NLTK_PACKAGES_DEFINITION"
|
||||||
|
mcount "steps.nltk"
|
||||||
else
|
else
|
||||||
puts-warn "'nltk.txt' not found, not downloading any corpora"
|
puts-warn "'nltk.txt' not found, not downloading any corpora"
|
||||||
puts-warn "Learn more: https://devcenter.heroku.com/articles/python-nltk"
|
puts-warn "Learn more: https://devcenter.heroku.com/articles/python-nltk"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
|
|||||||
|
|
||||||
|
|
||||||
if ! pip-diff --stale requirements-declared.txt requirements.txt --exclude setuptools pip wheel > .heroku/python/requirements-stale.txt; then
|
if ! pip-diff --stale requirements-declared.txt requirements.txt --exclude setuptools pip wheel > .heroku/python/requirements-stale.txt; then
|
||||||
mount "failure.bad-requirements"
|
mcount "failure.bad-requirements"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -fr requirements-declared.txt
|
rm -fr requirements-declared.txt
|
||||||
|
|||||||
+8
-8
@@ -26,7 +26,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if [ ! "$SKIP_PIPENV_INSTALL" ]; then
|
if [ ! "$SKIP_PIPENV_INSTALL" ]; then
|
||||||
# Pipenv support (Generate requriements.txt with pipenv).
|
# Pipenv support (Generate requirements.txt with pipenv).
|
||||||
if [[ -f Pipfile ]]; then
|
if [[ -f Pipfile ]]; then
|
||||||
# Measure that we're using Pipenv.
|
# Measure that we're using Pipenv.
|
||||||
mcount "tool.pipenv"
|
mcount "tool.pipenv"
|
||||||
@@ -60,10 +60,16 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
|
|||||||
# avoid this eager behavior.
|
# avoid this eager behavior.
|
||||||
/app/.heroku/python/bin/pip install pipenv==$PIPENV_VERSION --upgrade --upgrade-strategy only-if-needed &> /dev/null
|
/app/.heroku/python/bin/pip install pipenv==$PIPENV_VERSION --upgrade --upgrade-strategy only-if-needed &> /dev/null
|
||||||
|
|
||||||
|
# Install the test dependencies, for CI.
|
||||||
|
if [ "$INSTALL_TEST" ]; then
|
||||||
|
puts-step "Installing test dependencies…"
|
||||||
|
/app/.heroku/python/bin/pipenv install --dev --system --deploy 2>&1 | cleanup | indent
|
||||||
|
|
||||||
# Install the dependencies.
|
# Install the dependencies.
|
||||||
if [[ ! -f Pipfile.lock ]]; then
|
elif [[ ! -f Pipfile.lock ]]; then
|
||||||
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION…"
|
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION…"
|
||||||
/app/.heroku/python/bin/pipenv install --system --skip-lock 2>&1 | indent
|
/app/.heroku/python/bin/pipenv install --system --skip-lock 2>&1 | indent
|
||||||
|
|
||||||
else
|
else
|
||||||
pipenv-to-pip Pipfile.lock > requirements.txt
|
pipenv-to-pip Pipfile.lock > requirements.txt
|
||||||
"$BIN_DIR/steps/pip-uninstall"
|
"$BIN_DIR/steps/pip-uninstall"
|
||||||
@@ -73,12 +79,6 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
|
|||||||
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION…"
|
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION…"
|
||||||
/app/.heroku/python/bin/pipenv install --system --deploy 2>&1 | indent
|
/app/.heroku/python/bin/pipenv install --system --deploy 2>&1 | indent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install the test dependencies, for CI.
|
|
||||||
if [ "$INSTALL_TEST" ]; then
|
|
||||||
puts-step "Installing test dependencies…"
|
|
||||||
/app/.heroku/python/bin/pipenv install --dev --system --deploy 2>&1 | cleanup | indent
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
export SKIP_PIP_INSTALL=1
|
export SKIP_PIP_INSTALL=1
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ if (pip-grep -s requirements.txt pylibmc &> /dev/null) then
|
|||||||
mkdir -p .heroku/vendor
|
mkdir -p .heroku/vendor
|
||||||
# Download and extract libmemcached into target vendor directory.
|
# Download and extract libmemcached into target vendor directory.
|
||||||
curl "$VENDORED_MEMCACHED" -s | tar zxv -C .heroku/vendor &> /dev/null
|
curl "$VENDORED_MEMCACHED" -s | tar zxv -C .heroku/vendor &> /dev/null
|
||||||
|
mcount "steps.vendor.pylibmc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LIBMEMCACHED=$(pwd)/vendor
|
LIBMEMCACHED=$(pwd)/vendor
|
||||||
|
|||||||
+41
-2
@@ -9,8 +9,19 @@ VENDORED_PYTHON="${VENDOR_URL}/runtimes/$PYTHON_VERSION.tar.gz"
|
|||||||
|
|
||||||
SECURITY_UPDATE="Python has released a security update! Please consider upgrading to"
|
SECURITY_UPDATE="Python has released a security update! Please consider upgrading to"
|
||||||
|
|
||||||
|
ONLY_SUPPORTED_2_VERSION="Only the latest version of Python 2 is supported on the platform. Please consider upgrading to"
|
||||||
|
|
||||||
|
PYTHON_2_EOL_UPDATE="Python 2 has reached it's community EOL. Upgrade your Python runtime to maintain a secure application as soon as possible."
|
||||||
|
|
||||||
# check if runtime exists
|
# check if runtime exists
|
||||||
if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then
|
if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then
|
||||||
|
if [[ "$PYTHON_VERSION" == $PY38* ]]; then
|
||||||
|
# do things to alert the user of security release available
|
||||||
|
if [ "$PYTHON_VERSION" != "$LATEST_38" ]; then
|
||||||
|
puts-warn "$SECURITY_UPDATE" "$LATEST_38"
|
||||||
|
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if [[ "$PYTHON_VERSION" == $PY37* ]]; then
|
if [[ "$PYTHON_VERSION" == $PY37* ]]; then
|
||||||
# do things to alert the user of security release available
|
# do things to alert the user of security release available
|
||||||
if [ "$PYTHON_VERSION" != "$LATEST_37" ]; then
|
if [ "$PYTHON_VERSION" != "$LATEST_37" ]; then
|
||||||
@@ -41,8 +52,26 @@ if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then
|
|||||||
fi
|
fi
|
||||||
if [[ "$PYTHON_VERSION" == $PY27* ]]; then
|
if [[ "$PYTHON_VERSION" == $PY27* ]]; then
|
||||||
# security update note
|
# security update note
|
||||||
|
if [[ "$(date "+%Y")" -gt "2019" ]]; then
|
||||||
|
puts-warn "$PYTHON_2_EOL_UPDATE"
|
||||||
|
echo " Learn More: https://devcenter.heroku.com/articles/python-2-7-eol-faq"
|
||||||
|
fi
|
||||||
if [ "$PYTHON_VERSION" != "$LATEST_27" ]; then
|
if [ "$PYTHON_VERSION" != "$LATEST_27" ]; then
|
||||||
puts-warn "$SECURITY_UPDATE" "$LATEST_27"
|
puts-warn "$ONLY_SUPPORTED_2_VERSION" "$LATEST_27"
|
||||||
|
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ "$PYTHON_VERSION" == $PYPY27* ]]; then
|
||||||
|
# security update note
|
||||||
|
if [ "$PYTHON_VERSION" != "$PYPY_27" ]; then
|
||||||
|
puts-warn "Could not find that Pypy version. Did you mean" "${PYPY_27}?"
|
||||||
|
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ "$PYTHON_VERSION" == $PYPY36* ]]; then
|
||||||
|
# security update note
|
||||||
|
if [ "$PYTHON_VERSION" != "$PYPY_36" ]; then
|
||||||
|
puts-warn "Could not find that Pypy version. Did you mean" "${PYPY_36}?"
|
||||||
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
|
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -97,6 +126,16 @@ if [ ! "$SKIP_INSTALL" ]; then
|
|||||||
hash -r
|
hash -r
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Heroku uses the get-pip utility maintained by the Python community to vendor Pip.
|
||||||
|
# https://github.com/pypa/get-pip
|
||||||
|
GETPIP_URL="https://lang-python.s3.amazonaws.com/etc/get-pip.py"
|
||||||
|
GETPIP_PY="${TMPDIR:-/tmp}/get-pip.py"
|
||||||
|
|
||||||
|
if ! curl -s "${GETPIP_URL}" -o "$GETPIP_PY" &> /dev/null; then
|
||||||
|
mcount "failure.python.get-pip"
|
||||||
|
echo "Failed to pull down get-pip"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# If Pip isn't up to date:
|
# If Pip isn't up to date:
|
||||||
if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
|
if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
|
||||||
@@ -107,7 +146,7 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
|
|||||||
rm -fr /app/.heroku/python/lib/python*/site-packages/pip-*
|
rm -fr /app/.heroku/python/lib/python*/site-packages/pip-*
|
||||||
rm -fr /app/.heroku/python/lib/python*/site-packages/setuptools-*
|
rm -fr /app/.heroku/python/lib/python*/site-packages/setuptools-*
|
||||||
|
|
||||||
/app/.heroku/python/bin/python "$ROOT_DIR/vendor/get-pip.py" pip=="$PIP_UPDATE" &> /dev/null
|
/app/.heroku/python/bin/python "$GETPIP_PY" pip=="$PIP_UPDATE" &> /dev/null
|
||||||
/app/.heroku/python/bin/pip install "$ROOT_DIR/vendor/setuptools-39.0.1-py2.py3-none-any.whl" &> /dev/null
|
/app/.heroku/python/bin/pip install "$ROOT_DIR/vendor/setuptools-39.0.1-py2.py3-none-any.whl" &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Regular → Executable
+11
-20
@@ -3,15 +3,8 @@
|
|||||||
# shellcheck source=bin/utils
|
# shellcheck source=bin/utils
|
||||||
source "$BIN_DIR/utils"
|
source "$BIN_DIR/utils"
|
||||||
|
|
||||||
sqlite3_version() {
|
|
||||||
SQLITE3_VERSION=${SQLITE3_VERSION:-$(dpkg -s libsqlite3-0 | grep Version | sed 's/Version: //')}
|
|
||||||
|
|
||||||
export SQLITE3_VERSION
|
|
||||||
}
|
|
||||||
|
|
||||||
sqlite3_install() {
|
sqlite3_install() {
|
||||||
HEROKU_PYTHON_DIR="$1"
|
HEROKU_PYTHON_DIR="$1"
|
||||||
SQLITE3_VERSION="$2"
|
|
||||||
HEADERS_ONLY="$3"
|
HEADERS_ONLY="$3"
|
||||||
|
|
||||||
mkdir -p "$HEROKU_PYTHON_DIR"
|
mkdir -p "$HEROKU_PYTHON_DIR"
|
||||||
@@ -29,9 +22,9 @@ sqlite3_install() {
|
|||||||
|
|
||||||
apt-get $APT_OPTIONS update > /dev/null 2>&1
|
apt-get $APT_OPTIONS update > /dev/null 2>&1
|
||||||
if [ -z "$HEADERS_ONLY" ]; then
|
if [ -z "$HEADERS_ONLY" ]; then
|
||||||
apt-get $APT_OPTIONS -y -d --reinstall install libsqlite3-dev="$SQLITE3_VERSION" sqlite3="$SQLITE3_VERSION" > /dev/null 2>&1
|
apt-get $APT_OPTIONS -y -d --reinstall install libsqlite3-dev sqlite3 > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
apt-get $APT_OPTIONS -y -d --reinstall install libsqlite3-dev="$SQLITE3_VERSION"
|
apt-get $APT_OPTIONS -y -d --reinstall install libsqlite3-dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find "$APT_CACHE_DIR/archives/" -name "*.deb" -exec dpkg -x {} "$HEROKU_PYTHON_DIR/sqlite3/" \;
|
find "$APT_CACHE_DIR/archives/" -name "*.deb" -exec dpkg -x {} "$HEROKU_PYTHON_DIR/sqlite3/" \;
|
||||||
@@ -64,7 +57,6 @@ sqlite3_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildpack_sqlite3_install() {
|
buildpack_sqlite3_install() {
|
||||||
sqlite3_version
|
|
||||||
HEROKU_PYTHON_DIR="$BUILD_DIR/.heroku/python"
|
HEROKU_PYTHON_DIR="$BUILD_DIR/.heroku/python"
|
||||||
|
|
||||||
SQLITE3_VERSION_FILE="$BUILD_DIR/.heroku/python-sqlite3-version"
|
SQLITE3_VERSION_FILE="$BUILD_DIR/.heroku/python-sqlite3-version"
|
||||||
@@ -72,16 +64,15 @@ buildpack_sqlite3_install() {
|
|||||||
INSTALLED_SQLITE3_VERSION=$(cat "$SQLITE3_VERSION_FILE")
|
INSTALLED_SQLITE3_VERSION=$(cat "$SQLITE3_VERSION_FILE")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# python version check
|
puts-step "Installing SQLite3"
|
||||||
if python_sqlite3_check "$PYTHON_VERSION"; then
|
|
||||||
# only install if the sqlite3 version has changed
|
|
||||||
if [ "$INSTALLED_SQLITE3_VERSION" != "$SQLITE3_VERSION" ]; then
|
|
||||||
puts-step "Installing SQLite3"
|
|
||||||
sqlite3_install "$BUILD_DIR/.heroku/python" "$SQLITE3_VERSION"
|
|
||||||
|
|
||||||
# save version installed
|
if sqlite3_install "$BUILD_DIR/.heroku/python" ; then
|
||||||
mkdir -p "$CACHE_DIR/.heroku/"
|
echo "Sqlite3 successfully installed."
|
||||||
echo "$SQLITE3_VERSION" > "$CACHE_DIR/.heroku/python-sqlite3-version"
|
mcount "success.python.sqlite3"
|
||||||
fi
|
else
|
||||||
|
echo "Sqlite3 failed to install."
|
||||||
|
mcount "failure.python.sqlite3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$CACHE_DIR/.heroku/"
|
||||||
}
|
}
|
||||||
|
|||||||
+42
-26
@@ -1,41 +1,57 @@
|
|||||||
# Python Buildpack Binaries
|
# Python Buildpack Binaries
|
||||||
|
|
||||||
For Cedar-14 stack
|
## Building the Docker Images
|
||||||
------------------
|
|
||||||
|
|
||||||
To get started with it, create an app on Heroku inside a clone of this repository, and set your S3 config vars:
|
**After every change to your formulae, perform the following** from the root of the Git repository (not from `builds/`) to rebuild the images for each stack:
|
||||||
|
|
||||||
$ heroku create --buildpack https://github.com/heroku/heroku-buildpack-python#not-heroku
|
$ docker build --pull --tag heroku-python-build-cedar-14 --file $(pwd)/builds/cedar-14.Dockerfile .
|
||||||
$ heroku config:set WORKSPACE_DIR=builds
|
$ docker build --pull --tag heroku-python-build-heroku-16 --file $(pwd)/builds/heroku-16.Dockerfile .
|
||||||
$ heroku config:set AWS_ACCESS_KEY_ID=<your_aws_key>
|
$ docker build --pull --tag heroku-python-build-heroku-18 --file $(pwd)/builds/heroku-18.Dockerfile .
|
||||||
$ heroku config:set AWS_SECRET_ACCESS_KEY=<your_aws_secret>
|
|
||||||
$ heroku config:set S3_BUCKET=<your_s3_bucket_name>
|
|
||||||
|
|
||||||
|
## Using the Image
|
||||||
|
|
||||||
Then, shell into an instance and run a build by giving the name of the formula inside `builds`:
|
You can e.g. `bash` into each of the images you built using their tag:
|
||||||
|
|
||||||
$ heroku run bash
|
docker run --rm -ti heroku-python-build-cedar-14 bash
|
||||||
Running `bash` attached to terminal... up, run.6880
|
docker run --rm -ti heroku-python-build-heroku-16 bash
|
||||||
~ $ bob build runtimes/python-2.7.6
|
docker run --rm -ti heroku-python-build-heroku-18 bash
|
||||||
|
|
||||||
Fetching dependencies... found 2:
|
You then have a shell where you can run `bob build`, `bob deploy`, and so forth. You can of course also invoke these programs directly with `docker run`:
|
||||||
- libraries/sqlite
|
|
||||||
|
|
||||||
Building formula runtimes/python-2.7.6:
|
docker run --rm -ti heroku-python-build-heroku-18 bob build runtimes/python-2.7.15
|
||||||
=== Building Python 2.7.6
|
|
||||||
Fetching Python v2.7.6 source...
|
|
||||||
Compiling...
|
|
||||||
|
|
||||||
If this works, run `bob deploy` instead of `bob build` to have the result uploaded to S3 for you.
|
In order to `bob deploy`, AWS credentials must be set up, as well as name and prefix of your custom S3 bucket (unless you're deploying to the Heroku production buckets that are pre-defined in each `Dockerfile`); see next section for details.
|
||||||
|
|
||||||
To speed things up drastically, it'll usually be a good idea to `heroku run bash --size PX` instead.
|
## Configuration
|
||||||
|
|
||||||
For Heroku-16 stack
|
File `dockerenv.default` contains a list of required env vars; most of these have default values defined in `Dockerfile`. You can copy this file to a location outside the buildpack and modify it with the values you desire and pass its location with `--env-file`, or pass the env vars to `docker run` using `--env`.
|
||||||
-------------------
|
|
||||||
|
|
||||||
1. Ensure GNU Make and Docker are installed.
|
Out of the box, each `Dockerfile` has the correct values predefined for `S3_BUCKET`, `S3_PREFIX`, and `S3_REGION`. If you're building your own packages, you'll likely want to change `S3_BUCKET` and `S3_PREFIX` to match your info. Instead of setting `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` into that file, you may also pass them to `docker run` through the environment, or explicitly using `--env`, in order to prevent accidental commits of credentials.
|
||||||
2. From the root of the buildpack repository, run: `make buildenv-heroku-16`
|
|
||||||
3. Follow the instructions displayed!
|
|
||||||
|
|
||||||
|
### Passing AWS credentials to the container
|
||||||
|
|
||||||
Enjoy :)
|
If you want to deploy packages and thus need to pass `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, you can either pass them explicitly, through your environment, or through an env file.
|
||||||
|
|
||||||
|
#### Passing credentials explicitly
|
||||||
|
|
||||||
|
docker run --rm -ti -e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... heroku-python-build-heroku-18 bash
|
||||||
|
|
||||||
|
#### Passing credentials through the environment
|
||||||
|
|
||||||
|
The two environment variables `AWS_ACCESS_KEY_ID`and `AWS_SECRET_ACCESS_KEY` are defined in `builds/dockerenv.default`, without values. This will cause Docker to "forward" values for these variables from the current environment, so you can pass them in:
|
||||||
|
|
||||||
|
AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... docker run --rm -ti --env-file=builds/dockerenv.default heroku-python-build-heroku-18 bash
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
export AWS_ACCESS_KEY_ID=...
|
||||||
|
export AWS_SECRET_ACCESS_KEY=...
|
||||||
|
docker run --rm -ti --env-file=builds/dockerenv.default heroku-python-build-heroku-18 bash
|
||||||
|
|
||||||
|
#### Passing credentials through a separate env file
|
||||||
|
|
||||||
|
This method is the easiest for users who want to build packages in their own S3 bucket, as they will have to adjust the `S3_BUCKET` and `S3_PREFIX` environment variable values anyway from their default values.
|
||||||
|
|
||||||
|
For this method, it is important to keep the credentials file in a location outside the buildpack, so that your credentials aren't accidentally committed. Copy `builds/dockerenv.default` **to a safe location outside the buildpack directory**, and insert your values for `AWS_ACCESS_KEY_ID`and `AWS_SECRET_ACCESS_KEY`.
|
||||||
|
|
||||||
|
docker run --rm -ti --env-file=../SOMEPATHOUTSIDE/s3.env heroku-python-build-heroku-18 bash
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
FROM heroku/cedar:14
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
ENV WORKSPACE_DIR="/app/builds" \
|
||||||
|
S3_BUCKET="lang-python" \
|
||||||
|
S3_PREFIX="cedar-14/" \
|
||||||
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
STACK="cedar-14"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y python-pip libsqlite3-dev realpath && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY requirements.txt /app/
|
||||||
|
RUN pip install -r /app/requirements.txt
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
AWS_ACCESS_KEY_ID
|
||||||
|
AWS_SECRET_ACCESS_KEY
|
||||||
|
S3_BUCKET
|
||||||
|
S3_PREFIX
|
||||||
|
S3_REGION
|
||||||
@@ -3,9 +3,11 @@ FROM heroku/heroku:16-build
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV WORKSPACE_DIR="/app/builds" \
|
ENV WORKSPACE_DIR="/app/builds" \
|
||||||
S3_BUCKET="lang-python" \
|
S3_BUCKET="lang-python" \
|
||||||
S3_PREFIX="heroku-16/"
|
S3_PREFIX="heroku-16/" \
|
||||||
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
STACK="heroku-16"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y python-pip && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y python-pip libsqlite3-dev && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app/
|
||||||
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
FROM heroku/heroku:18-build.v16
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
ENV WORKSPACE_DIR="/app/builds" \
|
||||||
|
S3_BUCKET="lang-python" \
|
||||||
|
S3_PREFIX="heroku-18/" \
|
||||||
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
STACK="heroku-18"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y python-pip-whl=9.0.1-2 python-pip=9.0.1-2 python-setuptools python-wheel libsqlite3-dev && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY requirements.txt /app/
|
||||||
|
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# fail hard
|
||||||
|
set -o pipefail
|
||||||
|
# fail harder
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
|
||||||
|
dep_formula=${0#$WORKSPACE_DIR/} # this is the original script, e.g. pypy-5.3.1
|
||||||
|
dep_name=$(basename $BASH_SOURCE) # this is us
|
||||||
|
dep_version=${dep_formula##*"/${dep_name}-"} # "subtract" our name from full version name
|
||||||
|
dep_package=${dep_name}2-v${dep_version} # it's always "pypy2-…"
|
||||||
|
dep_dirname=${dep_package}-linux64
|
||||||
|
dep_archive_name=${dep_dirname}.tar.bz2
|
||||||
|
dep_url=https://bitbucket.org/pypy/pypy/downloads/${dep_archive_name}
|
||||||
|
|
||||||
|
echo "Building PyPy…"
|
||||||
|
|
||||||
|
curl -L "${dep_url}" | tar jx -C "${OUT_PREFIX}" --strip-components 1 # extract to $OUT_PREFIX, drop the first directory level, which is the archive name
|
||||||
|
|
||||||
|
ln "$OUT_PREFIX/bin/pypy" "$OUT_PREFIX/bin/python"
|
||||||
@@ -2,13 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
# NOTICE: This formula only works for the cedar-14 stack, not cedar.
|
source $(dirname $0)/pypy
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.3.1-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy2-v5.3.1-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -2,13 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
# NOTICE: This formula only works for the cedar-14 stack, not cedar.
|
source $(dirname $0)/pypy
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.6.0-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy2-v5.6.0-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -2,13 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
# NOTICE: This formula only works for the cedar-14 and heroku-16 stacks, not cedar.
|
source $(dirname $0)/pypy
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.0-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy2-v5.7.0-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -2,13 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
# NOTICE: This formula only works for the cedar-14 stack, not cedar.
|
source $(dirname $0)/pypy
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy2-v5.7.1-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -2,11 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/pypy
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy2-v5.8.0-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
Executable
+23
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# fail hard
|
||||||
|
set -o pipefail
|
||||||
|
# fail harder
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
|
||||||
|
dep_formula=${0#$WORKSPACE_DIR/} # this is the original script, e.g. pypy-5.3.1
|
||||||
|
dep_name=$(basename $BASH_SOURCE) # this is us
|
||||||
|
dep_version=${dep_formula##*"/${dep_name}-"} # "subtract" our name from full version name
|
||||||
|
dep_package=${dep_name}-v${dep_version} # it's always "pypy2-…"
|
||||||
|
dep_dirname=${dep_package}-linux64
|
||||||
|
dep_archive_name=${dep_dirname}.tar.bz2
|
||||||
|
dep_url=https://bitbucket.org/pypy/pypy/downloads/${dep_archive_name}
|
||||||
|
|
||||||
|
echo "Building PyPy…"
|
||||||
|
echo "${dep_url}"
|
||||||
|
|
||||||
|
curl -L "${dep_url}" | tar jx -C "${OUT_PREFIX}" --strip-components 1 # extract to $OUT_PREFIX, drop the first directory level, which is the archive name
|
||||||
|
|
||||||
|
ln "$OUT_PREFIX/bin/pypy" "$OUT_PREFIX/bin/python"
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/pypy2.7
|
||||||
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# fail hard
|
||||||
|
set -o pipefail
|
||||||
|
# fail harder
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
|
||||||
|
dep_formula=${0#$WORKSPACE_DIR/} # this is the original script, e.g. pypy-5.3.1
|
||||||
|
dep_name=$(basename $BASH_SOURCE) # this is us
|
||||||
|
dep_version=${dep_formula##*"/${dep_name}-"} # "subtract" our name from full version name
|
||||||
|
dep_package=${dep_name}${dep_version_prefix:-}-v${dep_version}${dep_version_suffix:-}
|
||||||
|
dep_dirname=${dep_package}-linux64
|
||||||
|
dep_archive_name=${dep_dirname}.tar.bz2
|
||||||
|
dep_url=https://bitbucket.org/pypy/pypy/downloads/${dep_archive_name}
|
||||||
|
|
||||||
|
echo "Building PyPy3…"
|
||||||
|
|
||||||
|
curl -L "${dep_url}" | tar jx -C "${OUT_PREFIX}" --strip-components 1 # extract to $OUT_PREFIX, drop the first directory level, which is the archive name
|
||||||
|
|
||||||
|
ln "$OUT_PREFIX/bin/pypy3" "$OUT_PREFIX/bin/python"
|
||||||
@@ -2,13 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
# NOTICE: This formula only works for the cedar-14 stack, not cedar.
|
source $(dirname $0)/pypy3
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3-2.4.0-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy3-2.4.0-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
# NOTICE: This formula only works for the cedar-14 stack, not cedar.
|
# version pypy3-5.5.0 is really called pypy3.3-v5.5.0-alpha
|
||||||
|
dep_version_prefix=".3"
|
||||||
OUT_PREFIX=$1
|
dep_version_suffix="-alpha"
|
||||||
|
source $(dirname $0)/pypy3
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v5.5.0-alpha-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy3-v5.5.0-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -2,11 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/pypy3
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.7.1-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy3-v5.7.1-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -2,11 +2,4 @@
|
|||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
# Build Deps: libraries/sqlite
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/pypy3
|
||||||
|
|
||||||
echo "Building PyPy…"
|
|
||||||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.8.0-linux64.tar.bz2'
|
|
||||||
curl -L $SOURCE_TARBALL | tar jx
|
|
||||||
cp -R pypy3-v5.8.0-linux64/* $OUT_PREFIX
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/pypy3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
Executable
+23
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# fail hard
|
||||||
|
set -o pipefail
|
||||||
|
# fail harder
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
|
||||||
|
dep_formula=${0#$WORKSPACE_DIR/} # this is the original script, e.g. pypy-5.3.1
|
||||||
|
dep_name=$(basename $BASH_SOURCE) # this is us
|
||||||
|
dep_version=${dep_formula##*"/${dep_name}-"} # "subtract" our name from full version name
|
||||||
|
dep_package=${dep_name}${dep_version_prefix:-}-v${dep_version}${dep_version_suffix:-}
|
||||||
|
dep_dirname=${dep_package}-linux64
|
||||||
|
dep_archive_name=${dep_dirname}.tar.bz2
|
||||||
|
dep_url=https://bitbucket.org/pypy/pypy/downloads/${dep_archive_name}
|
||||||
|
|
||||||
|
echo "Building PyPy3…"
|
||||||
|
echo "${dep_url}"
|
||||||
|
|
||||||
|
curl -L "${dep_url}" | tar jx -C "${OUT_PREFIX}" --strip-components 1 # extract to $OUT_PREFIX, drop the first directory level, which is the archive name
|
||||||
|
|
||||||
|
ln "$OUT_PREFIX/bin/pypy3" "$OUT_PREFIX/bin/python"
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/pypy3.6
|
||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.10/Python-2.7.10.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.10 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.11/Python-2.7.11.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.11 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.12/Python-2.7.12.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.12 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
@@ -1,19 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.13/Python-2.7.13.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.13 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|||||||
@@ -1,19 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.14/Python-2.7.14.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.14 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|||||||
@@ -1,27 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.15/Python-2.7.15.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.15 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python2
|
||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
||||||
|
export BIN_DIR
|
||||||
|
|
||||||
|
# shellcheck source=bin/utils
|
||||||
|
source "$BIN_DIR/steps/sqlite3"
|
||||||
|
|
||||||
|
sqlite3_version
|
||||||
|
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
||||||
|
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
||||||
|
|
||||||
|
echo "Building Python…"
|
||||||
|
SOURCE_TARBALL='https://python.org/ftp/python/2.7.17/Python-2.7.17.tgz'
|
||||||
|
curl -L $SOURCE_TARBALL | tar xz
|
||||||
|
mv Python-2.7.17 src
|
||||||
|
cd src
|
||||||
|
|
||||||
|
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
# Remove unneeded test directories, similar to the official Docker Python images:
|
||||||
|
# https://github.com/docker-library/python
|
||||||
|
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.9/Python-2.7.9.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.9 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
Executable
+32
@@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
||||||
|
export BIN_DIR
|
||||||
|
|
||||||
|
# shellcheck source=bin/utils
|
||||||
|
source "$BIN_DIR/steps/sqlite3"
|
||||||
|
|
||||||
|
sqlite3_version
|
||||||
|
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
||||||
|
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
||||||
|
|
||||||
|
echo "Building Python…"
|
||||||
|
SOURCE_TARBALL='https://python.org/ftp/python/3.7.2/Python-3.7.2.tgz'
|
||||||
|
curl -L $SOURCE_TARBALL | tar xz
|
||||||
|
mv Python-3.7.2 src
|
||||||
|
cd src
|
||||||
|
|
||||||
|
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
# Remove unneeded test directories, similar to the official Docker Python images:
|
||||||
|
# https://github.com/docker-library/python
|
||||||
|
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
||||||
|
|
||||||
|
# Remove spare /
|
||||||
|
LOCATION=${OUT_PREFIX%?}
|
||||||
|
|
||||||
|
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.5.2/Python-3.5.2.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.5.2 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.5.3/Python-3.5.3.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.5.3 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.5.6/Python-3.5.6.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.5.6 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.0/Python-3.6.0.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.0 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.1/Python-3.6.1.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.1 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.2/Python-3.6.2.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.2 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.3/Python-3.6.3.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.3 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.4/Python-3.6.4.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.4 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.5/Python-3.6.5.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.5 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,29 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.6/Python-3.6.6.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.6 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.7/Python-3.6.7.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.7 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.8/Python-3.6.8.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.8 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -1,29 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.7.0/Python-3.7.0.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.7.0 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.7.1/Python-3.7.1.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.7.1 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.7.2/Python-3.7.2.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.7.2 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
||||||
|
export BIN_DIR
|
||||||
|
|
||||||
|
# Orient ourselves and build download link
|
||||||
|
dep_formula=${0#$WORKSPACE_DIR/} # this is the original script, e.g. pypy-5.3.1
|
||||||
|
BASE=${dep_formula##*/} # this gives us relative path
|
||||||
|
python_version=${BASE^} # this gives us only the filename with version number
|
||||||
|
version_number=$(echo "$python_version" | cut -d- -f2) # this returns just X.X.X
|
||||||
|
dep_url=https://python.org/ftp/python/${version_number}/${python_version}.tgz
|
||||||
|
|
||||||
|
echo "Building ${python_version}..."
|
||||||
|
echo "Pulling from source: ${dep_url}"
|
||||||
|
|
||||||
|
curl -L "${dep_url}" | tar xz -C "${OUT_PREFIX}"
|
||||||
|
mv "${OUT_PREFIX}/${python_version}" src
|
||||||
|
cd src
|
||||||
|
|
||||||
|
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
# Remove unneeded test directories, similar to the official Docker Python images:
|
||||||
|
# https://github.com/docker-library/python
|
||||||
|
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
||||||
|
|
||||||
|
# Create links to SQLITE headers so Python can call them at runtime
|
||||||
|
mkdir -p ${OUT_PREFIX}/include ${OUT_PREFIX}/lib/x86_64-linux-gnu
|
||||||
|
cp /usr/include/sqlite3*.h ${OUT_PREFIX}/include
|
||||||
|
ln -fs $(realpath /usr/lib/x86_64-linux-gnu/libsqlite3.so) ${OUT_PREFIX}/lib/x86_64-linux-gnu/libsqlite3.so
|
||||||
Executable
+37
@@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# fail hard
|
||||||
|
set -o pipefail
|
||||||
|
# fail harder
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
OUT_PREFIX=$1
|
||||||
|
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
||||||
|
export BIN_DIR
|
||||||
|
|
||||||
|
# Orient ourselves and build download link
|
||||||
|
dep_formula=${0#$WORKSPACE_DIR/} # this is the original script, e.g. pypy-5.3.1
|
||||||
|
BASE=${dep_formula##*/} # this gives us relative path
|
||||||
|
python_version=${BASE^} # this gives us only the filename with version number
|
||||||
|
version_number=$(echo "$python_version" | cut -d- -f2) # this returns just X.X.X
|
||||||
|
dep_url=https://python.org/ftp/python/${version_number}/${python_version}.tgz
|
||||||
|
|
||||||
|
echo "Building Python 3..."
|
||||||
|
echo "Pulling from source: ${dep_url}"
|
||||||
|
|
||||||
|
curl -L "${dep_url}" | tar xz -C "${OUT_PREFIX}"
|
||||||
|
mv "${OUT_PREFIX}/${python_version}" src
|
||||||
|
cd src
|
||||||
|
|
||||||
|
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
# Remove unneeded test directories, similar to the official Docker Python images:
|
||||||
|
# https://github.com/docker-library/python
|
||||||
|
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
||||||
|
|
||||||
|
# Remove spare /
|
||||||
|
LOCATION=${OUT_PREFIX%?}
|
||||||
|
|
||||||
|
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
||||||
@@ -4,7 +4,7 @@ describe "Python!!!!!!!!!!!" do
|
|||||||
it "🐍" do
|
it "🐍" do
|
||||||
Hatchet::Runner.new('python-getting-started', stack: DEFAULT_STACK).deploy do |app|
|
Hatchet::Runner.new('python-getting-started', stack: DEFAULT_STACK).deploy do |app|
|
||||||
expect(app.output).to match(/Installing pip/)
|
expect(app.output).to match(/Installing pip/)
|
||||||
expect(app.run('python -V')).to match(/3.6.8/)
|
expect(app.run('python -V')).to match(/3.6.10/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
django
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
pypy2.7-7.2.0
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
django
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
pypy3.6-7.2.0
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
pysqlite
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
python-2.7.16
|
||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
python-2.7.15
|
python-2.7.17
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-2.7.16
|
python-2.7.99
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-2.7.14
|
python-2.7.15
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.4.9
|
python-3.4.10
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.4.10
|
python-3.4.99
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.4.0
|
python-3.4.9
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.5.6
|
python-3.5.7
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.5.7
|
python-3.5.99
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.5.3
|
python-3.5.6
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.6.9
|
python-3.6.99
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.7.3
|
python-3.7.99
|
||||||
|
|||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
requests
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
python-3.8.0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
flask
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user