#2 Python 3 subpackage and dependencies rename/cleanup
Merged 5 years ago by cverna. Opened 6 years ago by lbalhar.
rpms/ lbalhar/TurboGears2 python3  into  master

file modified
+117 -55
@@ -1,8 +1,6 @@ 

- %{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}

- 

  Name:           TurboGears2

  Version:        2.3.11

- Release:        3%{?dist}

+ Release:        4%{?dist}

  Summary:        Next generation front-to-back web development megaframework

  

  Group:          Development/Languages
@@ -12,69 +10,120 @@ 

  

  BuildArch:      noarch

  

- BuildRequires:  python2-devel python2-setuptools

- BuildRequires:  python2-nose python2-coverage

- BuildRequires:  python2-turbokid >= 1.0.4

- BuildRequires:  python2-zope-sqlalchemy >= 0.4

+ BuildRequires:  python2-devel

+ BuildRequires:  python2-setuptools

+ BuildRequires:  python2-backlash

+ BuildRequires:  python2-chameleon

+ BuildRequires:  python2-crank >= 0.8.0

+ BuildRequires:  python2-formencode

+ BuildRequires:  python2-genshi >= 0.5.1

  BuildRequires:  python2-jinja2

- BuildRequires:  python2-simplegeneric

- BuildRequires:  python2-repoze-who

+ BuildRequires:  python2-kajiki >= 0.2.2

+ BuildRequires:  python2-mako

  BuildRequires:  python2-repoze-tm2 >= 1.0-0.4.a4

+ BuildRequires:  python2-repoze-who

+ BuildRequires:  python2-repoze-who-plugins-sa >= 1.0.1

+ BuildRequires:  python2-routes

+ BuildRequires:  python2-simplegeneric

  BuildRequires:  python2-tw-forms

  BuildRequires:  python2-tw2-forms

- BuildRequires:  python2-genshi >= 0.5.1

- BuildRequires:  python2-mako

- BuildRequires:  python2-chameleon

- BuildRequires:  python2-turbojson >= 1.3

- BuildRequires:  python2-kajiki >= 0.2.2

- BuildRequires:  python2-repoze-who-plugins-sa >= 1.0.1

  BuildRequires:  python2-webtest

- BuildRequires:  python2-routes

- BuildRequires:  python2-formencode

- BuildRequires:  python2-crank >= 0.8.0

- BuildRequires:  python2-backlash

+ BuildRequires:  python2-zope-sqlalchemy >= 0.4

+ 

+ BuildRequires:  python3-backlash

+ BuildRequires:  python3-chameleon

+ BuildRequires:  python3-crank >= 0.8.0

+ BuildRequires:  python3-devel python3-setuptools

+ BuildRequires:  python3-formencode

+ BuildRequires:  python3-genshi >= 0.5.1

+ BuildRequires:  python3-jinja2

+ BuildRequires:  python3-kajiki >= 0.2.2

+ BuildRequires:  python3-mako

+ BuildRequires:  python3-repoze-tm2 >= 1.0-0.4.a4

+ BuildRequires:  python3-repoze-who

+ BuildRequires:  python3-repoze-who-plugins-sa >= 1.0.1

+ BuildRequires:  python3-routes

+ BuildRequires:  python3-simplegeneric

+ BuildRequires:  python3-tw2-forms

+ BuildRequires:  python3-webtest

+ BuildRequires:  python3-zope-sqlalchemy >= 0.4

+ 

+ %global _description \

+ TurboGears brings together a best of breed python tools to create a flexible,\

+ full featured, and easy to use web framework.\

+ \

+ TurboGears 2 provides and integrated and well tested set of tools for\

+ everything you need to build dynamic, database driven applications.  It\

+ provides a full range of tools for front end javascript develeopment, back\

+ database development and everything in between:\

+ \

+  * dynamic javascript powered widgets ToscaWidgets\

+  * automatic JSON generation from your controllers\

+  * powerful, designer friendly XHTML basted templating (Genshi)\

+  * object or route based URL dispatching\

+  * powerful Object Relational Mappers (SQLAlchemy)\

+ 

+ %description %{_description}

+ 

+ %package -n python2-%{name}

+ Summary:        %{summary}

+ %{?python_provide:%python_provide python2-%{name}}

+ Provides:       %{name} = %{version}-%{release}

+ Obsoletes:      %{name} < 2.3.11-1

  

+ Requires:       python2-backlash

+ Requires:       python2-beaker

+ Requires:       python2-chameleon

+ Requires:       python2-crank >= 0.8.0

+ Requires:       python2-decorator

+ Requires:       python2-formencode

  Requires:       python2-genshi >= 0.5.1

- Requires:       python2-zope-sqlalchemy >= 0.4

- Requires:       python2-toscawidgets >= 0.9.4

- Requires:       python2-repoze-tm2 >= 1.0-0.a4

- Requires:       python2-simplegeneric

  Requires:       python2-jinja2

- Requires:       python2-repoze-lru

+ Requires:       python2-kajiki > 0.2.2

+ Requires:       python2-mako

  Requires:       python2-markupsafe

  Requires:       python2-paste-deploy

- Requires:       python2-decorator

- Requires:       python2-beaker

- Requires:       python2-crank >= 0.8.0

- Requires:       python2-kajiki > 0.2.2

- Requires:       python2-formencode

- Requires:       python2-webob >= 1.2

- Requires:       python2-backlash

+ Requires:       python2-repoze-lru

+ Requires:       python2-repoze-tm2 >= 1.0-0.a4

  Requires:       python2-repoze-who

  Requires:       python2-repoze-who-plugins-sa >= 1.0.1

- Requires:       python2-mako

- Requires:       python2-chameleon

  Requires:       python2-routes

- Requires:       python2-turbokid >= 1.0.4

+ Requires:       python2-simplegeneric

+ Requires:       python2-toscawidgets >= 0.9.4

  Requires:       python2-tw-forms

  Requires:       python2-tw2-forms

+ Requires:       python2-webob >= 1.2

+ Requires:       python2-zope-sqlalchemy >= 0.4

  

- 

- %description

- TurboGears brings together a best of breed python tools to create a flexible,

- full featured, and easy to use web framework.

- 

- TurboGears 2 provides and integrated and well tested set of tools for

- everything you need to build dynamic, database driven applications.  It

- provides a full range of tools for front end javascript develeopment, back

- database development and everything in between:

- 

-  * dynamic javascript powered widgets ToscaWidgets

-  * automatic JSON generation from your controllers

-  * powerful, designer friendly XHTML basted templating (Genshi)

-  * object or route based URL dispatching

-  * powerful Object Relational Mappers (SQLAlchemy)

- 

+ %description -n python2-%{name} %{_description}

+ 

+ %package -n python3-%{name}

+ Summary:        %{summary}

+ %{?python_provide:%python_provide python3-%{name}}

+ 

+ Requires:       python3-backlash

+ Requires:       python3-beaker

+ Requires:       python3-chameleon

+ Requires:       python3-crank >= 0.8.0

+ Requires:       python3-decorator

+ Requires:       python3-formencode

+ Requires:       python3-genshi >= 0.5.1

+ Requires:       python3-jinja2

+ Requires:       python3-kajiki > 0.2.2

+ Requires:       python3-mako

+ Requires:       python3-markupsafe

+ Requires:       python3-paste-deploy

+ Requires:       python3-repoze-lru

+ Requires:       python3-repoze-tm2 >= 1.0-0.a4

+ Requires:       python3-repoze-who

+ Requires:       python3-repoze-who-plugins-sa >= 1.0.1

+ Requires:       python3-routes

+ Requires:       python3-simplegeneric

+ Requires:       python3-tw2-forms

+ Requires:       python3-webob >= 1.2

+ Requires:       python3-zope-sqlalchemy >= 0.4

+ 

+ %description -n python3-%{name} %{_description}

  

  %prep

  %autosetup -n %{name}-%{version}
@@ -82,24 +131,37 @@ 

  

  %build

  %py2_build

+ %py3_build

  

  %install

  %py2_install

+ %py3_install

  rm -fr %{buildroot}%{python2_sitelib}/tests

+ rm -fr %{buildroot}%{python3_sitelib}/tests

  

- # Unfortunately, the test suite from upstream seems to be in disrepair

+ # Tests cannot be included because some test dependencies

+ # are not available in Fedora repositories

  #%check

- #PYTHONPATH=$(pwd) python setup.py test

- #rm -fr %{buildroot}%{python_sitelib}/tests

+ #PYTHONPATH=$(pwd) %{__python2} setup.py test

  

- %files

+ %files -n python2-%{name}

  %defattr(0644,root,root,0755)

  %doc README.rst

- %{python2_sitelib}/%{name}-%{version}-py%{pyver}.egg-info/

+ %{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info/

  %{python2_sitelib}/tg/

  

+ %files -n python3-%{name}

+ %defattr(0644,root,root,0755)

+ %doc README.rst

+ %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/

+ %{python3_sitelib}/tg/

  

  %changelog

+ * Fri May 04 2018 Lumír Balhar <lbalhar@redhat.com> - 2.3.11-4

+ - Renamed dependencies

+ - Removed test BuildRequires

+ - Python 3 subpackage

+ 

  * Mon Feb 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.11-3

  - Update Python 2 dependency declarations to new packaging standards

    (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

TurboGears2 is Python 3 ready for a long time so we can support it in Fedora as well.

Let me know if I can do anything differently.

Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=24564488
Tracked in https://bugzilla.redhat.com/show_bug.cgi?id=1324095

Built and tested in mock with both Pythons on small example from project homepage http://www.turbogears.org/#start-small

Let me know when you'll have time to take a look and I'll rebase the PR to solve conflicts.

@cverna @kevin @ralph Would you maybe like to take over this package? Have you ever heard anything from @lmacken?

I added @cverna as an admin. ;) Hopefully he can move this forward if you can rebase to avoid conflicts now...

rebased onto 8156376

5 years ago

Hi.

I did a rebase, mock build, koji scratch build [0] and test with simple code from the project homepage in mock.

Everything looks good to me.

[0] https://koji.fedoraproject.org/koji/taskinfo?taskID=26766065

Have a nice day.

Pull-Request has been merged by cverna

5 years ago