From 14a1039b52e0218f682866f3cfaf4fb2108b0c05 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 15:54:03 +0000 Subject: import python-sqlalchemy-0.9.8-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b01c2b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/SQLAlchemy-0.9.8.tar.gz diff --git a/.python-sqlalchemy.metadata b/.python-sqlalchemy.metadata new file mode 100644 index 0000000..5dbb785 --- /dev/null +++ b/.python-sqlalchemy.metadata @@ -0,0 +1 @@ +19ff863f54904c5eafb9d88960939842578f851c SOURCES/SQLAlchemy-0.9.8.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/python-sqlalchemy-0.9.7-nose-use-build.patch b/SOURCES/python-sqlalchemy-0.9.7-nose-use-build.patch new file mode 100644 index 0000000..a6ad14f --- /dev/null +++ b/SOURCES/python-sqlalchemy-0.9.7-nose-use-build.patch @@ -0,0 +1,20 @@ +diff -up SQLAlchemy-0.9.7/sqla_nose.py.nose-use-build SQLAlchemy-0.9.7/sqla_nose.py +--- SQLAlchemy-0.9.7/sqla_nose.py.nose-use-build 2014-07-29 13:07:44.151453336 +0200 ++++ SQLAlchemy-0.9.7/sqla_nose.py 2014-07-29 13:09:15.096785664 +0200 +@@ -11,13 +11,14 @@ import nose + import warnings + + ++import glob + from os import path +-for pth in ['./lib']: ++for pth in glob.glob('build/lib*'): + sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth)) + + # installing without importing SQLAlchemy, so that coverage includes + # SQLAlchemy itself. +-path = "lib/sqlalchemy/testing/plugin/noseplugin.py" ++path = glob.glob("build/lib*/sqlalchemy/testing/plugin/noseplugin.py")[0] + if sys.version_info >= (3, 3): + from importlib import machinery + noseplugin = machinery.SourceFileLoader("noseplugin", path).load_module() diff --git a/SOURCES/python-sqlalchemy-0.9.7-types-test-workaround.patch b/SOURCES/python-sqlalchemy-0.9.7-types-test-workaround.patch new file mode 100644 index 0000000..fe52d58 --- /dev/null +++ b/SOURCES/python-sqlalchemy-0.9.7-types-test-workaround.patch @@ -0,0 +1,12 @@ +diff -up SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py.types-test-workaround SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py +--- SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py.types-test-workaround 2014-07-22 22:54:20.000000000 +0200 ++++ SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py 2014-07-29 16:43:27.921221412 +0200 +@@ -3268,7 +3268,7 @@ class _defer_name(_truncated_label): + generation. + + """ +- def __new__(cls, value): ++ def __new__(cls, value, *rest): + if value is None: + return _NONE_NAME + elif isinstance(value, conv): diff --git a/SPECS/python-sqlalchemy.spec b/SPECS/python-sqlalchemy.spec new file mode 100644 index 0000000..d05ae3b --- /dev/null +++ b/SPECS/python-sqlalchemy.spec @@ -0,0 +1,409 @@ +%if ! 0%{?rhel} > 5 +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif + +%if 0%{?fedora} > 12 +%global with_python3 1 +%endif + +%if 0%{?rhel} +%global with_tests 0 +%else +%global with_tests 1 +%endif + + + +%global srcname SQLAlchemy + +Name: python-sqlalchemy +Version: 0.9.8 +Release: 1%{?dist} +Summary: Modular and flexible ORM library for python + +Group: Development/Libraries +License: MIT +URL: http://www.sqlalchemy.org/ +Source0: http://pypi.python.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz +Patch0: python-sqlalchemy-0.9.7-nose-use-build.patch +# Work around failing types test +# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144 +Patch1: python-sqlalchemy-0.9.7-types-test-workaround.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python2-devel >= 2.6 +BuildRequires: python-setuptools + +%if 0%{with_tests} +BuildRequires: python-nose +BuildRequires: python-mock +%endif + +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-nose +%endif + +%description +SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible, +high-level interface to SQL databases. Database and domain concepts are +decoupled, allowing both sides maximum flexibility and power. SQLAlchemy +provides a powerful mapping layer that can work as automatically or as manually +as you choose, determining relationships based on foreign keys or letting you +define the join conditions explicitly, to bridge the gap between database and +domain. + +This package includes the python 2 version of the module. + +%if 0%{?with_python3} +%package -n python3-sqlalchemy +Summary: Modular and flexible ORM library for python +Group: Development/Libraries + +%description -n python3-sqlalchemy +SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible, +high-level interface to SQL databases. Database and domain concepts are +decoupled, allowing both sides maximum flexibility and power. SQLAlchemy +provides a powerful mapping layer that can work as automatically or as manually +as you choose, determining relationships based on foreign keys or letting you +define the join conditions explicitly, to bridge the gap between database and +domain. + +This package includes the python 3 version of the module. +%endif # with_python3 + +# Filter unnecessary dependencies +%global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$ + +%prep +%setup -q -n %{srcname}-%{version} +%patch0 -p1 -b .nose-use-build +%patch1 -p1 -b .types-test-workaround + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif # with_python3 + +%build +sed -i 1d lib/sqlalchemy/testing/runner.py +CFLAGS="%{optflags}" %{__python} setup.py --with-cextensions build + +%if 0%{?with_python3} +pushd %{py3dir} +CFLAGS="%{optflags}" %{__python3} setup.py --with-cextensions build +popd +%endif + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{python_sitelib} +%{__python} setup.py --with-cextensions install --skip-build --root %{buildroot} + +%if 0%{?with_python3} +pushd %{py3dir} +mkdir -p %{buildroot}%{python3_sitelib} +%{__python3} setup.py --with-cextensions install --skip-build --root %{buildroot} +popd +%endif + +# remove unnecessary scripts for building documentation +rm -rf doc/build + +%clean +rm -rf %{buildroot} + +%check +%if 0%{with_tests} +%{__python} ./sqla_nose.py + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} ./sqla_nose.py +popd +%endif +%endif # with_tests + + +%files +%defattr(-,root,root,-) +%doc README.rst LICENSE PKG-INFO CHANGES doc examples +%{python_sitearch}/* + +%if 0%{?with_python3} +%files -n python3-sqlalchemy +%defattr(-,root,root,-) +%doc LICENSE PKG-INFO doc examples +%{python3_sitearch}/* +%endif # with_python3 + +%changelog +* Wed May 20 2015 Matej Stuchlik - 0.9.8-1 +- Update to 0.9.8 +Resolves: rhbz#1209690 + +* Tue Sep 30 2014 P J P - 0.9.7-3 +- Fixed rpmlint error improper permissions ../testing/runner.py + +* Sun Aug 17 2014 Fedora Release Engineering - 0.9.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 29 2014 Nils Philippsen - 0.9.7-1 +- version 0.9.7, upstream feature and bugfix release + +* Mon Jun 30 2014 Nils Philippsen - 0.9.6-1 +- version 0.9.6, upstream feature and bugfix release + +* Sat Jun 07 2014 Fedora Release Engineering - 0.9.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri May 16 2014 Bohuslav Kabrda - 0.9.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Thu May 15 2014 Nils Philippsen - 0.9.4-1 +- version 0.9.4, upstream feature and bugfix release + +* Thu Feb 20 2014 Nils Philippsen - 0.9.3-1 +- version 0.9.3, upstream feature and bugfix release + +* Wed Feb 05 2014 Nils Philippsen - 0.9.2-1 +- version 0.9.2, upstream feature and bugfix release + +* Tue Jan 07 2014 Nils Philippsen - 0.9.1-1 +- version 0.9.1, upstream feature and bugfix release +- no need to use 2to3 for python 3.x anymore +- build C extension for python 3.x +- require python2-devel >= 2.6 for building + +* Mon Dec 09 2013 Nils Philippsen - 0.8.4-1 +- version 0.8.4, upstream bugfix release + +* Tue Oct 29 2013 Nils Philippsen - 0.8.3-1 +- version 0.8.3, upstream bugfix release + +* Wed Aug 14 2013 Nils Philippsen - 0.8.2-1 +- version 0.8.2, upstream bugfix release +- drop obsolete sqlalchemy-test-bidirectional-order patch +- fix bogus date in changelog + +* Sun Aug 04 2013 Fedora Release Engineering - 0.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Apr 29 2013 Toshio Kuratomi - 0.8.1-1 +- Upstream bugfix +- Stop calling sa2to3 explicitly on the library. It seems to break mapper.py's + import of collections.deque + +* Fri Apr 12 2013 Toshio Kuratomi - 0.8.0-1 +- Final release of 0.8.0 +- Fix for a unittest that assumes order in dicts + +* Thu Feb 14 2013 Fedora Release Engineering - 0.8.0-0.2.b1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Nov 1 2012 Toshio Kuratomi - 0.8.0-0.1.b1 +- Update to 0.8.0 beta + +* Mon Aug 13 2012 Toshio Kuratomi - 0.7.8-4.20120813hg8535 +- Update to a snapshot to fix unittest errors with python-3.3 + +* Fri Aug 3 2012 David Malcolm - 0.7.8-3 +- remove rhel logic from with_python3 conditional + +* Sat Jul 21 2012 Fedora Release Engineering - 0.7.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 18 2012 Nils Philippsen - 0.7.8-1 +- Upstream bugfix release + +* Tue May 15 2012 Nils Philippsen - 0.7.7-1 +- Upstream bugfix release + +* Tue Mar 20 2012 Nils Philippsen - 0.7.6-1 +- Upstream bugfix release + +* Mon Jan 30 2012 Nils Philippsen - 0.7.5-1 +- Upstream bugfix release +- package README.rst instead of README as documentation + +* Tue Jan 10 2012 Nils Philippsen - 0.7.3-2 +- rebuild for gcc 4.7 + +* Mon Oct 17 2011 Toshio Kuratomi - 0.7.3-1 +- Upstream bugfix release + +* Mon Aug 1 2011 Toshio Kuratomi - 0.7.2-1 +- Upstream bugfix release + +* Mon Jun 06 2011 Nils Philippsen - 0.7.1-1 +- 0.7.1 Upstream release +- no need to fix examples/dynamic_dict/dynamic_dict.py anymore +- use sqla_nose.py to fix %%check + +* Wed Feb 09 2011 Fedora Release Engineering - 0.6.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 17 2011 Toshio Kuratomi - 0.6.6-1 +- 0.6.6 Upstream release + +* Fri Dec 3 2010 Toshio Kuratomi - 0.6.5-1 +- 0.6.5 Upstream release + +* Wed Sep 29 2010 Toshio Kuratomi - 0.6.4-2 +- Filter out the C extensions from provides + +* Tue Sep 07 2010 Luke Macken - 0.6.4-1 +- 0.6.4 upstream release + +* Mon Aug 23 2010 Toshio Kuratomi - 0.6.3-1 +- 0.6.3 upstream release + +* Thu Jul 22 2010 David Malcolm +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Thu Jun 24 2010 Nils Philippsen - 0.6.1-1 +- 0.6.1 upstream release + +* Tue Apr 13 2010 Toshio Kuratomi - 0.6-0.4.beta3 +- Build beta3 + +* Fri Mar 19 2010 Toshio Kuratomi - 0.6-0.3.beta2 +- Build beta2 with cextension + +* Sun Mar 7 2010 Toshio Kuratomi - 0.6-0.2.beta1 +- Build python3 package + +* Tue Mar 2 2010 Toshio Kuratomi - 0.6-0.1.beta1 +- 0.6 beta1 upstream release + +* Tue Feb 2 2010 Toshio Kuratomi - 0.5.8-3 +- One last cleanup + +* Tue Feb 2 2010 Toshio Kuratomi - 0.5.8-2 +- just some cleanups to older styles of building packages. + +* Mon Feb 1 2010 Toshio Kuratomi - 0.5.8-1 +- Upstream bugfix release 0.5.8 + +* Fri Aug 14 2009 Toshio Kuratomi - 0.5.5-2 +- Upstream bugfix release 0.5.5 + +* Sun Jul 26 2009 Fedora Release Engineering - 0.5.4-2.p2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jun 12 2009 Toshio Kuratomi - 0.5.4-1.p2 +- Upstream bugfix release 0.5.4p2. + +* Thu Apr 16 2009 Toshio Kuratomi - 0.5.3-1 +- Upstream bugfix release. + +* Thu Feb 26 2009 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 11 2009 Toshio Kuratomi - 0.5.2-1 +- Update to 0.5.2 + +* Wed Jan 21 2009 Toshio Kuratomi - 0.5.1-1 +- Update to 0.5.1. + +* Mon Dec 1 2008 Toshio Kuratomi - 0.5-0.1.rc4 +- Update to 0.5.0rc4 which works with the new pysqlite +- And update test cases to work with the new pysqlite + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.4.7-2 +- Rebuild for Python 2.6 + +* Sun Jul 27 2008 Toshio Kuratomi 0.4.7-1 +- Update to 0.4.7. + +* Sun Jun 1 2008 Toshio Kuratomi 0.4.6-1 +- Update to 0.4.6. + +* Tue Apr 8 2008 Toshio Kuratomi 0.4.5-1 +- Update to 0.4.5. + +* Fri Feb 22 2008 Toshio Kuratomi 0.4.3-1 +- Update to 0.4.3. + +* Tue Dec 11 2007 Toshio Kuratomi 0.4.2-1.p3 +- Update to 0.4.2p3. + +* Tue Dec 11 2007 Toshio Kuratomi 0.4.1-1 +- Update to 0.4.1. + +* Wed Oct 17 2007 Toshio Kuratomi 0.4.0-1 +- SQLAlchemy-0.4.0 final +- Run the testsuite + +* Wed Oct 3 2007 Luke Macken 0.4.0-0.4.beta6 +- SQLAlchemy-0.4.0beta6 + +* Tue Sep 11 2007 Toshio Kuratomi - 0.4.0-0.4.beta5 +- Update to 0.4beta5. + +* Fri Sep 07 2007 Toshio Kuratomi - 0.4.0-0.4.beta4 +- setuptools has been fixed. + +* Fri Aug 31 2007 Toshio Kuratomi - 0.4.0-0.3.beta4 +- setuptools seems to be broken WRT having an active and inactive version + of an egg. Have to make both versions inactive and manually setup a copy + that can be started via import. (Necessary for the sqlalchemy0.3 compat + package.) + +* Tue Aug 28 2007 Toshio Kuratomi - 0.4.0-0.2.beta4 +- Modify setuptools to handle the -devel subpackage split in F-8. + +* Mon Aug 27 2007 Toshio Kuratomi - 0.4.0-0.1.beta4 +- Update to 0.4 beta4. + +* Tue Jul 24 2007 Toshio Kuratomi - 0.3.10-2 +- Remove python-abi Requires. This is automatic since FC4+. + +* Tue Jul 24 2007 Toshio Kuratomi - 0.3.10-1 +- Update to new upstream version 0.3.10 + +* Fri Mar 23 2007 Toshio Kuratomi - 0.3.6-1 +- Update to new upstream version 0.3.6 + +* Sat Mar 10 2007 Toshio Kuratomi - 0.3.5-1 +- Update to new upstream version 0.3.5 +- Simplify the files listing + +* Tue Jan 23 2007 Toshio Kuratomi - 0.3.4-2 +- Remember to upload the source tarball to the lookaside cache. + +* Tue Jan 23 2007 Toshio Kuratomi - 0.3.4-1 +- Update to new upstream version 0.3.4 + +* Mon Jan 01 2007 Toshio Kuratomi - 0.3.3-1 +- Update to new upstream version 0.3.3 + +* Sat Dec 09 2006 Toshio Kuratomi - 0.3.1-2 +- Bump and rebuild for python 2.5 on devel. +- BuildRequire: python-devel as a header is missing otherwise. + +* Fri Nov 24 2006 Toshio Kuratomi - 0.3.1-1 +- Update to new upstream version 0.3.1 + +* Sat Sep 16 2006 Shahms E. King 0.2.7-2 +- Rebuild for FC6 + +* Thu Aug 17 2006 Shahms E. King 0.2.7-1 +- Update to new upstream version + +* Fri Aug 11 2006 Shahms E. King 0.2.6-2 +- Include, don't ghost .pyo files per new guidelines + +* Tue Aug 08 2006 Shahms E. King 0.2.6-1 +- Update to new upstream version + +* Fri Jul 07 2006 Shahms E. King 0.2.4-1 +- Update to new upstream version + +* Mon Jun 26 2006 Shahms E. King 0.2.3-1 +- Update to new upstream version + +* Wed May 31 2006 Shahms E. King 0.2.1-1 +- Update to new upstream version