rpms/python-migrate/F-9 python-migrate-shell-test.patch, NONE, 1.1 python-migrate.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Toshio くらとみ (toshio) fedora-extras-commits at redhat.com
Thu Jul 17 19:47:05 UTC 2008


Author: toshio

Update of /cvs/pkgs/rpms/python-migrate/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16555/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	python-migrate-shell-test.patch python-migrate.spec 
Log Message:
Initial import.


python-migrate-shell-test.patch:

--- NEW FILE python-migrate-shell-test.patch ---
diff -up sqlalchemy-migrate-0.4.4/test/fixture/shell.py.env sqlalchemy-migrate-0.4.4/test/fixture/shell.py
--- sqlalchemy-migrate-0.4.4/test/fixture/shell.py.env	2008-04-04 13:44:09.000000000 -0700
+++ sqlalchemy-migrate-0.4.4/test/fixture/shell.py	2008-07-02 13:31:51.000000000 -0700
@@ -12,7 +12,15 @@ class Shell(Pathed):
             return command
         # Redirect stderr to stdout
         # This is a bit of a hack, but I've not found a better way
+        py_path = os.environ.get('PYTHONPATH', '')
+        py_path_list = py_path.split(':')
+        py_path_list.append(os.path.abspath('.'))
+        os.environ['PYTHONPATH'] = ':'.join(py_path_list)
         fd=os.popen(command+' 2>&1',*p,**k)
+        if py_path:
+            py_path = os.environ['PYTHONPATH'] = py_path
+        else:
+            del os.environ['PYTHONPATH']
         return fd
     def output_and_exitcode(self,*p,**k):
         fd=self.execute(*p,**k)


--- NEW FILE python-migrate.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%define srcname sqlalchemy-migrate

Name: python-migrate
Version: 0.4.4
Release: 3%{?dist}
Summary: Schema migration tools for SQLAlchemy

Group: Development/Languages
License: MIT
URL: http://code.google.com/p/%{srcname}/
Source0: http://%{srcname}.googlecode.com/files/%{srcname}-%{version}.tar.gz
# Fix a test when migrate is not installed.  Applied upstream.
Patch0: python-migrate-shell-test.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
Requires: python-sqlalchemy >= 0.3.10

%description
Schema migration tools for SQLAlchemy designed to support an agile approach
to database design and make it easier to keep development and production
databases in sync as schema changes are required.  It allows you to manage 
atabase change sets and database repository versioning.

%prep
%setup -q -n %{srcname}-%{version}
%patch0 -p1 -b .env

%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}
%{__mv} %{buildroot}%{_bindir}/migrate %{buildroot}%{_bindir}/sqlalchemy-migrate

%clean
%{__rm} -rf %{buildroot}

# Check needs py.test in order to run
#%check
#echo 'sqlite:///__tmp__' > test_db.cfg
# setuptools doesn't appear to be compatible with py.test
# %{__python} setup.py test
#%{__python} -c 'from py.test.cmdline import main; main(["test"])'

%files
%defattr(-,root,root,-)
%doc README CHANGELOG docs/
%{_bindir}/sqlalchemy-migrate
%{python_sitelib}/*

%changelog
* Tue Jul 15 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.4-3
- Rename binary to sqlalchemy-migrate to avoid potential filename clashes.
  (Queried upstream but the change is only in Fedora).  Noted that
  openmosix defintely has a /usr/bin/migrate already.

* Sat Jul 06 2008 Ricky Zhou <ricky at fedoraproject.org> 0.4.4-2
- Add BuildRequires on python-setuptools-devel.
- Add Requires on SQLAlchemy.

* Sat Jun 21 2008 Toshio Kuratomi <toshio at fedoraproject.org> 0.4.4-1
- Initial Fedora Build.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-migrate/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	17 Jul 2008 00:18:19 -0000	1.1
+++ .cvsignore	17 Jul 2008 19:46:20 -0000	1.2
@@ -0,0 +1 @@
+sqlalchemy-migrate-0.4.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-migrate/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	17 Jul 2008 00:18:19 -0000	1.1
+++ sources	17 Jul 2008 19:46:20 -0000	1.2
@@ -0,0 +1 @@
+ea2da4aaeb82b538ec23148b35ead72c  sqlalchemy-migrate-0.4.4.tar.gz




More information about the scm-commits mailing list