Add Pipfile + runtime.txt test

pull/649/head
Erik Sundell 2019-04-21 21:46:52 +02:00
rodzic 33970685bd
commit 330ac775d3
4 zmienionych plików z 28 dodań i 0 usunięć

Wyświetl plik

@ -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"

Wyświetl plik

@ -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?

Wyświetl plik

@ -0,0 +1 @@
python-3.7

Wyświetl plik

@ -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)