Skip to content

Commit f0232e5

Browse files
authored
Use jinja2 templating to update library to unicode 15.0, #61
- update `tox.ini`, `requirements*` files - use `pip-compile` with "requirements.in" files to generate "requirements.txt" files - use older testing tools for older python versions - ensure for python 3.10 and 3.11 - bin/update-tables.py changes, - use jinja2 (`.j2`) templating to generate code and documentation, - easier to support code generation of other languages - use https and perform retries - build cache uses HEAD to compare last-modified for refresh - `for wcwidth/table*.py` files - uses new template system to generate new table data files for unicode version 14 and 15 - when a description of unicode is single codepoint, describe only as 'A' instead of 'A..A'
2 parents 47b235c + b8cefaa commit f0232e5

34 files changed

+3355
-1985
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ htmlcov
1313
.coveralls.yml
1414
data
1515
.DS_Store
16+
.idea

.pylintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ disable=
2323
too-many-lines,
2424
inconsistent-return-statements,
2525
too-many-return-statements,
26-
too-many-boolean-expressions
26+
too-many-boolean-expressions,
27+
redundant-u-string-prefix,
28+
consider-using-f-string,
2729

2830
[FORMAT]
2931
max-line-length: 100

.python-version

Lines changed: 0 additions & 5 deletions
This file was deleted.

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
include LICENSE *.rst
2-
recursive-include tests *.py
1+
include LICENSE
2+
recursive-include *.py *.j2 *.rst

bin/new-wide-by-version.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111
...
1212
1313
Means that chr(12752) through chr(12754) are new WIDE values
14-
for Unicode vesion 5.0.0, and were not WIDE values for the
14+
for Unicode version 5.0.0, and were not WIDE values for the
1515
previous version (4.1.0).
1616
"""
1717
# std imports
1818
import sys
1919
import json
2020

21+
# local
22+
from wcwidth import WIDE_EASTASIAN, _bisearch
23+
2124

22-
# List new WIDE characters at each unicode version.
23-
#
2425
def main():
25-
from wcwidth import WIDE_EASTASIAN, _bisearch
26+
"""List new WIDE characters at each unicode version."""
2627
versions = list(WIDE_EASTASIAN.keys())
2728
results = {}
2829
for version in versions:

bin/run_codecov.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)