Aucune description

Pierre-Yves Chibon 83702f10f5 Release 2.90.1 il y a 7 ans
alembic a47c0d60af Remove server_default in the add_granularity_to_watching_repos migration il y a 7 ans
ansible 74b49b0249 Drop the FORK_FOLDER configuration key and document it as deprecated il y a 8 ans
doc 83702f10f5 Release 2.90.1 il y a 7 ans
docker 630f1101ca Add EV server to the docker-compose setup il y a 7 ans
ev-server e0ebc15075 Use python-redis instead of trollius-redis to correctly clean up when client leaves il y a 7 ans
fedmsg.d e0a21ed16c Add the config file to initialize the consumer il y a 8 ans
files 83702f10f5 Release 2.90.1 il y a 7 ans
milters 5a54a4a239 Fix the milter to get it working il y a 8 ans
pagure 83702f10f5 Release 2.90.1 il y a 7 ans
pagure-ci 4635b56f32 Use custom logger on all module so we can configure finely the logging il y a 7 ans
pagure-loadjson c9a5839240 Fix imports in pagure_loadjson_server.py il y a 7 ans
pagure-logcom 6256cdac0c Fix logcom server il y a 7 ans
tests 7403a2e084 Add the ability to filter projects by owner il y a 7 ans
utils f6b9f68d6f Fix running the tests with the perfplugin but without messing coverage il y a 7 ans
webhook-server b84a966f9d Make webhook server use redis host config il y a 7 ans
.flake8 9e0b8e9fdc pep8 fixes and add a .flake8 configuration file il y a 7 ans
.gitignore e74c51deb6 Update the .gitignore file to ignore files generated when ran on jenkins il y a 7 ans
.pylintrc 254a80ed21 pylintrc: be more specific about generated-members il y a 8 ans
LICENSE 96994225ac Add the GPLv2 LICENSE file il y a 10 ans
MANIFEST.in fa9a6c203b Ship pagure-loadjson in the tarball and install it in the spec file il y a 7 ans
README.rst 835397c0b3 Update README.rst il y a 8 ans
UPGRADING.rst 15abe5a06d Upgrade to 2.15 il y a 7 ans
Vagrantfile.example 4e3668e967 Create a Vagrantfile and Ansible role for Pagure development il y a 8 ans
createdb.py 1f6bd5001e Figure a way to populate the ACL table from the configuration file by running createdb.py il y a 9 ans
dev-data.py 72e9dba789 Replace get_project to get_authorized_project il y a 7 ans
docker-compose.yml 630f1101ca Add EV server to the docker-compose setup il y a 7 ans
nosetests 969b905b62 Add performance totals plugin il y a 7 ans
openshift.cfg 630f1101ca Add EV server to the docker-compose setup il y a 7 ans
pagure_logo.svg 43167e1e09 update the logo il y a 8 ans
requirements-ci.txt 71c8894fd4 Re-structure how are requirements are listed il y a 7 ans
requirements-ev.txt 71c8894fd4 Re-structure how are requirements are listed il y a 7 ans
requirements-fedora.txt 0a03346aba Use ensure_lock rather than filelock il y a 7 ans
requirements-optional.txt 71c8894fd4 Re-structure how are requirements are listed il y a 7 ans
requirements-webhook.txt 71c8894fd4 Re-structure how are requirements are listed il y a 7 ans
requirements.txt 022d0c110e set straight.plugin requirement ge 1.4.0-post-1 il y a 7 ans
run_ci_tests.sh 4f6f98bfc1 No longer check the return code, set -e takes care of it il y a 7 ans
rundocserver.py fe3bb6352f Fix typo in the help string and remove un-needed import il y a 7 ans
runserver.py 62924b6eae Make no-debug a runserver option il y a 7 ans
runtests.sh 969b905b62 Add performance totals plugin il y a 7 ans
setup.py 079c2a6b56 Introduce pagure-admin il y a 7 ans
tests_requirements.txt 2fefaf8de9 List flake8 in the requirements for the tests il y a 7 ans

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 python2-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``


.. note:: On Fedora 23 and earlier or on RHEL and derivative (CentOS,
Scientific Linux) the package `python2-virtualenv` is named
`python-virtualenv`

* 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


* To run unit-tests on pagure

* Install the dependencies::

pip install -r tests_requirements.txt

* Run it::

./runtests.sh