Skip to content

Commit

Permalink
Add setup.py from jupyter#65; Integrate tox with travis to handle m…
Browse files Browse the repository at this point in the history
…ultiple tornado tests;
  • Loading branch information
devmonkey22 committed Jun 10, 2019
1 parent b0b32f3 commit e3f6a92
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
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
29 changes: 29 additions & 0 deletions setup.py
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"
]
)
24 changes: 24 additions & 0 deletions tox.ini
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

0 comments on commit e3f6a92

Please sign in to comment.