From 4978829216c071f123e17847a777d9cb29773535 Mon Sep 17 00:00:00 2001 From: FrantiĊĦek Zatloukal Date: Feb 06 2019 09:17:19 +0000 Subject: Update README --- diff --git a/README.rst b/README.rst index 3df8591..88df516 100644 --- a/README.rst +++ b/README.rst @@ -25,7 +25,7 @@ version of trigger (available for Fedora). If you want to set up a development environment, look into that particular section (below) instead. If you really intend to install the files into system dirs, do:: - $ sudo python setup.py install + $ sudo python3 setup.py install Updating Production Logging Configuration ----------------------------------------- @@ -57,7 +57,7 @@ Running the Trigger Once the fedmsg component has been installed, run the following command in the working directory with triggerjob.py:: - $ fedmsg-hub + $ fedmsg-hub-3 Setting Up a Dev Environment ---------------------------- @@ -65,7 +65,7 @@ Setting Up a Dev Environment Install the RPM dependencies mentioned in the `Installation in Production`_ section. Then also install the following:: - $ sudo dnf install python2-virtualenv python-pip + $ sudo dnf install python3-virtualenv python3-pip Create a virtualenv for the trigger, including system site-packages:: @@ -74,13 +74,13 @@ Create a virtualenv for the trigger, including system site-packages:: Install requirements:: - $ pip install -r requirements.txt + $ pip3 install -r requirements.txt For dev environment, it's important that ``fedmsg-hub`` is installed in the virtualenv. That's because trigger installs fedmsg configuration, and running the system fedmsg-hub would not see it. You'll need to run this:: - $ pip install --ignore-installed 'fedmsg[consumers]' + $ pip3 install --ignore-installed 'fedmsg[consumers]' If you encounter any installation issues, it's possible that you don't have ``gcc`` and necessary C development headers installed to compile C extensions @@ -90,7 +90,7 @@ In the end, make sure that ``env_trigger/bin/fedmsg-hub`` file is present. Next, install taskotron-trigger in a development mode:: - $ pip install -e . + $ pip3 install -e . Create a local configuration file:: @@ -108,7 +108,7 @@ Edit ``conf/trigger.cfg`` and set: Once this is all done, you can run fedmsg-hub (while still having the virtualenv active) and it will pick up the local configuration:: - $ fedmsg-hub + $ fedmsg-hub-3 If you use the default trigger rules, you should see similar messages to confirm they have been enabled:: @@ -134,4 +134,4 @@ Running the test suite From inside the virtualenv run:: - $ py.test + $ pytest-3