diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..0a80fdce31f59c062e2abba28776e9521eddff30 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..bcc22d0effebb7d492363fbd6d57d2371902caec --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/python-sqlalchemy2 diff --git a/python-sqlalchemy2.spec b/python-sqlalchemy2.spec new file mode 100644 index 0000000000000000000000000000000000000000..bfdaf9536fb8a01e5069653e5b9c73a190544fa9 --- /dev/null +++ b/python-sqlalchemy2.spec @@ -0,0 +1,69 @@ +%global __provides_exclude_from ^(%{python3_sitelib})/.*$ +%define debug_package %{nil} +Name: python-sqlalchemy2 +Version: 2.0.41 +Release: 1 +Summary: SQL toolkit and object relational mapper for Python +License: MIT +URL: https://www.sqlalchemy.org/ +Source0: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/sqlalchemy-%{version}.tar.gz +BuildRequires: python3-devel python3-setuptools python3-pytest gcc python3-greenlet +BuildRequires: python3-pip python3-wheel python3-pdm-pep517 python3-typing-extensions python3-pytest-xdist +BuildRequires: python3-mypy + +%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 + +%description help +Help documents for SQLAlchemy. + +%package -n python3-sqlalchemy2 +Summary: SQL toolkit and object relational mapper for Python +Conflicts: python3-sqlalchemy + +%description -n python3-sqlalchemy2 +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 +rm -rf doc/build # Remove unnecessary scripts for building documentation +sed -i 's/\r$//' examples/dynamic_dict/dynamic_dict.py + +find . -type f -name ".gitignore" -exec rm {} \; + +%build +%pyproject_build + +%install +%pyproject_install + +%if 0 +%check +PYTHONPATH=. %{__python3} -m pytest -n2 -q +%endif + +%files -n python3-sqlalchemy2 +%license LICENSE +%doc README.rst +%{python3_sitelib}/* + +%files help +%doc doc examples + +%changelog +* Sun Jun 08 2025 Funda Wang - 2.0.41-1 +- init package diff --git a/sqlalchemy-2.0.41.tar.gz b/sqlalchemy-2.0.41.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bcef38f2ace1fbe8a1cf2c684f00374d7ef612b5 --- /dev/null +++ b/sqlalchemy-2.0.41.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edba70118c4be3c2b1f90754d308d0b79c6fe2c0fdc52d8ddf603916f83f4db9 +size 9689424