Skip to content

Commit

Permalink
Use jinja2 templating to update library to unicode 15.0, #61
Browse files Browse the repository at this point in the history
- 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'
  • Loading branch information
jquast authored Jan 15, 2023
2 parents 47b235c + b8cefaa commit f0232e5
Show file tree
Hide file tree
Showing 34 changed files with 3,355 additions and 1,985 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ htmlcov
.coveralls.yml
data
.DS_Store
.idea
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ disable=
too-many-lines,
inconsistent-return-statements,
too-many-return-statements,
too-many-boolean-expressions
too-many-boolean-expressions,
redundant-u-string-prefix,
consider-using-f-string,

[FORMAT]
max-line-length: 100
Expand Down
5 changes: 0 additions & 5 deletions .python-version

This file was deleted.

4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include LICENSE *.rst
recursive-include tests *.py
include LICENSE
recursive-include *.py *.j2 *.rst
9 changes: 5 additions & 4 deletions bin/new-wide-by-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@
...
Means that chr(12752) through chr(12754) are new WIDE values
for Unicode vesion 5.0.0, and were not WIDE values for the
for Unicode version 5.0.0, and were not WIDE values for the
previous version (4.1.0).
"""
# std imports
import sys
import json

# local
from wcwidth import WIDE_EASTASIAN, _bisearch


# List new WIDE characters at each unicode version.
#
def main():
from wcwidth import WIDE_EASTASIAN, _bisearch
"""List new WIDE characters at each unicode version."""
versions = list(WIDE_EASTASIAN.keys())
results = {}
for version in versions:
Expand Down
42 changes: 0 additions & 42 deletions bin/run_codecov.py

This file was deleted.

Loading

0 comments on commit f0232e5

Please sign in to comment.