summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-08-22 07:32:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-08-22 07:32:35 +0000
commite0cd43abdbd2d5476d577441d067b257d7e4eab1 (patch)
tree52f5df214c0731fbe3b2a708433101d10d880e83
parent04f04eebba15f804b585a99368a07cd600750b73 (diff)
automatic import of python-sqlalchemy-migrateopeneuler23.03
-rw-r--r--.gitignore1
-rw-r--r--0001-settle-build-problem.patch22
-rw-r--r--python-migrate-sqlalchemy-migrate.patch15
-rw-r--r--python-sqlalchemy-migrate.spec105
-rw-r--r--sources1
5 files changed, 144 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..bbe916b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sqlalchemy-migrate-0.13.0.tar.gz
diff --git a/0001-settle-build-problem.patch b/0001-settle-build-problem.patch
new file mode 100644
index 0000000..86ef31e
--- /dev/null
+++ b/0001-settle-build-problem.patch
@@ -0,0 +1,22 @@
+From f0938fcaae74896aa05cf9151b6535e0e94f83fe Mon Sep 17 00:00:00 2001
+From: wubijie <wubijie@kylinos.cn>
+Date: Mon, 21 Aug 2023 17:27:24 +0800
+Subject: [PATCH] settle build problem
+
+---
+ test-requirements.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test-requirements.txt b/test-requirements.txt
+index bc8d8d2..c11c5da 100644
+--- a/test-requirements.txt
++++ b/test-requirements.txt
+@@ -27,4 +27,4 @@ scripttest
+ # NOTE(rpodolyaka): This version identifier is currently necessary as
+ # pytz otherwise does not install on pip 1.4 or higher
+ pylint
+-pytz>=2010h
++pytz>=2023.3
+--
+2.33.0
+
diff --git a/python-migrate-sqlalchemy-migrate.patch b/python-migrate-sqlalchemy-migrate.patch
new file mode 100644
index 0000000..70166bb
--- /dev/null
+++ b/python-migrate-sqlalchemy-migrate.patch
@@ -0,0 +1,15 @@
+diff --git a/setup.cfg b/setup.cfg
+index cd67566..03c1574 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -27,8 +27,8 @@ packages =
+
+ [entry_points]
+ console_scripts =
+- migrate = migrate.versioning.shell:main
+- migrate-repository = migrate.versioning.migrate_repository:main
++ sqlalchemy-migrate = migrate.versioning.shell:main
++ sqlalchemy-migrate-repository = migrate.versioning.migrate_repository:main
+
+ [build_sphinx]
+ all_files = 1
diff --git a/python-sqlalchemy-migrate.spec b/python-sqlalchemy-migrate.spec
new file mode 100644
index 0000000..3364ad6
--- /dev/null
+++ b/python-sqlalchemy-migrate.spec
@@ -0,0 +1,105 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sqlalchemy-migrate
+Version: 0.13.0
+Release: 4
+Summary: Database schema migration for SQLAlchemy
+License: MIT License
+URL: http://www.openstack.org/
+Source0: https://files.pythonhosted.org/packages/36/bb/40f66b12b18fb03da76dcee31df75cca9e54b71d9d8a784bb95bfbadee2c/sqlalchemy-migrate-0.13.0.tar.gz
+Patch001: python-migrate-sqlalchemy-migrate.patch
+Patch002: 0001-settle-build-problem.patch
+BuildArch: noarch
+
+Requires: python3-pbr
+Requires: python3-sqlalchemy
+Requires: python3-decorator
+Requires: python3-six
+Requires: python3-sqlparse
+Requires: python3-tempita
+
+%description
+Fork from http://code.google.com/p/sqlalchemy-migrate/ to get it working with
+SQLAlchemy 0.8.
+Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
+database schema changes in `SQLAlchemy <http://sqlalchemy.org>`_ projects.
+Migrate extends SQLAlchemy to have database changeset handling. It provides a
+database change repository mechanism which can be used from the command line as
+well as from inside python code.
+
+%package -n python3-sqlalchemy-migrate
+Summary: Database schema migration for SQLAlchemy
+Provides: python-sqlalchemy-migrate
+BuildRequires: python3-devel
+BuildRequires: python3-pbr
+BuildRequires: python3-pip
+BuildRequires: python3-setuptools
+%description -n python3-sqlalchemy-migrate
+Fork from http://code.google.com/p/sqlalchemy-migrate/ to get it working with
+SQLAlchemy 0.8.
+Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
+database schema changes in `SQLAlchemy <http://sqlalchemy.org>`_ projects.
+Migrate extends SQLAlchemy to have database changeset handling. It provides a
+database change repository mechanism which can be used from the command line as
+well as from inside python code.
+
+%package help
+Summary: Development documents and examples for sqlalchemy-migrate
+Provides: python3-sqlalchemy-migrate-doc
+%description help
+Fork from http://code.google.com/p/sqlalchemy-migrate/ to get it working with
+SQLAlchemy 0.8.
+Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
+database schema changes in `SQLAlchemy <http://sqlalchemy.org>`_ projects.
+Migrate extends SQLAlchemy to have database changeset handling. It provides a
+database change repository mechanism which can be used from the command line as
+well as from inside python code.
+
+%prep
+%autosetup -n sqlalchemy-migrate-0.13.0 -p1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-sqlalchemy-migrate -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Aug 21 2023 wubijie <wubijie@kylinos.cn> - 0.13.0-4
+- add patch to fix mode rU for build error
+
+* Thu Aug 11 2022 huangtianhua <huangtianhua@huawei.com> - 0.13.0-3
+- Fix conflict with python-migrate
+
+* Mon Nov 23 2020 Python_Bot <Python_Bot@openeuler.org>
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0aab820
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+86572c92ae84334907f5e3a2cecc92a6 sqlalchemy-migrate-0.13.0.tar.gz