Без опису

Pierre-Yves Chibon af7b855152 Expand the doc on api_view_user_activity_date 8 роки тому
alembic f021456b0a Delete the old status only at the end 8 роки тому
ansible c82c279360 Add missing Pagure services to Vagrant 8 роки тому
doc 889973c72e Fix the file name in the 'tests' folder 8 роки тому
ev-server e89a199fb9 Simplify our logging on the @ralph's advice 8 роки тому
fedmsg.d e0a21ed16c Add the config file to initialize the consumer 8 роки тому
files 72c9017a5c Release 2.8.1 8 роки тому
milters 5a54a4a239 Fix the milter to get it working 8 роки тому
pagure af7b855152 Expand the doc on api_view_user_activity_date 8 роки тому
pagure-ci 6c8123528a Rework a little more pagure-ci 8 роки тому
tests ede575c8b8 Fix typo in the exception raised 8 роки тому
webhook-server d1cbf9d8b9 Open a session to the DB for every message received and close it afterward 8 роки тому
.gitignore 1e9f713cee Fixes : Fork button still visible after fork. Issue #1225. 8 роки тому
LICENSE 96994225ac Add the GPLv2 LICENSE file 10 роки тому
MANIFEST.in 1edf44a551 Include the pagure-ci module in the releases 8 роки тому
README.rst 4e3668e967 Create a Vagrantfile and Ansible role for Pagure development 8 роки тому
UPGRADING.rst f8b1814bd0 Release 2.8 8 роки тому
Vagrantfile.example 4e3668e967 Create a Vagrantfile and Ansible role for Pagure development 8 роки тому
createdb.py 1f6bd5001e Figure a way to populate the ACL table from the configuration file by running createdb.py 9 роки тому
dev-data.py 6aa42538c5 Added realname and description data for groups in the dev data generator 8 роки тому
nosetests 38f510105b Added commit comparison view 8 роки тому
pagure_logo.svg 43167e1e09 update the logo 8 роки тому
requirements-fedora.txt 1a932de7a7 Add binaryornot to the list of dependencies 8 роки тому
requirements.txt af61b71aea Avoid double requirements error while running: pip install -r requirments.txt 8 роки тому
rundocserver.py f8556c5a0f Add a rundocserver script allowing to run the documentation server 9 роки тому
runserver.py 94ab5a12c8 Setup the PAGURE_CONFIG env variable before importing pagure's app 8 роки тому
runtests.sh 51656a4f77 Undo specifying a config file to run the tests and just bail on jenkins 8 роки тому
setup.py 15aa414192 Update the setup.py 8 роки тому
tests_requirements.txt 1d397ea33a No space between name and version 9 роки тому

README.rst

Pagure
======

:Author: Pierre-Yves Chibon


Pagure is a git-centered forge, python based using pygit2.

With pagure you can host your project with its documentation, let your users
report issues or request enhancements using the ticketing system and build your
community of contributors by allowing them to fork your projects and contribute
to it via the now-popular pull-request mechanism.


Homepage: https://pagure.io/pagure

See it at work: https://pagure.io


Playground version: https://stg.pagure.io



Get it running
==============

There are several options when it comes to a development environment. Vagrant
will provide you with a virtual machine which you can develop on, or you can
install it directly on your host machine.

Vagrant
^^^^^^^

For a more thorough introduction to Vagrant, see
https://fedoraproject.org/wiki/Vagrant.

An example Vagrantfile is provided as ``Vagrantfile.example``. To use it,
just copy it and install Vagrant::

$ cp Vagrantfile.example Vagrantfile
$ sudo dnf install ansible libvirt vagrant-libvirt vagrant-sshfs vagrant-hostmanager
$ vagrant up

The default ``Vagrantfile`` forwards ports from the host to the guest,
so you can interact with the application as if it were running on your
host machine.

.. note::
``vagrant-hostmanager`` will automatically maintain /etc/hosts for you so you
can access the development environment from the host using its hostname, which
by default is ``pagure-dev.example.com``. You can choose not to use this
functionality by simply not installing the ``vagrant-hostmanager`` plugin, but
if you want Pagure to provide valid URLs in the UI for git repositories, you
will need to adjust Pagure's configuration found in ~/pagure.cfg on the guest.


Manually
^^^^^^^^

* Install the needed system libraries::

sudo dnf install git python-virtualenv libgit2-devel \
libjpeg-devel gcc libffi-devel redhat-rpm-config

.. note:: Do note the version of libgit2 that you install, for example
in ``libgit2-0.23.4-1`` you need to keep in mind the ``0.23``

* Retrieve the sources::

git clone https://pagure.io/pagure.git
cd pagure

* Install dependencies

* create the virtualenv::

virtualenv pagure_env
source ./pagure_env/bin/activate

* Install the correct version of pygit2::

pip install pygit2==.*

So in our example::

pip install pygit2==0.23.*

* Install the rest of the dependencies::

pip install -r requirements.txt


* Create the folder that will receive the projects, forks, docs, requests and
tickets' git repo::

mkdir {repos,docs,forks,tickets,requests}


* Create the inital database scheme::

python createdb.py


* Run it::

./runserver.py


* To get some profiling information you can also run it as::

./runserver.py --profile


This will launch the application at http://127.0.0.1:5000