Skip to content

Commit

Permalink
Require Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Aug 18, 2021
1 parent 7c874f6 commit 1d2cafb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
os:
- ubuntu-20.04
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ def run(self):
author="Min RK",
author_email="[email protected]",
description="Capture C-level output in context managers",
install_requires=["selectors2; python_version<'3.4'"],
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/minrk/wurlitzer",
py_modules=["wurlitzer"],
python_requires=">=2.7",
python_requires=">=3.5",
license="MIT",
cmdclass={
"bdist_egg": bdist_egg if "bdist_egg" in sys.argv else bdist_egg_disabled
Expand All @@ -47,7 +46,6 @@ def run(self):
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
Expand Down
18 changes: 4 additions & 14 deletions wurlitzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,14 @@
import errno
import io
import os
from contextlib import contextmanager
from fcntl import F_GETFL, F_SETFL, fcntl

try:
from queue import Queue
except ImportError:
from Queue import Queue

try:
import selectors
except ImportError:
# py < 3.4
import selectors2 as selectors

import selectors
import sys
import threading
import time
import warnings
from contextlib import contextmanager
from fcntl import F_GETFL, F_SETFL, fcntl
from queue import Queue

libc = ctypes.CDLL(None)

Expand Down

0 comments on commit 1d2cafb

Please sign in to comment.