blob: 5c526a093fcdfc118e1d052d70098e73f7f0971a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
==============
Project Grumpy
==============
Project Grumpy is a maintainer-oriented set of tools for handling various
developer-related metadata.
Requirements
============
- Python-2.5+
- pkgcore
- SQLAlchemy-0.6
- Flask
- Flask-OpenID
- Flask-SQLAlchemy
Database support
----------------
Although main development is aimed towards use of PostgreSQL, most of the
databases supported by SQLAlchemy should work fine.
Database configuration is defined by specifying the RFC-1738 style uri::
dialect+driver://username:password@host:port/database
Installation
============
Please note that database configuration is currently hardcoded to use
PostgreSQL database named 'grumpy' on localhost using 'grumpy:grumpy' as
credentials. This will be fixed in future ;)
So the first step you need to do, is to give access to user 'grumpy' using
password 'grumpy' to database called 'grumpy' on your local machine.
To setup the app, you need to populate database with proper schema. So fire
up the python interpreter in the root directory of grumpy project:
$ python
>>> from grumpy.models import db
>>> db.create_all()
If no errors were shown, then schema creation was successful :)
Now in order to populate database with portage data, there's utility inside
'utils' directory called 'grumpy_sync.py'. All you have to do for now is to
give it a path to portage directory as first argument:
$ python utils/grumpy_sync.py /usr/portage
And now go and fetch yourself a glass of cold milk because this initial sync
will take a while.
|