Skip to content

Commit 08148eb

Browse files
committed
PY2 no more, future no more
1 parent 76aae4a commit 08148eb

15 files changed

+43
-58
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ install:
44
- pip install -e .
55
matrix:
66
include:
7-
- python: "2.7"
8-
env:
9-
- TOX_ENV=py27
107
- python: "3.6"
118
env:
129
- TOX_ENV=py36
@@ -22,7 +19,10 @@ matrix:
2219
- python: "3.9"
2320
env:
2421
- TOX_ENV=py39
25-
- python: "3.10-dev"
22+
- python: "3.10"
2623
env:
2724
- TOX_ENV=py310
28-
script: tox -e $TOX_ENV
25+
- python: "3.11"
26+
env:
27+
- TOX_ENV=py311
28+
script: tox -e $TOX_ENV

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Reconstruct Arabic sentences to be used in applications that don't support
66
Arabic script.
77

8-
Works with Python 2.x and 3.x
8+
Works with Python 3.x
99

1010
## Description
1111

@@ -248,6 +248,10 @@ https://github.com/mpcabd/python-arabic-reshaper/tarball/master
248248

249249
## Version History
250250

251+
### 3.0.0
252+
* Stop supporting Python 2.7
253+
* Remove dependency on `future`. See #88.
254+
251255
### 2.1.4
252256

253257
* Fix unparseable version bound for `fonttools` under Python 2

arabic_reshaper/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
ENABLE_ALL_LIGATURES)
1010

1111

12-
__version__ = '2.1.4'
12+
__version__ = '3.0.0'

arabic_reshaper/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.4'
1+
__version__ = '3.0.0'

arabic_reshaper/arabic_reshaper.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
88
# Website: http://mpcabd.xyz
99

10-
from __future__ import unicode_literals
11-
1210
import re
1311

1412
from itertools import repeat
@@ -52,7 +50,6 @@ class ArabicReshaper(object):
5250
Check these links for information on the configuration files format:
5351
5452
* Python 3: https://docs.python.org/3/library/configparser.html
55-
* Python 2: https://docs.python.org/2/library/configparser.html
5653
5754
See the default configuration file :file:`default-config.ini` for details
5855
on how to configure your reshaper.

arabic_reshaper/letters.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# <letter> should be in final form. If no replacement is specified for a form,
1414
# then no that means the letter doesn't support this form.
1515

16-
from __future__ import unicode_literals
17-
1816
UNSHAPED = 255
1917
ISOLATED = 0
2018
INITIAL = 1

arabic_reshaper/ligatures.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# 3. Letters
2020
# This way we make sure we replace the longest ligatures first
2121

22-
from __future__ import unicode_literals
2322
from itertools import chain
2423

2524
SENTENCES_LIGATURES = (

arabic_reshaper/reshaper_config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
88
# Website: http://mpcabd.xyz
99

10-
from __future__ import unicode_literals
11-
1210
import os
1311

1412
from configparser import ConfigParser

arabic_reshaper/tests/test_001_initialization.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import unicode_literals
2-
31
import unittest
42
import arabic_reshaper
53
import arabic_reshaper.ligatures

arabic_reshaper/tests/test_002_reshaping.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
from __future__ import unicode_literals
4-
from __future__ import print_function
5-
63
import unittest
74
import sys
85
import arabic_reshaper

0 commit comments

Comments
 (0)