Commit Graph

33 Commits

Author SHA256 Message Date
891e0342da * bsc#1185768 (CVE-2021-42771) The internal locale-data loading
functions now validate the name of the locale file to be
    loaded and only allow files within Babel's data directory.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=63
2021-10-29 21:16:59 +00:00
57138b9b54 Accepting request 923278 from home:schubi2
- Added BuildRequires:  alts

OBS-URL: https://build.opensuse.org/request/show/923278
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=62
2021-10-06 07:35:26 +00:00
528300e196 Accepting request 922593 from home:schubi2
- Use libalternatives instead of update-alternatives.

OBS-URL: https://build.opensuse.org/request/show/922593
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=61
2021-10-03 17:50:08 +00:00
47fbb63c6c Accepting request 920175 from devel:languages:python
revert

OBS-URL: https://build.opensuse.org/request/show/920175
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=60
2021-09-19 17:36:52 +00:00
a696184eb5 Accepting request 919796 from home:schubi2
- Use libalternatives instead of update-alternatives.

OBS-URL: https://build.opensuse.org/request/show/919796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=59
2021-09-17 20:46:29 +00:00
2578bf0a5a - update to 2.9.1:
* The internal locale-data loading functions now validate the name of the
    locale file to be loaded and only allow files within Babel's data directory.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=57
2021-05-11 21:42:06 +00:00
864e3d2a45 Accepting request 876956 from home:mcalabkova:branches:devel:languages:python
- Substitute broken %ifpython3 macro

OBS-URL: https://build.opensuse.org/request/show/876956
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=55
2021-03-05 12:44:11 +00:00
c5fdf5f085 Accepting request 856578 from home:stroeder:branches:devel:languages:python
- removed obsolete patches
  * python383.patch
  * pytest6.patch
- update to 2.9.0
  * Improvements
    - CLDR: Use CLDR 37 – Aarni Koskela (#734)
    - Dates: Handle ZoneInfo objects in get_timezone_location, get_timezone_name - Alessio Bogon (#741)
    - Numbers: Add group_separator feature in number formatting - Abdullah Javed Nesar (#726)
  * Bugfixes
    - Dates: Correct default Format().timedelta format to 'long' to mute deprecation warnings – Aarni Koskela
    - Import: Simplify iteration code in "import_cldr.py" – Felix Schwarz
    - Import: Stop using deprecated ElementTree methods "getchildren()" and "getiterator()" – Felix Schwarz
    - Messages: Fix unicode printing error on Python 2 without TTY. – Niklas Hambüchen
    - Messages: Introduce invariant that _invalid_pofile() takes unicode line. – Niklas Hambüchen
    - Tests: fix tests when using Python 3.9 – Felix Schwarz
    - Tests: Remove deprecated 'sudo: false' from Travis configuration – Jon Dufresne
    - Tests: Support Py.test 6.x – Aarni Koskela
    - Utilities: LazyProxy: Handle AttributeError in specified func – Nikiforov Konstantin (#724)
    - Utilities: Replace usage of parser.suite with ast.parse – Miro Hrončok
    - Support Py.test 6 - Aarni Koskela (#747, #750, #752)
  * Documentation
    - Update parse_number comments – Brad Martin (#708)
    - Add __iter__ to Catalog documentation – @CyanNani123

OBS-URL: https://build.opensuse.org/request/show/856578
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=53
2020-12-17 08:57:30 +00:00
Tomáš Chvátal
4d736bc6df Accepting request 830007 from home:mcalabkova:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/830007
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=51
2020-08-27 14:09:58 +00:00
Tomáš Chvátal
14a57cca27 - Add patch to fix building with new python 3.8.3:
* python383.patch

- Do not bother with documentation package, it is all available online

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=49
2020-05-19 10:39:54 +00:00
Tomáš Chvátal
6b0c5aa523 Accepting request 764027 from home:mcalabkova:branches:devel:languages:python
- update to 2.8.0
  * CLDR: Upgrade to CLDR 36.0
  * Messages: Don't even open files with the "ignore" extraction method
  * Numbers: Fix formatting very small decimals when quantization is disabled
  * Messages: Attempt to sort all messages
  * Add years to changelog
  * Note that installation requires pytz

- update to 2.8.0
  * CLDR: Upgrade to CLDR 36.0
  * Messages: Don't even open files with the "ignore" extraction method
  * Numbers: Fix formatting very small decimals when quantization is disabled
  * Messages: Attempt to sort all messages

OBS-URL: https://build.opensuse.org/request/show/764027
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=47
2020-01-13 15:31:08 +00:00
Tomáš Chvátal
e59d981a89 Accepting request 707403 from home:pgajdos
- version update to 2.7.0
  Possibly incompatible changes
  * General: Internal uses of ``babel.util.odict`` have been replaced with
    ``collections.OrderedDict`` from The Python standard library.
  Improvements
  * CLDR: Upgrade to CLDR 35.1 - Alberto Mardegan, Aarni Koskela (#626, #643)
  * General: allow anchoring path patterns to the start of a string -
    Brian Cappello (#600)
  * General: Bumped version requirement on pytz - @chrisbrake (#592)
  * Messages: `pybabel compile`: exit with code 1 if errors were encountered
    - Aarni Koskela (#647)
  * Messages: Add omit-header to update_catalog - Cédric Krier (#633)
  * Messages: Catalog update: keep user comments from destination by default
    - Aarni Koskela (#648)
  * Messages: Skip empty message when writing mo file - Cédric Krier (#564)
  * Messages: Small fixes to avoid crashes on badly formatted .po files
    - Bryn Truscott (#597)
  * Numbers: `parse_decimal()` `strict` argument and `suggestions`
    - Charly C (#590)
  * Numbers: don't repeat suggestions in parse_decimal strict - Serban
    Constantin (#599)
  * Numbers: implement currency formatting with long display names
    - Luke Plant (#585)
  * Numbers: parse_decimal(): assume spaces are equivalent to non-breaking
    spaces when not in strict mode - Aarni Koskela (#649)
  * Performance: Cache locale_identifiers() - Aarni Koskela (#644)
  Bugfixes
  * CLDR: Skip alt=... for week data (minDays, firstDay, weekendStart,
    weekendEnd) - Aarni Koskela (#634)
  * Dates: Fix wrong weeknumber for 31.12.2018 - BT-sschmid (#621)

OBS-URL: https://build.opensuse.org/request/show/707403
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=45
2019-06-04 07:58:52 +00:00
dc285c1292 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=43
2018-12-04 13:15:20 +00:00
Tomáš Chvátal
04a637a049 Accepting request 618823 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/618823
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=41
2018-06-25 11:03:28 +00:00
Tomáš Chvátal
66afd83702 Accepting request 604646 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/604646
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=39
2018-05-07 13:49:29 +00:00
838383be73 Accepting request 580582 from home:aplanas:branches:devel:languages:python
- Export TZ and LC_ALL before running the tests.  Without this
  python-Babel is not able to see the TZ variable, and produce
  a `local` LOCALTZ

OBS-URL: https://build.opensuse.org/request/show/580582
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=37
2018-02-27 12:39:14 +00:00
Thomas Bechtold
5f761522bb Accepting request 532056 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/532056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=35
2017-10-06 06:37:39 +00:00
Thomas Bechtold
a54c1f9f34 Accepting request 518414 from home:tbechtold:branches:devel:languages:python
- update to 2.5.0:
  * Numbers: Add currency utilities and helpers (#491) (@kdeldycke)
  * Support PyInstaller (#500, #505) (@wodo)
  * Dates: Add __str__ to DateTimePattern (#515) (@sfermigier)
  * Dates: Fix an invalid string to bytes comparison when parsing TZ files on Py3 (#498) (@rowillia)
  * Dates: Formatting zero-padded components of dates is faster (#517) (@akx)
  * Documentation: Fix "Good Commits" link in CONTRIBUTING.md (#511) (@naryanacharya6)
  * Documentation: Fix link to Python gettext module (#512) (@Linkid)
  * Messages: Allow both dash and underscore separated locale identifiers in pofiles (#489, #490) (@akx)
  * Messages: Extract Python messages in nested gettext calls (#488) (@sublee)
  * Messages: Fix in-place editing of dir list while iterating (#476, #492) (@MarcDufresne)
  * Messages: Stabilize sort order (#482) (@xavfernandez)
  * Time zones: Honor the no-inherit marker for metazone names (#405) (@akx)

- update to 2.5.0:
  * Numbers: Add currency utilities and helpers (#491) (@kdeldycke)
  * Support PyInstaller (#500, #505) (@wodo)
  * Dates: Add __str__ to DateTimePattern (#515) (@sfermigier)
  * Dates: Fix an invalid string to bytes comparison when parsing TZ files on Py3 (#498) (@rowillia)
  * Dates: Formatting zero-padded components of dates is faster (#517) (@akx)
  * Documentation: Fix "Good Commits" link in CONTRIBUTING.md (#511) (@naryanacharya6)
  * Documentation: Fix link to Python gettext module (#512) (@Linkid)
  * Messages: Allow both dash and underscore separated locale identifiers in pofiles (#489, #490) (@akx)
  * Messages: Extract Python messages in nested gettext calls (#488) (@sublee)
  * Messages: Fix in-place editing of dir list while iterating (#476, #492) (@MarcDufresne)
  * Messages: Stabilize sort order (#482) (@xavfernandez)
  * Time zones: Honor the no-inherit marker for metazone names (#405) (@akx)

OBS-URL: https://build.opensuse.org/request/show/518414
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=33
2017-08-23 15:48:07 +00:00
Todd R
dedd5a3fa2 Accepting request 493142 from home:TheBlackCat:branches:devel:languages:python
Fix provides/obsoletes

OBS-URL: https://build.opensuse.org/request/show/493142
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=31
2017-05-06 04:29:44 +00:00
Thomas Bechtold
031521c844 Accepting request 484324 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/484324
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=29
2017-04-04 05:55:30 +00:00
ac256de84d - update to 2.3.4:
* CLDR: The lxml library is no longer used for CLDR importing, so it should not cause strange failures e
  * CLI: Every last single CLI usage regression should now be gone, and both distutils and stand-alone CLI
  * CLI: Usage regressions that had snuck in between 2.2 and 2.3 should be no more. (https://github.com/py
  * Dates: Period (am/pm) formatting was broken in certain locales (namely zh_TW). Thanks to @jun66j5 for 
  * CLDR: Add an API for territory language data (https://github.com/python-babel/babel/pull/315)
  * Core: Character order and measurement system data is imported and exposed (https://github.com/python-b
  * Dates: Add an API for time interval formatting (https://github.com/python-babel/babel/pull/316)
  * Dates: More pattern formats and lengths are supported (https://github.com/python-babel/babel/pull/347)
  * Dates: Period IDs are imported and exposed (https://github.com/python-babel/babel/pull/349)
  * Dates: Support for date-time skeleton formats has been added (https://github.com/python-babel/babel/pu
  * Dates: Timezone formatting has been improved (https://github.com/python-babel/babel/pull/338)
  * Messages: JavaScript extraction now supports dotted names, ES6 template strings and JSX tags (https://
- drop fix-timezone-test.patch skip-dst-tests.patch, no longer necessary

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=26
2016-05-02 19:06:54 +00:00
Todd R
c62ad5967a Accepting request 357119 from home:TheBlackCat:branches:devel:languages:python
update to version 2.2.0

OBS-URL: https://build.opensuse.org/request/show/357119
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=24
2016-02-01 11:54:16 +00:00
Denisart Benjamin
3985f1ae8f Accepting request 318359 from home:seife:OpenStack:Master
fix build and dependencies on CentOS/RHEL

OBS-URL: https://build.opensuse.org/request/show/318359
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=22
2015-07-26 12:34:42 +00:00
Todd R
24c7926344 Accepting request 309070 from home:TheBlackCat:branches:devel:languages:python
Fix update-alternatives usage

OBS-URL: https://build.opensuse.org/request/show/309070
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=18
2015-05-28 13:13:36 +00:00
Denisart Benjamin
fbae82727b Accepting request 260355 from home:Ledest:misc
fix bashism in pre script

OBS-URL: https://build.opensuse.org/request/show/260355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=16
2014-11-14 15:30:00 +00:00
Michal Čihař
991122cf4f Accepting request 244817 from home:sfalken:branches:devel:languages:python
- Removed un-needed BuildRequire for timezone 

- Added 0001-disable_timezone_tests.patch
  + Disabling tests so package will build.  Tests can be re-enabled
    when upstream bug is resolved (gh#mitsuhiko/babel#106)

OBS-URL: https://build.opensuse.org/request/show/244817
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=14
2014-08-15 12:05:34 +00:00
Sascha Peilicke
7e1800f51c - Bring back argparse requirement for SP3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=12
2014-01-07 14:54:52 +00:00
Sascha Peilicke
88e186cdde - Require python-setuptools instead of distribute (upstreams merged)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=10
2013-10-24 11:12:10 +00:00
Sascha Peilicke
d68c363ff7 Accepting request 201460 from Cloud:OpenStack:Master
- make tests happy on openSUSE_12.2 (too old pytests)
------------------------------------------------------------------

OBS-URL: https://build.opensuse.org/request/show/201460
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=7
2013-09-30 12:39:25 +00:00
Sascha Peilicke
bca5410462 - Implement update-alternatives
- Fix testsuite run on SLE and run it only once
- Properly build (and install) HTML documentation

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=6
2013-09-30 09:00:55 +00:00
Sascha Peilicke
a97ad04b81 Accepting request 201226 from home:dirkmueller:branches:devel:languages:python
- update to 1.3.0:
 - support python 2.6, 2.7, 3.3+ and pypy - drop all other versions
 - use tox for testing on different pythons
 - Added support for the locale plural rules defined by the CLDR.
 - Added `format_timedelta` function to support localized formatting of
   relative times with strings such as "2 days" or "1 month" (ticket #126).
 - Fixed negative offset handling of Catalog._set_mime_headers (ticket #165).
 - Fixed the case where messages containing square brackets would break with
   an unpack error.
 - updated to CLDR 23
 - Make the CLDR import script work with Python 2.7.
 - Fix various typos.
 - Sort output of list-locales.
 - Make the POT-Creation-Date of the catalog being updated equal to
   POT-Creation-Date of the template used to update (ticket #148).
 - Use a more explicit error message if no option or argument (command) is
   passed to pybabel (ticket #81).
 - Keep the PO-Revision-Date if it is not the default value (ticket #148).
 - Make --no-wrap work by reworking --width's default and mimic xgettext's
   behaviour of always wrapping comments (ticket #145).
 - Add --project and --version options for commandline (ticket #173).
 - Add a __ne__() method to the Local class.
 - Explicitly sort instead of using sorted() and don't assume ordering
   (Jython compatibility).
 - Removed ValueError raising for string formatting message checkers if the
   string does not contain any string formattings (ticket #150).
 - Fix Serbian plural forms (ticket #213).
 - Small speed improvement in format_date() (ticket #216).
 - Fix so frontend.CommandLineInterface.run does not accumulate logging
   handlers (#227, reported with initial patch by dfraser)

OBS-URL: https://build.opensuse.org/request/show/201226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=5
2013-09-30 07:21:25 +00:00
Sascha Peilicke
f698c1f2a0 - Fixed license to BSD-3-Clause (SPDX style)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=2
2011-09-01 14:27:28 +00:00
Sascha Peilicke
d7d586e56e - Update to version 0.9.6:
* Backport r493-494: documentation typo fixes.
  * Make the CLDR import script work with Python 2.7.
  * Fix various typos.
  * Fixed Python 2.3 compatibility (ticket #146, #233).
  * Sort output of list-locales.
  * Make the POT-Creation-Date of the catalog being updated equal to
    POT-Creation-Date of the template used to update (ticket #148).
  * Use a more explicit error message if no option or argument (command) is
    passed to pybabel (ticket #81).
  * Keep the PO-Revision-Date if it is not the default value (ticket #148).
  * Make --no-wrap work by reworking --width's default and mimic xgettext's
    behaviour of always wrapping comments (ticket #145).
  * Fixed negative offset handling of Catalog._set_mime_headers (ticket #165).
  * Add --project and --version options for commandline (ticket #173).
  * Add a __ne__() method to the Local class.
  * Explicitly sort instead of using sorted() and don't assume ordering
    (Python 2.3 and Jython compatibility).
  * Removed ValueError raising for string formatting message checkers if the
    string does not contain any string formattings (ticket #150).
  * Fix Serbian plural forms (ticket #213).
  * Small speed improvement in format_date() (ticket #216).
  * Fix number formatting for locales where CLDR specifies alt or draft 
    items (ticket #217)
  * Fix bad check in format_time (ticket #257, reported with patch and tests by
    jomae)
  * Fix so frontend.CommandLineInterface.run does not accumulate logging 
    handlers (#227, reported with initial patch by dfraser)
  * Fix exception if environment contains an invalid locale setting (#200)
- Renamed to python-Babel (from python-babel)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=1
2011-09-01 14:21:47 +00:00