Compare commits
10 Commits
81263afd6a
...
564d535ff8
Author | SHA1 | Date | |
---|---|---|---|
|
564d535ff8 | ||
|
9354f348b3 | ||
|
71b1cf9e3b | ||
|
201a78975d | ||
|
0b4cf94834 | ||
|
8a0ad755ca | ||
|
4cdab0416c | ||
|
86ed0d5d84 | ||
|
4d5eec2968 | ||
|
53802d36cc |
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -115,3 +115,6 @@ SQLAlchemy-0.6.1.tar.gz
|
||||
/sqlalchemy-cd56e873e1db4e6c8bee9e035627beba80251bea.tar.gz
|
||||
/SQLAlchemy-1.4.49.tar.gz
|
||||
/SQLAlchemy-1.4.50.tar.gz
|
||||
/SQLAlchemy-1.4.51.tar.gz
|
||||
/SQLAlchemy-2.0.25.tar.gz
|
||||
/SQLAlchemy-2.0.26.tar.gz
|
||||
|
16
ci.fmf
Normal file
16
ci.fmf
Normal file
@ -0,0 +1,16 @@
|
||||
/keylime-e2e:
|
||||
plan:
|
||||
import:
|
||||
url: https://github.com/RedHat-SP-Security/keylime-plans.git
|
||||
name: /generic/minimal-e2e
|
||||
|
||||
/internal-sanity:
|
||||
enabled: false
|
||||
|
||||
adjust:
|
||||
- when: distro == rhel
|
||||
enabled: true
|
||||
plan:
|
||||
import:
|
||||
url: https://gitlab.cee.redhat.com/special-projects/tests/python-sqlalchemy.git
|
||||
name: /Plans/sanity
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -1,22 +1,39 @@
|
||||
# Mypy plugin is deprecated in 2.0. mypy is not in RHEL.
|
||||
%bcond mypy %{undefined rhel}
|
||||
|
||||
# The asyncmy Python package isn’t available in x86 (32bit)
|
||||
%ifnarch %ix86
|
||||
%bcond asyncmy %{undefined rhel}
|
||||
%else
|
||||
%bcond asyncmy 0
|
||||
%endif
|
||||
|
||||
# Tests crash when being run by pytest-xdist
|
||||
%bcond_with xdist
|
||||
%bcond xdist 0
|
||||
|
||||
%global srcname SQLAlchemy
|
||||
%global canonicalname %{py_dist_name %{srcname}}
|
||||
|
||||
%if %{undefined rhel}
|
||||
%global python_pkg_extras \
|
||||
asyncio \
|
||||
mssql_pymssql \
|
||||
mssql_pyodbc \
|
||||
mysql \
|
||||
mysql_connector \
|
||||
%{?with_mypy:mypy} \
|
||||
postgresql \
|
||||
postgresql_pg8000 \
|
||||
postgresql_asyncpg \
|
||||
pymysql \
|
||||
aiomysql \
|
||||
aiosqlite
|
||||
aioodbc \
|
||||
aiosqlite \
|
||||
%{?with_asyncmy:asyncmy}
|
||||
%endif
|
||||
|
||||
Name: python-sqlalchemy
|
||||
Version: 1.4.50
|
||||
Name: python-%{canonicalname}
|
||||
Version: 2.0.26
|
||||
# cope with pre-release versions containing tildes
|
||||
%global srcversion %{lua: srcversion, num = rpm.expand("%{version}"):gsub("~", ""); print(srcversion);}
|
||||
Release: %autorelease
|
||||
@ -26,13 +43,14 @@ License: MIT
|
||||
URL: https://www.sqlalchemy.org/
|
||||
Source0: %{pypi_source %{srcname} %{srcversion}}
|
||||
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python3-devel >= 3.6
|
||||
BuildRequires: python3-greenlet >= 1.0
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-devel >= 3.7
|
||||
# The dependencies needed for testing don’t get auto-generated.
|
||||
BuildRequires: python3dist(pytest)
|
||||
%if %{with xdist}
|
||||
BuildRequires: python3-pytest-xdist
|
||||
BuildRequires: python3dist(pytest-xdist)
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -46,6 +64,9 @@ domain.
|
||||
|
||||
%package -n python3-sqlalchemy
|
||||
Summary: %{summary}
|
||||
%if %{without asyncmy}
|
||||
Obsoletes: python3-sqlalchemy+asyncmy < %{version}-%{release}
|
||||
%endif
|
||||
|
||||
%description -n python3-sqlalchemy
|
||||
SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,
|
||||
@ -56,8 +77,10 @@ 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.
|
||||
|
||||
%if %{undefined rhel}
|
||||
# Subpackages to ensure dependencies enabling extra functionality
|
||||
%{?python_extras_subpkg:%python_extras_subpkg -n python3-sqlalchemy -i %{python3_sitearch}/*.egg-info %python_pkg_extras}
|
||||
%pyproject_extras_subpkg -n python3-sqlalchemy %python_pkg_extras
|
||||
%endif
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for SQLAlchemy
|
||||
@ -67,33 +90,54 @@ BuildArch: noarch
|
||||
Documentation for SQLAlchemy.
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires %{!?rhel:-x %{gsub %{quote:%python_pkg_extras} %%s+ ,}}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{srcversion} -p1
|
||||
%autosetup -n %{srcname}-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{canonicalname}
|
||||
# Work around poetry not listing license files as such in package metadata.
|
||||
sed -i -e 's|^\(.*/LICENSE\)|%%license \1|g' %{pyproject_files}
|
||||
|
||||
install -d %{buildroot}%{_pkgdocdir}
|
||||
cp -a doc examples %{buildroot}%{_pkgdocdir}/
|
||||
# remove unnecessary scripts for building documentation
|
||||
rm -rf doc/build
|
||||
rm -rf %{buildroot}%{_pkgdocdir}/doc/build
|
||||
find %{buildroot}%{_pkgdocdir} | while read long; do
|
||||
short="${long#%{buildroot}}"
|
||||
if [ -d "$long" ]; then
|
||||
echo "%%doc %%dir $short"
|
||||
else
|
||||
if [ "$short" != "${short/copyright/}" ]; then
|
||||
echo "%%license $short"
|
||||
else
|
||||
echo "%%doc $short"
|
||||
fi
|
||||
fi
|
||||
done > doc-files.txt
|
||||
|
||||
|
||||
%check
|
||||
%pytest test \
|
||||
%if %{without mypy}
|
||||
-k 'not Mypy' \
|
||||
%endif
|
||||
%if %{with xdist}
|
||||
--numprocesses=auto
|
||||
%endif
|
||||
|
||||
|
||||
%files doc
|
||||
%doc doc examples
|
||||
%files doc -f doc-files.txt
|
||||
|
||||
%files -n python3-sqlalchemy
|
||||
%license LICENSE
|
||||
%files -n python3-sqlalchemy -f %{pyproject_files}
|
||||
%doc README.rst
|
||||
%{python3_sitearch}/SQLAlchemy-*.egg-info/
|
||||
%{python3_sitearch}/sqlalchemy/
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (SQLAlchemy-1.4.50.tar.gz) = d484c2673e67b0c45f05d2af20f930f274ea8e83ca41e2bd1c08723f564af58424b78be2ee507612fec6fc095dc215f75f52dfad68a98bcbf1774e150d956a29
|
||||
SHA512 (SQLAlchemy-2.0.26.tar.gz) = 62532253ba6dee0c8e5c89487459ce783eb3d00cdcaf645efa5b68a03b62cc92ab7b447c791ac05bd552910edd223a390ab930a16b6234afb5dbe6d9c05b997a
|
||||
|
Loading…
Reference in New Issue
Block a user