Package list python-procrunner / 03753f2
Drop Python 2.7 support * remove 2/3-compatibility code * remove six dependency * remove 2.7 testing Markus Gerstel 1 year, 6 months ago
7 changed file(s) with 14 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
1111 sudo: true
1212 - python: 3.6
1313 - python: 3.5
14 - python: 2.7
1514 - python: pypy
1615 - os: osx
1716 language: generic
2524 - os: osx
2625 language: generic
2726 env: CONDA=3.5 TOXENV=py35
28 - os: osx
29 language: generic
30 env: CONDA=2.7 TOXENV=py27
3127
3228 allow_failures:
3329 - env: OPTIONAL=1
101101 2. If the pull request adds functionality, the docs should be updated. Put
102102 your new functionality into a function with a docstring, and add the
103103 feature to the list in README.rst.
104 3. The pull request should work for Python 2.7, 3.5, 3.6, 3.7, 3.8, and for PyPy. Check
104 3. The pull request should work for supported CPython versions, and for PyPy. Check
105105 https://travis-ci.org/DiamondLightSource/python-procrunner/pull_requests
106106 and make sure that the tests pass for all supported Python versions.
107107
00 =======
11 History
22 =======
3
4 2.0.0
5 -----
6
7 * Python 3.5+ only, support for Python 2.7 has been dropped
8
39
410 1.1.0 (2019-11-04)
511 ------------------
22 from __future__ import absolute_import, division, print_function
33
44 import codecs
5 import io
56 import logging
67 import os
78 import select
8 import six
99 import subprocess
1010 import sys
1111 import time
111111
112112 def __init__(self, stream, output=True, debug=False, notify=None, callback=None):
113113 """Creates and starts a thread which reads from a stream."""
114 self._buffer = six.BytesIO()
114 self._buffer = io.BytesIO()
115115 self._closed = False
116116 self._closing = False
117117 self._debug = debug
300300 )
301301 return command
302302
303 if not command or not isinstance(command[0], six.string_types):
303 if not command or not isinstance(command[0], str):
304304 return command
305305
306306 try:
22 flake8==3.7.8
33 mock==3.0.5
44 pip==19.1.1
5 pytest==4.5.0 # pyup: <5.0 # for Python 2.7 support
5 pytest==4.5.0
66 pytest-runner==5.1
7 six==1.12.0
8 Sphinx==1.8.5 # pyup: <2.0 # for Python 2.7 support
7 Sphinx==1.8.5
98 tox==3.13.1
109 twine==1.13.0
1110 watchdog==0.9.0
1010 history = history_file.read()
1111
1212 requirements = [
13 "six",
1413 'pywin32; sys_platform=="win32"',
1514 ]
1615
3029 "License :: OSI Approved :: BSD License",
3130 "Natural Language :: English",
3231 "Operating System :: OS Independent",
33 "Programming Language :: Python :: 2",
34 "Programming Language :: Python :: 2.7",
3532 "Programming Language :: Python :: 3",
3633 "Programming Language :: Python :: 3.5",
3734 "Programming Language :: Python :: 3.6",
4946 keywords="procrunner",
5047 name="procrunner",
5148 packages=find_packages(include=["procrunner"]),
49 python_requires=">=3.5",
5250 setup_requires=setup_requirements,
5351 test_suite="tests",
5452 tests_require=test_requirements,
00 [tox]
1 envlist = py27, py35, py36, py37, py38, flake8
1 envlist = py35, py36, py37, py38, flake8
22
33 [travis]
44 python =
66 3.7: py37
77 3.6: py36
88 3.5: py35
9 2.7: py27
109
1110 [testenv:flake8]
1211 basepython = python