#5 Rebase to version 1.0.0
Closed 3 years ago by ngompa. Opened 4 years ago by ngompa.
rpms/ ngompa/python-flask-babel rebase-to-version-1.0.0  into  master

file modified
+1
@@ -1,3 +1,4 @@ 

  /Flask-Babel-0.8.tar.gz

  /Flask-Babel-0.9.tar.gz

  /Flask-Babel-0.11.2.tar.gz

+ /Flask-Babel-1.0.0.tar.gz

@@ -1,30 +0,0 @@ 

- diff -up Flask-Babel-0.9/tests/tests.py.orig Flask-Babel-0.9/tests/tests.py

- --- Flask-Babel-0.9/tests/tests.py.orig	2016-06-28 14:56:25.004831791 -0300

- +++ Flask-Babel-0.9/tests/tests.py	2016-06-28 14:56:58.157833060 -0300

- @@ -35,7 +35,7 @@ class DateFormattingTestCase(unittest.Te

-          with app.test_request_context():

-              app.config['BABEL_DEFAULT_LOCALE'] = 'de_DE'

-              assert babel.format_datetime(d, 'long') == \

- -                '12. April 2010 15:46:00 MESZ'

- +                '12. April 2010 um 15:46:00 MESZ'

-  

-      def test_init_app(self):

-          b = babel.Babel()

- @@ -57,7 +57,7 @@ class DateFormattingTestCase(unittest.Te

-          with app.test_request_context():

-              app.config['BABEL_DEFAULT_LOCALE'] = 'de_DE'

-              assert babel.format_datetime(d, 'long') == \

- -                '12. April 2010 15:46:00 MESZ'

- +                '12. April 2010 um 15:46:00 MESZ'

-  

-      def test_custom_formats(self):

-          app = flask.Flask(__name__)

- @@ -95,7 +95,7 @@ class DateFormattingTestCase(unittest.Te

-          the_timezone = 'Europe/Vienna'

-  

-          with app.test_request_context():

- -            assert babel.format_datetime(d) == '12.04.2010 15:46:00'

- +            assert babel.format_datetime(d) == '12.04.2010, 15:46:00'

-  

-      def test_refreshing(self):

-          app = flask.Flask(__name__)

@@ -1,57 +0,0 @@ 

- diff -up Flask-Babel-0.8/tests/tests.py.orig Flask-Babel-0.8/tests/tests.py

- --- Flask-Babel-0.8/tests/tests.py.orig	2014-07-17 09:46:54.630548512 -0300

- +++ Flask-Babel-0.8/tests/tests.py	2014-07-17 09:48:25.164551978 -0300

- @@ -21,13 +21,13 @@ class DateFormattingTestCase(unittest.Te

-          d = datetime(2010, 4, 12, 13, 46)

-  

-          with app.test_request_context():

- -            assert babel.format_datetime(d) == 'Apr 12, 2010 1:46:00 PM'

- +            assert babel.format_datetime(d) == 'Apr 12, 2010, 1:46:00 PM'

-              assert babel.format_date(d) == 'Apr 12, 2010'

-              assert babel.format_time(d) == '1:46:00 PM'

-  

-          with app.test_request_context():

-              app.config['BABEL_DEFAULT_TIMEZONE'] = 'Europe/Vienna'

- -            assert babel.format_datetime(d) == 'Apr 12, 2010 3:46:00 PM'

- +            assert babel.format_datetime(d) == 'Apr 12, 2010, 3:46:00 PM'

-              assert babel.format_date(d) == 'Apr 12, 2010'

-              assert babel.format_time(d) == '3:46:00 PM'

-  

- @@ -43,13 +43,13 @@ class DateFormattingTestCase(unittest.Te

-          d = datetime(2010, 4, 12, 13, 46)

-  

-          with app.test_request_context():

- -            assert babel.format_datetime(d) == 'Apr 12, 2010 1:46:00 PM'

- +            assert babel.format_datetime(d) == 'Apr 12, 2010, 1:46:00 PM'

-              assert babel.format_date(d) == 'Apr 12, 2010'

-              assert babel.format_time(d) == '1:46:00 PM'

-  

-          with app.test_request_context():

-              app.config['BABEL_DEFAULT_TIMEZONE'] = 'Europe/Vienna'

- -            assert babel.format_datetime(d) == 'Apr 12, 2010 3:46:00 PM'

- +            assert babel.format_datetime(d) == 'Apr 12, 2010, 3:46:00 PM'

-              assert babel.format_date(d) == 'Apr 12, 2010'

-              assert babel.format_time(d) == '3:46:00 PM'

-  

- @@ -88,7 +88,7 @@ class DateFormattingTestCase(unittest.Te

-              return the_timezone

-  

-          with app.test_request_context():

- -            assert babel.format_datetime(d) == 'Apr 12, 2010 1:46:00 PM'

- +            assert babel.format_datetime(d) == 'Apr 12, 2010, 1:46:00 PM'

-  

-          the_locale = 'de_DE'

-          the_timezone = 'Europe/Vienna'

- @@ -101,10 +101,10 @@ class DateFormattingTestCase(unittest.Te

-          b = babel.Babel(app)

-          d = datetime(2010, 4, 12, 13, 46)

-          with app.test_request_context():

- -            assert babel.format_datetime(d) == 'Apr 12, 2010 1:46:00 PM'

- +            assert babel.format_datetime(d) == 'Apr 12, 2010, 1:46:00 PM'

-              app.config['BABEL_DEFAULT_TIMEZONE'] = 'Europe/Vienna'

-              babel.refresh()

- -            assert babel.format_datetime(d) == 'Apr 12, 2010 3:46:00 PM'

- +            assert babel.format_datetime(d) == 'Apr 12, 2010, 3:46:00 PM'

-  

-  

-  class NumberFormattingTestCase(unittest.TestCase):

file modified
+12 -10
@@ -2,19 +2,19 @@ 

  %global mod_name	Flask-Babel

  

  Name:		python-%{pkg_name}

- Version:	0.11.2

- Release:	8%{?dist}

+ Version:	1.0.0

+ Release:	1%{?dist}

  Summary:	Adds i18n/l10n support to Flask applications

  License:	BSD

- URL:		http://github.com/mitsuhiko/%{pkg_name}/

+ URL:		http://github.com/python-babel/%{pkg_name}/

  Source0:	https://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz

  BuildArch:	noarch

  

  BuildRequires:	python%{python3_pkgversion}-babel

  BuildRequires:	python%{python3_pkgversion}-devel

  BuildRequires:	python%{python3_pkgversion}-flask

+ BuildRequires:	python%{python3_pkgversion}-jinja2

  BuildRequires:	python%{python3_pkgversion}-setuptools

- BuildRequires:	python%{python3_pkgversion}-speaklater

  BuildRequires:	python%{python3_pkgversion}-pytz

  

  %{?python_provide:%python_provide python-%{pkg_name}}
@@ -26,10 +26,6 @@ 

  

  %package -n python%{python3_pkgversion}-%{pkg_name}

  Summary:	Adds i18n/l10n support to Flask applications

- Requires:	python%{python3_pkgversion}-babel

- Requires:	python%{python3_pkgversion}-flask

- Requires:	python%{python3_pkgversion}-speaklater

- Requires:	python%{python3_pkgversion}-pytz

  %{?python_provide:%python_provide python%{python3_pkgversion}-%{pkg_name}}

  

  %description -n python%{python3_pkgversion}-%{pkg_name}
@@ -46,14 +42,20 @@ 

  %py3_install

  

  %check

- PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib}:%{python3_sitelib} make test

+ PYTHONPATH=%{buildroot}/%{python3_sitelib}:%{python3_sitelib} make test

  

  %files -n python%{python3_pkgversion}-%{pkg_name}

- %doc docs LICENSE PKG-INFO

+ %doc docs PKG-INFO

+ %license LICENSE

  %{python3_sitelib}/*.egg-info/

  %{python3_sitelib}/flask_babel

  

  %changelog

+ * Fri Apr 17 2020 Neal Gompa <ngompa13@gmail.com> - 1.0.0-1

+ - Rebase to new version 1.0.0

+ - Remove requires that are redundant with dependency generated ones

+ - Mark license file as license

+ 

  * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.2-8

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (Flask-Babel-0.11.2.tar.gz) = d95947983ff5bc33a28384f000512e85ed64c16555aa03e110a32b7c0c9e91eebc02259bfc69a0dbc84adb6ecf8155cffaecde5726658d64d36435060de3f22b

+ SHA512 (Flask-Babel-1.0.0.tar.gz) = 3624b2e4877821551267e2719d76b714bda0a1da24e5a3c36d045273039823c4f3bbdf28cad5d8e0d4f0c896578248bfc40aebee720b543e500edf6de607ad8d

This pull request rebases Flask-Babel to version 1.0.0.

From what I can tell, there are no API incompatibilities from 0.11.2 to 1.0.0, so it would be great to get this shipped in Fedora 31 and Fedora 32 as updates too.

This is required for packaging Noggin for Fedora.

@pcpa friendly ping? Can you please review this?

(cc: @abompard, @hellcp)

This has been fixed separately in de9dfda.

Pull-Request has been closed by ngompa

3 years ago