[python-martian/f17] initial version

Marcelo Barbosa firemanxbr at fedoraproject.org
Sat Jun 15 18:04:07 UTC 2013


commit 0ca50d81cc5a996ab7f598cfadc1f4ada9cbff0d
Author: marcelo.barbosa <marcelo.barbosa at firelap.local>
Date:   Sat Jun 15 15:03:33 2013 -0300

    initial version

 .gitignore          |    1 +
 python-martian.spec |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b330b99 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/martian-0.14.tar.gz
diff --git a/python-martian.spec b/python-martian.spec
new file mode 100644
index 0000000..a9cf5c8
--- /dev/null
+++ b/python-martian.spec
@@ -0,0 +1,46 @@
+%global pkgname martian
+Name: python-martian
+Version: 0.14
+Release: 1%{?dist}
+Summary: A library to grok configuration from Python code
+Group: Development/Libraries
+License: ZPLv2.1
+URL: https://pypi.python.org/pypi/martian
+Source0: https://pypi.python.org/packages/source/m/%{pkgname}/%{pkgname}-%{version}.tar.gz 
+BuildArch: noarch 
+BuildRequires: python2-devel
+BuildRequires: python-zope-interface
+BuildRequires: python-setuptools
+Requires: python-zope-interface
+
+%description
+A library that allows the embedding of configuration information in
+Python code. Martian can then grok the system and do the appropriate
+configuration registrations. One example of a system that uses Martian
+is the system where it originated: Grok
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+rm -rf %{pkgname}.egg-info
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+%check
+# This test fails:
+# Traceback (most recent call last):
+#  File "test_all.py", line 3, in <module>
+#    from martian.testing import FakeModule
+#ImportError: No module named martian.testing
+
+%files
+%doc CHANGES.txt COPYRIGHT.txt CREDITS.txt LICENSE.txt README.txt PKG-INFO
+%{python_sitelib}/%{pkgname}
+%{python_sitelib}/%{pkgname}-*.egg-info
+
+%changelog
+* Tue Jun 11 2013 Marcelo Barbosa <mr.marcelo.barbosa at gmail.com> - 0.14-1
+- Initial package
diff --git a/sources b/sources
index e69de29..69a9c64 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bca590e83b829a42ec027ab459739665  martian-0.14.tar.gz


More information about the scm-commits mailing list