Skip to content

Commit

Permalink
Prepare 4.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
j-bernard committed Apr 29, 2021
1 parent 0d905ee commit c183cc1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
install:
- pip install -r requirements.txt
- pip install .
Expand Down
12 changes: 12 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog for lgr-core

## 4.0.0 (2021-04-27)
### New features
- Add IDN table review tool
- Add an heuristic parser for any RFC format
- Drop compatibility for Python 2.7, 3.4 and 3.5
- Add compatibility for Python 3.8
### Improvements
- Factorize and create helpers for CLI tools
- Use Suppress-Script when retrieving LGR scripts from metadata
### Fixes
- Stop considering reflexive mapping when evaluating a variant label

## 3.0.0 (2020-12-04)
### New features
- Add a way to provide a list of TLDs to collision tool
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This version conforms to the specification [RFC7940](https://www.rfc-editor.org/
## Acknowledgment

This toolset was implemented by Viagenie (Audric Schiltknecht, Julien Bernard,
David Drouin and Marc Blanchet) and Wil Tan on an ICANN contract.
David Drouin, Guillaume Blanchet and Marc Blanchet) and Wil Tan on an ICANN contract.

## License

Expand Down Expand Up @@ -46,13 +46,15 @@ THE POSSIBILITY OF SUCH DAMAGE.
* [LibXML2](http://www.xmlsoft.org/) [MIT License] used by the lxml Python bindings
* [LXML](http://lxml.de/) for XML parsing/serializing [BSD License]
* [language-tags](https://github.com/OnroerendErfgoed/language-tags) [MIT License]
* [pycountry](https://github.com/flyingcircusio/pycountry) [L-GPL License]
* [picu](https://pypi.python.org/pypi/picu) [MIT/X license]
* [munidata](https://github.com/icann/munidata) for Unicode-related properties access [BSD License]

For testing:

* [pytest](https://docs.pytest.org/)
* [coverage](http://nedbatchelder.com/code/coverage/)
* [idna](https://github.com/kjd/idna) [BSD License]

For documentation generation:

Expand Down Expand Up @@ -106,6 +108,7 @@ Other tools are available to manipulate LGR files and labels:
* `lgr_check_harmonized` checks that variants code points from a list of LGRs are symmetric and transitive in each LGR,
and list missing variants from one LGR to another.
* `lgr_cross_script_variants` takes some LGRs and generate the list of cross-script variants.
* `lgr_idn_table_review.py` reviews IDN tables against reference LGRs.

## Testing and coverage

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ language-tags==1.1.0
pycountry==20.7.3

# Unicode modules
picu==1.1
munidata==2.0.0
picu==1.2
munidata==2.1.0

# for tests
idna==2.10
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def run_tests(self):

setup(
name="lgr-core",
version='3.0.0',
version='4.0.0',
author='Viagénie and Wil Tan',
author_email='[email protected]',
description="API for manipulating Label Generation Rules",
long_description=open('README.md', encoding='utf-8').read(),
license="TBD",
install_requires=['lxml', 'language-tags', 'munidata', 'picu'],
install_requires=['lxml', 'language-tags', 'pycountry', 'munidata', 'picu'],
packages=find_packages(),
scripts=[
'tools/lgr_cli.py',
Expand All @@ -49,17 +49,17 @@ def run_tests(self):
'tools/lgr_cross_script_variants.py',
'tools/lgr_harmonize',
'tools/lgr_populate_variants.py',
'tools/rfc7940_validate.py'
'tools/rfc7940_validate.py',
'tools/lgr_idn_table_review.py'
],
tests_require=['pytest', 'idna'],
cmdclass={'test': PyTest},
classifiers=[
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries'
]
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py27, py34, py35, py36
envlist = py36, py37, py38

[testenv]
commands = pytest {posargs} --cov=lgr --doctest-modules --junitxml=tests-out-{envname}.xml --junitprefix={envname}
Expand Down

0 comments on commit c183cc1

Please sign in to comment.