From 6c8dda956688d84fd57babe56d70a2635e4c471e Mon Sep 17 00:00:00 2001 From: "Afshin T. Darian" Date: Sun, 20 Sep 2020 13:48:32 +0100 Subject: [PATCH] v0.9.1 --- MANIFEST.in | 1 + pyproject.toml | 23 ++--------------------- setup.py | 39 +++++++++++++++++++++++++++++++++++++++ terminado/__init__.py | 2 +- 4 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..1aba38f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE diff --git a/pyproject.toml b/pyproject.toml index a06dbc4..d70af20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,23 +1,4 @@ [build-system] -requires = ["flit"] -build-backend = "flit.buildapi" +requires = ["setuptools>=40.8.0", "wheel"] +build-backend = "setuptools.build_meta" -[tool.flit.metadata] -module = "terminado" -author = "Jupyter Development Team" -author-email = "jupyter@googlegroups.com" -home-page = "https://github.com/jupyter/terminado" -description-file = "README.rst" -requires = [ - "ptyprocess;os_name!='nt'", - "pywinpty (>=0.5);os_name=='nt'", - "tornado (>=4)", -] -requires-python=">=3.6" -classifiers=[ - "Environment :: Web Environment", - "License :: OSI Approved :: BSD License", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 3", - "Topic :: Terminals :: Terminal Emulators/X Terminals", -] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..cd44e88 --- /dev/null +++ b/setup.py @@ -0,0 +1,39 @@ +from setuptools import setup, find_packages +import io + +with io.open('terminado/__init__.py', encoding='utf-8') as fid: + for line in fid: + if line.startswith('__version__'): + version = line.strip().split()[-1][1:-1] + break + + +setup_args = dict( + name = "terminado", + version = version, + author = "Jupyter Development Team", + author_email = "jupyter@googlegroups.com", + url = "https://github.com/jupyter/terminado", + packages = find_packages(), + include_package_data = True, + description = "Tornado websocket backend for the Xterm.js Javascript terminal emulator library.", + long_description = open("README.rst").read(), + long_description_content_type="txt/x-rst", + install_requires = [ + "ptyprocess;os_name!='nt'", + "pywinpty (>=0.5);os_name=='nt'", + "tornado (>=4)", + ], + python_requires=">=3.6", + classifiers=[ + "Environment :: Web Environment", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 3", + "Topic :: Terminals :: Terminal Emulators/X Terminals", + ] +) + + +if __name__ == '__main__': + setup(**setup_args) diff --git a/terminado/__init__.py b/terminado/__init__.py index 8ea209e..7bc3bd9 100644 --- a/terminado/__init__.py +++ b/terminado/__init__.py @@ -12,4 +12,4 @@ # Prevent a warning about no attached handlers in Python 2 logging.getLogger(__name__).addHandler(logging.NullHandler()) -__version__ = '0.9.0' +__version__ = '0.9.1'