[copr] master: add generated documentation on gitignore list (e368fe1)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit e368fe1c2f82e0a05604ed56175b9af404b1be61
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Sep 10 09:35:12 2013 +0200
add generated documentation on gitignore list
>---------------------------------------------------------------
.gitignore | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
index 359cb92..fa1a13a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ data/
dist/
build/
*.egg-info
+documentation/build
+documentation/python-doc
10 years, 7 months
[copr] master: add script to generate python documentation (845741f)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 845741f703afc996a505abdc441d80705c752e46
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Sep 10 09:34:18 2013 +0200
add script to generate python documentation
>---------------------------------------------------------------
documentation/Makefile | 34 +++++++++++++++++++++++
documentation/how-to-generate-documentation.txt | 10 +++++++
2 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/documentation/Makefile b/documentation/Makefile
new file mode 100644
index 0000000..fe284a6
--- /dev/null
+++ b/documentation/Makefile
@@ -0,0 +1,34 @@
+# Copyright 2008, Steve 'Ashcrow' Milner <smilner(a)redhat.com>
+#
+# This software may be freely redistributed under the terms of the GNU
+# general public license.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+BUILD_DIR := build
+
+# Python doc related
+EPYDOC_BIN := `which epydoc`
+EPYDOC_SWITCHES := --inheritance listed --graph all --html
+PYTHON_DOC_DIR := python-doc
+PYTHON_DIRS := ../backend ../copr_cli ../coprs_frontend
+
+# TARGETS
+# schema is not incldued here, since you need a live db
+all: python
+
+python:
+ mkdir -p $(BUILD_DIR)/py-doc-build
+ $(SHELL ulimit -n 4096)
+ echo "[epydoc]" > $(BUILD_DIR)/epydoc.lst
+ echo -n "modules: " >> $(BUILD_DIR)/epydoc.lst
+ find $(PYTHON_DIRS) -type f -name '*.py' | grep -v test | xargs echo -n >> $(BUILD_DIR)/epydoc.lst
+ $(EPYDOC_BIN) $(EPYDOC_SWITCHES) -o $(PYTHON_DOC_DIR) --config $(BUILD_DIR)/epydoc.lst
+
+clean:
+ rm -rf build/
+
+distclean:
+ rm -rf build/ $(PYTHON_DOC_DIR) $(JAVA_DOC_DIR) $(SCHEMA_DOC_DIR)
diff --git a/documentation/how-to-generate-documentation.txt b/documentation/how-to-generate-documentation.txt
new file mode 100644
index 0000000..3af5b30
--- /dev/null
+++ b/documentation/how-to-generate-documentation.txt
@@ -0,0 +1,10 @@
+Documentation of python:
+ # epydoc needs to be installed, it needs texlive, ouch :-(
+ # graphviz needs to be installed.
+ # In the Copr git repo checkout, in documentation/ directory:
+ git rm -rf python-doc
+ make python
+ git add python-doc
+ rm -rf build
+ # update python-doc.readme
+ git commit -m 'Updating python documentation.' .
10 years, 7 months
[copr] master: copr-setup.txt change to for mock (798058e)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 798058e89f9e1726f2fcdfcac0232dda97f507d5
Author: Frankie Onuonga <frankie.onuonga(a)gmail.com>
Date: Mon Sep 9 18:32:20 2013 +0300
copr-setup.txt change to for mock
>---------------------------------------------------------------
copr-setup.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/copr-setup.txt b/copr-setup.txt
index 925f433..c04836a 100644
--- a/copr-setup.txt
+++ b/copr-setup.txt
@@ -18,7 +18,7 @@ Required pkgs:
- euca2ools (or other cloud tools)
- rsync
- openssh-clients
- - mock - recent - from epel - including mockchain
+ - mock
- yum-utils
- createrepo
- python-bunch
10 years, 7 months
[copr] master: rhel6 do not know _pkgdocdir macro (2255ac2)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 2255ac2995c739830a6e518bae4cce9c7cb287ea
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Sep 9 16:32:32 2013 +0200
rhel6 do not know _pkgdocdir macro
>---------------------------------------------------------------
copr.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index bf18d2e..dbf3f5a 100644
--- a/copr.spec
+++ b/copr.spec
@@ -1,3 +1,7 @@
+%if 0%{?rhel} < 7 && 0%{?rhel} > 0
+%global _pkgdocdir %{_docdir}/%{name}-%{version}
+%endif
+
Name: copr
Version: 1.1
Release: 1%{?dist}
10 years, 7 months
[copr] master: make instruction clear (368bab5)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 368bab5b0054f2c6cd598458f76edf56d2d5c1e8
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Sep 9 16:03:00 2013 +0200
make instruction clear
>---------------------------------------------------------------
copr-setup.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/copr-setup.txt b/copr-setup.txt
index ff839cb..925f433 100644
--- a/copr-setup.txt
+++ b/copr-setup.txt
@@ -60,7 +60,7 @@ Backend manualy:
this is recomended to be separate mount point
Frontend:
-- rhel6ish - add epel
+- if you run on EPEL - add epel repo
- add yum repository http://copr-be.cloud.fedoraproject.org/results/msuchy/copr/
- yum install copr-frontend
@@ -68,7 +68,7 @@ Frontend:
cp /usr/share/doc/copr-frontend-*/coprs.conf.example /etc/httpd/conf.d/coprs.conf
and edit it to your needs - at least ServerName, port and WSGIScriptAlias
-- virtenv of flask and friends
+- if you run on EPEL add virtenv of flask and friends
- virtualenv --distribute virtenv
- source virtenv/bin/activate
- pip install flask flask-sqlalchemy flask-openid flask-wtf alembic
10 years, 8 months
[copr] master: require recent whoosh (864464a)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 864464a9cf5fd51392a61f4375f6bd773cef1727
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Sep 9 15:59:43 2013 +0200
require recent whoosh
Olders one throws traceback when editing form in FE.
Exception on /coprs/detail/msuchy/copr/update/ [POST]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/share/copr/coprs_frontend/coprs/views/misc.py", line 120, in decorated_function
return f(*args, **kwargs)
File "/usr/share/copr/coprs_frontend/coprs/views/coprs_ns/coprs_general.py", line 185, in copr_update
db.session.commit()
File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 149, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 721, in commit
self.transaction.commit()
File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 361, in commit
self.session.dispatch.after_commit(self.session)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/event.py", line 409, in __call__
fn(*args, **kw)
File "/usr/lib/python2.7/site-packages/flask_sqlalchemy.py", line 185, in after_commit
models_committed.send(session.app, changes=d.values())
File "/usr/lib/python2.7/site-packages/blinker/base.py", line 220, in send
for receiver in self.receivers_for(sender)]
File "/usr/lib/python2.7/site-packages/flask_whooshee.py", line 179, in on_commit
writer.commit()
File "/usr/lib/python2.7/site-packages/whoosh/writing.py", line 907, in commit
self._commit_toc(finalsegments)
File "/usr/lib/python2.7/site-packages/whoosh/writing.py", line 854, in _commit_toc
toc.write(self.storage, self.indexname)
File "/usr/lib/python2.7/site-packages/whoosh/index.py", line 688, in write
stream.write_string(pickle.dumps(schema, -1))
File "/usr/lib/python2.7/site-packages/whoosh/fields.py", line 502, in __getstate__
del d["_struct"]
KeyError: '_struct'
>---------------------------------------------------------------
copr.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/copr.spec b/copr.spec
index 03d282e..bf18d2e 100644
--- a/copr.spec
+++ b/copr.spec
@@ -56,7 +56,7 @@ Requires: python-flask-whooshee
Requires: python-blinker
Requires: python-psycopg2
Requires: python-pylibravatar
-Requires: python-whoosh
+Requires: python-whoosh >= 2.5.3
# for tests:
Requires: pytest
Requires: python-flexmock
10 years, 8 months