forked from jupyter/terminado
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
setup.py
from jupyter#65; Integrate tox with travis to handle m…
…ultiple tornado tests;
- Loading branch information
1 parent
b0b32f3
commit e3f6a92
Showing
3 changed files
with
56 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
language: python | ||
python: | ||
- "3.7" | ||
- "3.6" | ||
- "3.5" | ||
- "3.4" | ||
- "2.7" | ||
|
||
# Install dependencies | ||
install: | ||
- pip install tornado ptyprocess | ||
- pip install tox-travis | ||
|
||
# command to run tests | ||
script: py.test | ||
script: tox | ||
|
||
# Enable new Travis stack, should speed up builds | ||
sudo: false |
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,29 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
name="terminado", | ||
version="0.9.0", | ||
author="Jupyter Development Team", | ||
author_email="jupyter@googlegroups.com", | ||
description="A websocket backend for the Xterm.js JavaScript terminal emulator library.", | ||
url="https://github.com/jupyter/terminado", | ||
packages=setuptools.find_packages(exclude=["doc", "demos", "terminado/_static"]), | ||
classifiers=[ | ||
"Environment :: Web Environment", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 2.7", | ||
"Topic :: Terminals :: Terminal Emulators/X Terminals", | ||
], | ||
license="MIT", | ||
install_requires=[ | ||
"ptyprocess;os_name!='nt'", | ||
"pywinpty (>=0.5);os_name=='nt'", | ||
"tornado (>=4)", | ||
"python-interface", | ||
"msgpack" | ||
] | ||
) |
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,24 @@ | ||
[tox] | ||
# Due to flit setup dependency, py27 env won't built/run properly | ||
#envlist = {py27}-{tornado5},{py36}-{tornado5,tornado6},{py37,py38}-{tornado5,tornado6} | ||
envlist = {py36}-{tornado5,tornado6},{py37,py38}-{tornado5,tornado6} | ||
skip_missing_interpreters = True | ||
|
||
[testenv] | ||
deps = | ||
mock | ||
pytest | ||
setenv = | ||
#tornado4: TORNADO_VERSION=>=4.0.0,<5.0.0 | ||
tornado5: TORNADO_VERSION=>=5.0.0,<6.0.0 | ||
tornado6: TORNADO_VERSION=>=6.0.0,<7.0.0 | ||
commands = | ||
pip install "tornado{env:TORNADO_VERSION}" flit ptyprocess | ||
py.test | ||
passenv = | ||
TORNADO_VERSION | ||
|
||
[testenv:py27-tornado5] | ||
commands = | ||
pip install "tornado{env:TORNADO_VERSION}" | ||
py.test |