Merge pull request #287 from betatim/python3-runtime-test

Add a test to select Python 3 via runtime.txt
pull/294/head
Min RK 2018-04-02 10:53:22 +02:00 zatwierdzone przez GitHub
commit 00b40edeb4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,9 @@
System - Specifying runtime environments
----------------------------------------
You can specify runtime environments (such as Python 2 or 3) with a
``runtime.txt`` file.
This is an example that selects Python 3. Currently you can not use
this to select a sepcific version of Python 3 (e.g. 3.4 vs 3.6). If you
need this level of control we recommend you use a `environment.yml`.

Wyświetl plik

@ -0,0 +1 @@
python-3

Wyświetl plik

@ -0,0 +1,5 @@
#!/usr/bin/env python3
import sys
print(sys.version_info)
assert sys.version_info[:1] == (3,)