Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2022-12-30 16:01:15 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-01-28 14:53:14 +0300
commit76c32a5d44d7bd197ccbc9e5a6955ff2e4022066 (patch)
tree4744438e15f409cf54f97c2a91c162342427fb2d /README.md
parent4c57bd71c6665803be2c61445c90fa2295dd993a (diff)
new: Add custom PEP517 build backend
Diffstat (limited to 'README.md')
-rw-r--r--README.md80
1 files changed, 63 insertions, 17 deletions
diff --git a/README.md b/README.md
index f3fe21bd6..75d5137de 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-# Welcome to Gajim
+[[_TOC_]]
+
+## Requirements
### Runtime Requirements
@@ -39,19 +41,67 @@
- [gst-plugins-ugly](https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly)
- [gst-libav](https://gitlab.freedesktop.org/gstreamer/gst-libav)
-### Install Requirements
+### Build Requirements
- [setuptools](https://pypi.org/project/setuptools/) (>=65.0.0)
- [gettext](https://savannah.gnu.org/projects/gettext/)
-### Running Tests
+To build Gajim a PEP517 build frontend like pip (https://pip.pypa.io/en/stable/) or build (https://pypa-build.readthedocs.io/en/stable/) must be used.
+
+The build frontend takes care of installing all python build requirements. Beware `gettext` is not a python library and cannot be installed by the build frontend.
+
+## Building
+
+### Building the metadata files (Unix only)
+
+```bash
+./pep517build/build_metadata.py -o dist/metadata
+```
+
+### Building the wheel
+
+This is only necessary if you need the wheel, otherwise you can skip to the Installing section.
+
+#### Using `build`
+
+```bash
+python -m build -w
+```
+
+#### Using `pip`
+
+```bash
+pip wheel --no-deps --use-pep517 -w dist .
+```
+
+## Installing
+
+### Installing with `pip`
+
+```bash
+pip install .
+```
+
+### Installing the wheel
+
+```bash
+pip install dist/name_of_wheel.whl
+```
+
+### Installing the metadata files (Unix only)
+
+```bash
+./pep517build/install_metadata.py dist/metadata --prefix=/usr
+```
+
+## Tests
- `python -m unittest discover -s test`
- `python -m unittest ./test/dialogs/gui_file.py` (for testing GUI files)
-### Installation Procedure
+## Packages and install instructions
-#### Packages
+### Packages
- [Arch Linux](https://www.archlinux.org/packages/community/any/gajim/)
- [Debian](https://packages.debian.org/stable/gajim)
@@ -59,24 +109,20 @@
- [Ubuntu](https://packages.ubuntu.com/gajim)
- [FreeBSD](https://www.freshports.org/net-im/gajim/)
-#### Flatpak
+### Flatpak
see [README](./flatpak/README.md)
-#### Snapshots
+### Snapshots
- [Daily Linux](https://www.gajim.org/downloads/snap/)
- [Daily Windows](https://gajim.org/downloads/snap/win)
-#### Linux
-
- pip install .
-
-#### Mac
+### Mac
see [Wiki](https://dev.gajim.org/gajim/gajim/-/wikis/help/Gajim-on-macOS)
-#### Developing
+## Developing
To create a virtualenv you can execute
@@ -89,17 +135,17 @@ Afterwards activate the virtual environment with
source .venv/bin/activate
./launch.py
-#### Windows
+### Windows
see [README](./win/README.md)
-### Miscellaneous
+## Miscellaneous
-#### Debugging
+### Debugging
Execute gajim with `--verbose`
-#### Links
+### Links
- [FAQ](https://dev.gajim.org/gajim/gajim/wikis/help/gajimfaq)
- [Wiki](https://dev.gajim.org/gajim/gajim/wikis/home)