Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for 2.10 #856

Merged
merged 4 commits into from Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions AUTHORS
Expand Up @@ -25,6 +25,7 @@ Babel is written and maintained by the Babel team and various contributors:
- Sachin Paliwal
- Alex Willmer
- Daniel Neuhäuser
- Hugo van Kemenade
- Miro Hrončok
- Cédric Krier
- Luke Plant
Expand All @@ -46,6 +47,17 @@ Babel is written and maintained by the Babel team and various contributors:
- Leonardo Pistone
- Jun Omae
- Hyunjun Kim
- Mohamed Morsy
- Krzysztof Jagiełło
- Morgan Wahl
- farhan5900
- Sigurd Ljødal
- Andrii Oriekhov
- rachele-collin
- Lukas Winkler
- Juliette Monsel
- Álvaro Mondéjar Rubio
- ruro
- Alessio Bogon
- Nikiforov Konstantin
- Abdullah Javed Nesar
Expand Down
59 changes: 59 additions & 0 deletions CHANGES.rst
@@ -1,6 +1,65 @@
Babel Changelog
===============

Version 2.10
------------

Upcoming deprecation
~~~~~~~~~~~~~~~~~~~~

* The ``get_next_timezone_transition()`` function is marked deprecated in this version and will be removed
likely as soon as Babel 2.11. No replacement for this function is planned; based on discussion in
:gh:`716`, it's likely the function is not used in any real code. (:gh:`852`) - Aarni Koskela, Paul Ganssle

Improvements
~~~~~~~~~~~~

* CLDR: Upgrade to CLDR 41.0. (:gh:`853`) - Aarni Koskela

* The ``c`` and ``e`` plural form operands introduced in CLDR 40 are parsed, but otherwise unsupported. (:gh:`826`)
* Non-nominative forms of units are currently ignored.

* Messages: Implement `--init-missing` option for `pybabel update` (:gh:`785`) - ruro
* Messages: For ``extract``, you can now replace the built-in ``.*`` / ``_*`` ignored directory patterns
with ones of your own. (:gh:`832`) - Aarni Koskela, Kinshuk Dua
* Messages: Add ``--check`` to verify if catalogs are up-to-date (:gh:`831`) - Krzysztof Jagiełło
* Messages: Add ``--header-comment`` to override default header comment (:gh:`720`) - Mohamed Hafez Morsy, Aarni Koskela
* Dates: ``parse_time`` now supports 12-hour clock, and is better at parsing partial times.
(:gh:`834`) - Aarni Koskela, David Bauer, Arthur Jovart
* Dates: ``parse_date`` and ``parse_time`` now raise ``ParseError``, a subclass of ``ValueError``, in certain cases.
(:gh:`834`) - Aarni Koskela
* Dates: ``parse_date`` and ``parse_time`` now accept the ``format`` parameter.
(:gh:`834`) - Juliette Monsel, Aarni Koskela

Infrastructure
~~~~~~~~~~~~

* The internal `babel/_compat.py` module is no more (:gh:`808`) - Hugo van Kemenade
* Python 3.10 is officially supported (:gh:`809`) - Hugo van Kemenade
* There's now a friendly GitHub issue template. (:gh:`800`) – Álvaro Mondéjar Rubio
* Don't use the deprecated format_number function internally or in tests - Aarni Koskela
* Add GitHub URL for PyPi (:gh:`846`) - Andrii Oriekhov
* Python 3.12 compatibility: Prefer setuptools imports to distutils imports (:gh:`843`) - Aarni Koskela
* Python 3.11 compatibility: Add deprecations to l*gettext variants (:gh:`835`) - Aarni Koskela
* CI: Babel is now tested with PyPy 3.7. (:gh:`851`) - Aarni Koskela

Bugfixes
~~~~~~~~

* Date formatting: Allow using `other` as fallback form (:gh:`827`) - Aarni Koskela
* Locales: ``Locale.parse()`` normalizes variant tags to upper case (:gh:`829`) - Aarni Koskela
* A typo in the plural format for Maltese is fixed. (:gh:`796`) - Lukas Winkler
* Messages: Catalog date parsing is now timezone independent. (:gh:`701`) - rachele-collin
* Messages: Fix duplicate locations when writing without lineno (:gh:`837`) - Sigurd Ljødal
* Messages: Fix missing trailing semicolon in plural form headers (:gh:`848`) - farhan5900
* CLI: Fix output of ``--list-locales`` to not be a bytes repr (:gh:`845`) - Morgan Wahl

Documentation
~~~~~~~~~~~~~

* Documentation is now correctly built again, and up to date (:gh:`830`) - Aarni Koskela


Version 2.9.1
-------------

Expand Down
10 changes: 1 addition & 9 deletions Makefile
Expand Up @@ -31,15 +31,7 @@ develop:
tox-test: import-cldr
tox

upload-docs:
$(MAKE) -C docs html dirhtml latex
$(MAKE) -C docs/_build/latex all-pdf
cd docs/_build/; mv html babel-docs; zip -r babel-docs.zip babel-docs; mv babel-docs html
rsync -a docs/_build/dirhtml/ pocoo.org:/var/www/babel.pocoo.org/docs/
rsync -a docs/_build/latex/Babel.pdf pocoo.org:/var/www/babel.pocoo.org/docs/babel-docs.pdf
rsync -a docs/_build/babel-docs.zip pocoo.org:/var/www/babel.pocoo.org/docs/babel-docs.zip

release: import-cldr
python scripts/make-release.py

.PHONY: test develop tox-test clean-pyc clean-cldr import-cldr clean release upload-docs clean-test-env standalone-test
.PHONY: test develop tox-test clean-pyc clean-cldr import-cldr clean release clean-test-env standalone-test
10 changes: 4 additions & 6 deletions setup.py
Expand Up @@ -30,15 +30,16 @@ def run(self):
name='Babel',
version=__version__,
description='Internationalization utilities',
long_description="""A collection of tools for internationalizing Python applications.""",
long_description='A collection of tools for internationalizing Python applications.',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
maintainer='Aarni Koskela',
maintainer_email='akx@iki.fi',
license='BSD',
url='http://babel.pocoo.org/',
url='https://babel.pocoo.org/',
project_urls={
'Source': 'https://github.com/python-babel/babel',
},

classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
Expand Down Expand Up @@ -66,11 +67,8 @@ def run(self):
# higher.
'pytz>=2015.7',
],

cmdclass={'import_cldr': import_cldr},

zip_safe=False,

# Note when adding extractors: builtin extractors we also want to
# work if packages are not installed to simplify testing. If you
# add an extractor here also manually add it to the "extract"
Expand Down