kopia lustrzana https://github.com/jupyterhub/repo2docker
Add Pipfile + runtime.txt test
rodzic
33970685bd
commit
330ac775d3
|
@ -0,0 +1,13 @@
|
||||||
|
[[source]]
|
||||||
|
url = "https://pypi.python.org/simple"
|
||||||
|
verify_ssl = true
|
||||||
|
name = "pypi"
|
||||||
|
|
||||||
|
[packages]
|
||||||
|
pypi-pkg-test = "*"
|
||||||
|
|
||||||
|
[dev-packages]
|
||||||
|
there = "*"
|
||||||
|
|
||||||
|
[requires]
|
||||||
|
python_version = "3.6"
|
|
@ -0,0 +1,6 @@
|
||||||
|
Python - Pipfile with python_version and runtime.txt
|
||||||
|
----------------------------------------------------
|
||||||
|
|
||||||
|
We are ignoring the runtime.txt if there is a Pipfile or Pipfile.lock available.
|
||||||
|
And since `python_version = "3.6"` in the Pipfile, the `python-3.7` in
|
||||||
|
runtime.txt should be ignored. Is it?
|
|
@ -0,0 +1 @@
|
||||||
|
python-3.7
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
import sys
|
||||||
|
|
||||||
|
import pypi_pkg_test
|
||||||
|
import there
|
||||||
|
|
||||||
|
print(sys.version_info)
|
||||||
|
assert sys.version_info[:2] == (3, 6)
|
Ładowanie…
Reference in New Issue