[python-datanommer-models: 3/3] Latest upstream with alembic upgrade scripts.

Ralph Bean ralph at fedoraproject.org
Thu Feb 7 18:21:37 UTC 2013


commit 4ab8099edabbc36f0ea2b1c742c13eec8fdd11dd
Author: Ralph Bean <rbean at redhat.com>
Date:   Thu Feb 7 13:21:08 2013 -0500

    Latest upstream with alembic upgrade scripts.

 .gitignore                    |    1 +
 python-datanommer-models.spec |   27 ++++++++++++++++++++++-----
 sources                       |    2 +-
 3 files changed, 24 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index baf9ce8..4d69b68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /datanommer.models-0.2.0.tar.gz
+/datanommer.models-0.4.1.tar.gz
diff --git a/python-datanommer-models.spec b/python-datanommer-models.spec
index efc2087..5531e2e 100644
--- a/python-datanommer-models.spec
+++ b/python-datanommer-models.spec
@@ -1,8 +1,8 @@
 %global modname datanommer.models
 
 Name:           python-datanommer-models
-Version:        0.2.0
-Release:        6%{?dist}
+Version:        0.4.1
+Release:        1%{?dist}
 Summary:        SQLAlchemy models for datanommer
 
 Group:          Development/Libraries
@@ -24,11 +24,12 @@ BuildRequires:  python-argparse
 BuildRequires:  python-ordereddict
 %endif
 
-
-
 BuildRequires:  fedmsg
 Requires:       fedmsg
 
+BuildRequires:  python-alembic
+Requires:       python-alembic
+
 %if %{?rhel}%{!?rhel:0} >= 6
 BuildRequires:    python-sqlalchemy0.7
 Requires:         python-sqlalchemy0.7
@@ -58,7 +59,12 @@ rm -rf *.egg-info
 
 # fedmsg owns this directory, but we're going to add a file.
 %{__mkdir_p} %{buildroot}%{_sysconfdir}/fedmsg.d/
-%{__cp} example-config.py %{buildroot}%{_sysconfdir}/fedmsg.d/datanommer.py
+%{__cp} fedmsg.d/example-datanommer.py %{buildroot}%{_sysconfdir}/fedmsg.d/datanommer.py
+
+# DB upgrade/downgrade scripts
+%{__mkdir_p} %{buildroot}%{_datadir}/%{modname}/
+%{__cp} alembic.ini %{buildroot}%{_datadir}/%{modname}/alembic.ini
+%{__cp} -r alembic/ %{buildroot}%{_datadir}/%{modname}/alembic/
 
 %check
 %{__python} setup.py test
@@ -67,21 +73,32 @@ rm -rf *.egg-info
 %doc README.rst LICENSE
 %{python_sitelib}/datanommer/
 %{python_sitelib}/%{modname}-%{version}*
+%{_datadir}/%{modname}/
 
 %config(noreplace) %{_sysconfdir}/fedmsg.d/datanommer.py*
 
 
+
 %changelog
+* Thu Feb 07 2013 Ralph Bean <rbean at redhat.com> - 0.4.1-1
+- Latest upstream contributed by Jessica Anderson.
+- Included alembic upgrade scripts in /usr/share/datanommer.models/
+
 * Thu Nov 08 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-6
 - Patch setup.py to pull in the correct sqlalchemy for el6.
 - Add BR for python-argparse and python-ordereddict.
+
 * Thu Nov 08 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-5
 - Added temporary BR on python-bunch to get around an old moksha issue.
+
 * Mon Oct 22 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-4
 - Remove explicit versioned Conflicts with old datanommer.
+
 * Fri Oct 12 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-3
 - Remove unneccessary CFLAGS definition.
+
 * Thu Oct 11 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-2
 - Remove upstream egg-info so that its gets rebuilt.
+
 * Thu Oct 11 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-1
 - Initial split out from the main datanommer package.
diff --git a/sources b/sources
index 1590f56..b862eb2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-4d050f06bb853b9b48ed89889716d1c8  datanommer.models-0.2.0.tar.gz
+f938e066d60c5f9c58015c35ca9dcb57  datanommer.models-0.4.1.tar.gz


More information about the scm-commits mailing list