[python-tahrir] Initial scm commit

Ross Delinger rossdylan at fedoraproject.org
Mon Jul 9 17:51:30 UTC 2012


commit e724a821ea57e358ae5d3972e29b86870b5afc00
Author: Ross Delinger <rossdylan at csh.rit.edu>
Date:   Mon Jul 9 13:51:13 2012 -0400

    Initial scm commit

 .gitignore         |    1 +
 python-tahrir.spec |  121 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 123 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..05f62ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tahrir-0.1.5.tar.gz
diff --git a/python-tahrir.spec b/python-tahrir.spec
new file mode 100644
index 0000000..453fc3a
--- /dev/null
+++ b/python-tahrir.spec
@@ -0,0 +1,121 @@
+%global modname tahrir
+
+Name:             python-tahrir
+Version:          0.1.5
+Release:          1%{?dist}
+Summary:          A pyramid app for issuing your own Open Badges
+
+Group:            Development/Languages
+License:          AGPLv3+
+URL:              http://pypi.python.org/pypi/tahrir
+Source0:          http://pypi.python.org/packages/source/t/tahrir/tahrir-0.1.5.tar.gz
+
+BuildArch:        noarch
+
+
+BuildRequires:    python2-devel
+BuildRequires:    python-setuptools
+
+Requires: python-pyramid
+Requires: python-tahrir-api
+Requires: python-sqlalchemy
+Requires: python-transaction
+Requires: python-pyramid-tm
+Requires: python-python-zope-sqlalchemy
+Requires: python-weberror
+Requires: python-tw2-sqla
+Requires: python-formencode
+
+
+%description
+tahrir
+======
+
+tahrir is `Arabic for Liberation
+<http://en.wikipedia.org/wiki/Tahrir_Square>`_.
+
+tahrir is also a `Pyramid <http://www.pylonsproject.org/>`_ app for issuing
+your own `Open Badges <https://wiki.mozilla.org/Badges>`_.
+
+The name is total overkill.
+
+Installing
+----------
+
+::
+
+$ sudo pip install tahrir
+
+Building a configuration file
+-----------------------------
+
+Get a sample configuration file::
+
+$ wget https://raw.github.com/ralphbean/tahrir/master/production.ini -O
+tahrir.ini
+
+And edit it to your liking.  In particular you will need to change the
+following values under the ``[server:main]`` section:
+
+- ``host`` = yoursite.com - ``port`` = 80
+
+And the following values under the ``[app:pyramid]`` section:
+
+- ``tahrir.salt`` = "whatever you want" - ``tahrir.admin`` = "some super
+secret string used to login as admin" - ``tahrir.title`` = "just badgin'
+around" - ``tahrir.pngs.uri`` = /home/user/badges/pngs -
+``tahrir.base_url`` = "yoursite.com"
+
+Setting up the DB
+-----------------
+
+::
+
+$ initialize_tahrir_db tahrir.ini
+
+Running
+-------
+
+::
+
+$ pserve tahrir.ini
+
+Reporting Bugs
+--------------
+
+If you find bugs in Tahrir or have ideas for enhancements, please report
+them at http://github.com/ralphbean/tahrir/issues.
+
+Hacking
+-------
+
+If you'd like to contribute to tahrir or just poke at the code, you can use
+the following instructions to set up a development environment.
+
+::
+
+$ sudo yum -y install python-virtualenvwrapper $ git clone
+git://github.com/ralphbean/tahrir.git $ cd tahrir $ mkvirtualenv tahrir
+(tahrir)$ python setup.py develop (tahrir)$ initialize_tahrir_db
+development.ini (tahrir)% pserve --reload development.ini
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+
+%files
+%doc README.rst LICENSE
+
+%{python_sitelib}/%{modname}
+%{python_sitelib}/%{modname}-%{version}*
+
+
+%changelog
+* Wed Jun 20 2012 rossdylan <rossdylan at csh.rit.edu> 0.1.5-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..a330a9e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ff4166b308db39a1e462ae8bd0881d85  tahrir-0.1.5.tar.gz


More information about the scm-commits mailing list