-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
308 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
local-package-pyproject-toml = {file = "packages/local_package_pyproject_toml", editable = true} | ||
local-package-setup-py = {file = "packages/local_package_setup_py", editable = true} | ||
gunicorn = {git = "git+https://github.com/benoitc/gunicorn", ref = "20.1.0", editable = true} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This file is run by the inline buildpack, and tests that editable requirements are | ||
# usable by buildpacks that run after the Python buildpack during the build. | ||
|
||
set -euo pipefail | ||
|
||
BUILD_DIR="${1}" | ||
|
||
cd "${BUILD_DIR}" | ||
|
||
exec bin/test-entrypoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This file is run by the inline buildpack. | ||
|
||
set -euo pipefail | ||
|
||
echo "Inline" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
exec bin/test-entrypoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# List the filenames and contents of all .egg-link, .pth, and finder files in site-packages. | ||
find .heroku/python/lib/python*/site-packages/ -type f -and \( -name '*.egg-link' -or -name '*.pth' -or -name '__editable___*_finder.py' \) | sort | xargs -exec tail -n +1 | ||
echo | ||
|
||
echo -n "Running entrypoint for the pyproject.toml-based local package: " | ||
local_package_pyproject_toml | ||
|
||
echo -n "Running entrypoint for the setup.py-based local package: " | ||
local_package_setup_py | ||
|
||
echo -n "Running entrypoint for the VCS package: " | ||
gunicorn --version |
3 changes: 3 additions & 0 deletions
3
...able/packages/local_package_pyproject_toml/local_package_pyproject_toml.egg-info/PKG-INFO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Metadata-Version: 2.1 | ||
Name: local_package_pyproject_toml | ||
Version: 0.0.1 |
7 changes: 7 additions & 0 deletions
7
...e/packages/local_package_pyproject_toml/local_package_pyproject_toml.egg-info/SOURCES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pyproject.toml | ||
local_package_pyproject_toml/__init__.py | ||
local_package_pyproject_toml.egg-info/PKG-INFO | ||
local_package_pyproject_toml.egg-info/SOURCES.txt | ||
local_package_pyproject_toml.egg-info/dependency_links.txt | ||
local_package_pyproject_toml.egg-info/entry_points.txt | ||
local_package_pyproject_toml.egg-info/top_level.txt |
1 change: 1 addition & 0 deletions
1
...s/local_package_pyproject_toml/local_package_pyproject_toml.egg-info/dependency_links.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
2 changes: 2 additions & 0 deletions
2
...kages/local_package_pyproject_toml/local_package_pyproject_toml.egg-info/entry_points.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[console_scripts] | ||
local_package_pyproject_toml = local_package_pyproject_toml:hello |
1 change: 1 addition & 0 deletions
1
...packages/local_package_pyproject_toml/local_package_pyproject_toml.egg-info/top_level.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
local_package_pyproject_toml |
2 changes: 2 additions & 0 deletions
2
...v_editable/packages/local_package_pyproject_toml/local_package_pyproject_toml/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def hello(): | ||
print("Hello pyproject.toml!") |
6 changes: 6 additions & 0 deletions
6
spec/fixtures/pipenv_editable/packages/local_package_pyproject_toml/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[project] | ||
name = "local_package_pyproject_toml" | ||
version = "0.0.1" | ||
|
||
[project.scripts] | ||
local_package_pyproject_toml = "local_package_pyproject_toml:hello" |
2 changes: 2 additions & 0 deletions
2
...xtures/pipenv_editable/packages/local_package_setup_py/local_package_setup_py/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def hello(): | ||
print("Hello setup.py!") |
10 changes: 10 additions & 0 deletions
10
spec/fixtures/pipenv_editable/packages/local_package_setup_py/setup.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[metadata] | ||
name = local_package_setup_py | ||
version = 0.0.1 | ||
|
||
[options] | ||
packages = local_package_setup_py | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
local_package_setup_py = local_package_setup_py:hello |
3 changes: 3 additions & 0 deletions
3
spec/fixtures/pipenv_editable/packages/local_package_setup_py/setup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from setuptools import setup | ||
|
||
setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.