Skip to content

Commit 221a483

Browse files
committed
Limit support to Python 3.6+
1 parent f37892b commit 221a483

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
15+
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Set up Python ${{ matrix.python-version }}

readme.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Documentation Status](https://readthedocs.org/projects/curtsies/badge/?version=latest)](https://readthedocs.org/projects/curtsies/?badge=latest)
33
![Curtsies Logo](http://ballingt.com/assets/curtsiestitle.png)
44

5-
Curtsies is a Python 2.7 & 3.4+ compatible library for interacting with the terminal.
5+
Curtsies is a Python 3.6+ compatible library for interacting with the terminal.
66
This is what using (nearly every feature of) curtsies looks like:
77

88
```python
@@ -24,12 +24,7 @@ with FullscreenWindow() as window:
2424
elif c == '<SPACE>':
2525
a = FSArray(window.height, window.width)
2626
else:
27-
if sys.version_info[0] == 2:
28-
# in Python 2 repr() returns bytes
29-
# but Curtsies always uses unicode
30-
s = repr(c).decode()
31-
else:
32-
s = repr(c)
27+
s = repr(c)
3328
row = random.choice(range(window.height))
3429
column = random.choice(range(window.width-len(s)))
3530
color = random.choice([red, green, on_blue, yellow])

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def long_description():
2828
packages=["curtsies"],
2929
install_requires=[
3030
"blessings>=1.5",
31-
"wcwidth>=0.1.4",
32-
'typing; python_version<"3.5"',
31+
"wcwidth>=0.1.4"
3332
],
3433
tests_require=["mock", "pyte", "nose",],
3534
classifiers=[

0 commit comments

Comments
 (0)