python-sqlalchemy/sqlalchemy.spec

97 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-12-06 09:27:20 +08:00
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
Name: python-sqlalchemy
2021-08-10 10:16:52 +08:00
Version: 1.3.23
Release: 1
2019-12-06 09:27:20 +08:00
Summary: SQL toolkit and object relational mapper for Python
License: MIT
URL: http://www.sqlalchemy.org/
2021-08-10 10:16:52 +08:00
Source0: https://files.pythonhosted.org/packages/ac/cd/f871773f1c1eb043f639b6751d6342539a45da0836bfede6a6889cea5255/SQLAlchemy-1.3.23.tar.gz
2019-12-06 09:27:20 +08:00
2021-03-16 10:37:04 +08:00
Patch0: tests_overcome_bpo42967.patch
2021-06-22 11:34:20 +00:00
BuildRequires: python3-devel python3-setuptools python3-pytest gcc
2019-12-06 09:27:20 +08:00
%description
SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,
high-level interface to SQL databases. It contains a powerful mapping layer
that users can choose to work as automatically or as manually, determining
relationships based on foreign keys or to bridge the gap between database
and domain by letting you define the join conditions explicitly.
%package help
Summary: Help documents for SQLAlchemy
BuildArch: noarch
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
Help documents for SQLAlchemy.
%package -n python3-sqlalchemy
Summary: SQL toolkit and object relational mapper for Python
%{?python_provide:%python_provide python%{python3_pkgversion}-sqlalchemy}
%description -n python3-sqlalchemy
SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,
high-level interface to SQL databases. It contains a powerful mapping layer
that users can choose to work as automatically or as manually, determining
relationships based on foreign keys or to bridge the gap between database
and domain by letting you define the join conditions explicitly.
The python3-sqlalchemy package contains the python 3 version of the module.
%prep
%autosetup -n SQLAlchemy-%{version} -p1
%build
%py3_build
%install
%py3_install
rm -rf doc/build
%check
PYTHONPATH=. %{__python3} -m pytest test
%files -n python3-sqlalchemy
%license LICENSE
%doc README.rst
%{python3_sitearch}/*
%files help
%doc doc examples
%changelog
2021-08-10 10:16:52 +08:00
* Tue Aug 10 2021 OpenStack_SIG <openstack@openeuler.org> - 1.3.23-1
- update to 1.3.23
2021-06-22 11:34:20 +00:00
* Tue Jun 22 2021 shixuantong <shixuantong@huawei.com> - 1.3.22-3
- Type: bugfix
- ID: NA
- SUG: NA
- DESC:add gcc to BuildRequires
2021-03-16 10:37:04 +08:00
* Tue Mar 16 2021 tianwei <tianwei12@huawei.com> - 1.3.22-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix make check failed
2021-02-01 15:47:08 +08:00
* Mon Feb 1 2021 yuanxin <yuanxin24@huawei.com> - 1.3.22-1
- Upgrade version to 1.3.22
2021-01-12 16:22:38 +08:00
* Tue Jan 12 2021 baizhonggui <baizhonggui@huawei.com> - 1.2.11-5
- Fix building for pytest
2020-08-11 10:58:40 +08:00
* Mon Aug 10 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.2.11-4
- Remove python2
2020-07-29 09:55:20 +08:00
* Wed Jul 29 2020 lingsheng <lingsheng@huawei.com> - 1.2.11-3
- Skip test on sqlite 3.30+
2019-12-06 09:27:20 +08:00
* Tue Nov 26 2019 yanzhihua <yanzhihua4@huawei.com> - 1.2.11-2
- Package init
2021-08-10 10:16:52 +08:00