Skip to content
Snippets Groups Projects
Commit 9213934b authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] #813 remove obsolete github references in README.md

Update and cleanup README.md
parent 2093ee7d
No related branches found
No related tags found
1 merge request!791Fix github links
<!-- Landscape | [![Code Health](https://landscape.io/github/duniter/sakia/dev/landscape.svg?style=flat)](https://landscape.io/github/duniter/sakia/dev) --> ![sakia logo](https://git.duniter.org/clients/python/sakia/-/raw/master/sakia.png)
![sakia logo](https://raw.github.com/duniter/sakia/master/sakia.png)
# Sakia # Sakia
[![coverage report](https://git.duniter.org/clients/python/sakia/badges/gitlab/coverage.svg)](https://git.duniter.org/clients/python/sakia/commits/gitlab) [![coverage report](https://git.duniter.org/clients/python/sakia/badges/gitlab/coverage.svg)](https://git.duniter.org/clients/python/sakia/commits/gitlab)
...@@ -8,11 +6,8 @@ ...@@ -8,11 +6,8 @@
[![Build Status](https://travis-ci.org/duniter/sakia.svg?branch=travis)](https://travis-ci.org/duniter/sakia) [![Build Status](https://travis-ci.org/duniter/sakia.svg?branch=travis)](https://travis-ci.org/duniter/sakia)
[![Build status](https://ci.appveyor.com/api/projects/status/pvl18xon8pvu2c8w/branch/dev?svg=true)](https://ci.appveyor.com/project/Insoleet/sakia-bee4m/branch/dev) [![Build status](https://ci.appveyor.com/api/projects/status/pvl18xon8pvu2c8w/branch/dev?svg=true)](https://ci.appveyor.com/project/Insoleet/sakia-bee4m/branch/dev)
========
Python3 and PyQt5 Client for [duniter](http://www.duniter.org) project. Python3 and PyQt5 Client for [duniter](http://www.duniter.org) project.
### Features ### Features
* Accounts management * Accounts management
* Communities viewing * Communities viewing
...@@ -25,40 +20,27 @@ Python3 and PyQt5 Client for [duniter](http://www.duniter.org) project. ...@@ -25,40 +20,27 @@ Python3 and PyQt5 Client for [duniter](http://www.duniter.org) project.
### Dependencies ### Dependencies
* Dependencies : * Dependencies :
* Qt5 * Qt5
* [python3](https://www.python.org/downloads/) * [python 3.6+](https://www.python.org/downloads/)
* [libsodium](http://doc.libsodium.org/installation/README.html) * [libsodium](http://doc.libsodium.org/installation/README.html)
* General tips : use pyenv to build sakia, as described in the [wiki](https://github.com/duniter/sakia/wiki/Cutecoin-install-for-developpers) General tips : use [pyenv](https://github.com/pyenv/pyenv) to build sakia, as described in the [documentation](https://git.duniter.org/clients/python/sakia/-/blob/master/doc/install_for_developers.md)
Building Python with pyenv requires libraries of `openssl` and `sqlite3`. On Ubuntu, install it using the following commands :
Building python 3 with pyenv requires libraries of `openssl` and `sqlite3`. On Ubuntu, install it using the following commands :
```
apt-get update apt-get update
apt-get install libssl-dev apt-get install libssl-dev
apt-get install libsqlite3-dev apt-get install libsqlite3-dev
```
### Wheel Build scripts
* Install __wheel__ with `pip install wheel`
* Run `python3 gen_resources.py` in sakia folder
* Run `python3 gen_translations.py` in sakia folder
* To build the wheel : Run `python3 setup.py bdist_wheel` in sakia folder
### Pyinstaller Build scripts
* Install __pyinstaller__ with `pip install pyinstaller`
* Run `python3 gen_resources.py` in sakia folder
* Run `python3 gen_translations.py` in sakia folder
* To build the binaries : Run `pyinstall sakia.spec`
### Install with pip ### Install with pip
* Run `pip install sakia` * Run `pip install sakia`
* start "sakia" :) * start "sakia" :)
### Download latest release ### Download latest release
* Go to [current release](https://github.com/duniter/sakia/releases) * Go to [current release](https://git.duniter.org/clients/python/sakia/-/releases)
* Download corresponding package to your operating system * Download AppImage for linux x86_64. Run it !
* Unzip and start "sakia" :) * Join our developer community by contacting us on [duniter forum](http://forum.duniter.org/)
* Join our beta community by contacting us on [duniter forum](http://forum.duniter.org/)
## Command line options ## Command line options
...@@ -67,88 +49,98 @@ apt-get install libsqlite3-dev ...@@ -67,88 +49,98 @@ apt-get install libsqlite3-dev
`--currency g1-test` to connect to the g1-test currency network. `--currency g1-test` to connect to the g1-test currency network.
## Development ## Development
* When writing docstrings, use the reStructuredText format recommended by https://www.python.org/dev/peps/pep-0287/#docstring-significant-features * When writing docstrings, use the reStructuredText format recommended by [PEP 0287](https://www.python.org/dev/peps/pep-0287/#docstring-significant-features)
* Use make commands to check the code and the format it correct. * Use make commands to check the code and the format it correct.
The development tools require Python 3.6.x or higher. The development tools require Python 3.6.x or higher.
* Create a python virtual environment with [pyenv](https://github.com/pyenv/pyenv) * Install a supported Python version with [pyenv](https://github.com/pyenv/pyenv)
```bash
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
```
* Create a virtualenv in the project folder:
python -m venv .venv
* Install dependencies * Install dependencies
```bash
pip install -r requirements.txt pip install -r requirements.txt
```
* Run Sakia from the source code * Run Sakia from the source code
```bash
PYTHONPATH="`pwd`/src/." python src/sakia/main.py PYTHONPATH="`pwd`/src/." python src/sakia/main.py
```
* Before submiting a merge requests, please check the static typing and tests. * Before submiting a merge requests, please check the static typing and tests.
* Install dev dependencies * Install dev dependencies
```bash
pip install -r requirements_dev.txt pip install -r requirements_dev.txt
```
* Check static typing with [mypy](http://mypy-lang.org/) * Check static typing with [mypy](http://mypy-lang.org/)
```bash
make check make check
```
* Run all unit tests (pytest module) with: * Run all unit tests (pytest module) with:
```bash
make tests make tests
```
> **Warning:** *do not run tests with sakia installed in your dev environment, because pytest will use the installed Sakia.* > **Warning:** *do not run tests with sakia installed in your dev environment, because pytest will use the installed Sakia.*
* Run only some unit tests by passing a special ENV variable: * Run only some unit tests by passing a special ENV variable:
```bash
make tests TESTS_FILTER=tests/functional/test_transfer_dialog.py::test_transfer make tests TESTS_FILTER=tests/functional/test_transfer_dialog.py::test_transfer
```
## Packaging and deploy ## Packaging and deploy
### PyPi ### PyPi
In the development pyenv environment, install the tools to build and deploy In the development pyenv environment, install the tools to build and deploy
```bash
pip install --upgrade -r requirements_deploy.txt pip install --upgrade -r requirements_deploy.txt
```
Change and commit and tag the new version number (semantic version number) Change and commit and tag the new version number (semantic version number)
```bash
./release.sh 0.x.y ./release.sh 0.x.y
```
Build the PyPi package in the `dist` folder Build the PyPi package in the `dist` folder
```bash
make build make build
```
Deploy the package to PyPi test repository (prefix the command with a space in order for the shell not to save in its history system the command containing the password) Deploy the package to PyPi test repository (prefix the command with a space in order for the shell not to save in its history system the command containing the password)
```bash
[SPACE]make deploy_test PYPI_TEST_LOGIN=xxxx PYPI_TEST_PASSWORD=xxxx [SPACE]make deploy_test PYPI_TEST_LOGIN=xxxx PYPI_TEST_PASSWORD=xxxx
```
Install the package from PyPi test repository Install the package from PyPi test repository
```bash
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.python.org/simple/ sakia pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.python.org/simple/ sakia
```
Deploy the package on the PyPi repository (prefix the command with a space in order for the shell not to save in its history system the command containing the password) Deploy the package on the PyPi repository (prefix the command with a space in order for the shell not to save in its history system the command containing the password)
```bash
[SPACE]make deploy PYPI_LOGIN=xxxx PYPI_PASSWORD=xxxx [SPACE]make deploy PYPI_LOGIN=xxxx PYPI_PASSWORD=xxxx
```
### Wheel Build scripts
make build
Or manually:
* Install __wheel__ with `pip install wheel`
* Run `python3 gen_resources.py` in sakia folder
* Run `python3 gen_translations.py` in sakia folder
* To build the wheel : Run `python3 setup.py bdist_wheel` in sakia folder
### AppImage ### AppImage
```bash
make appimage make appimage
```
The make command will do a wheel build, then create the AppImage file `ci/appimage/Sakia_x86_64.AppImage` The make command will do a wheel build, then create the AppImage file `ci/appimage/Sakia_x86_64.AppImage`
### Pyinstaller Build scripts (not maintained)
* Install __pyinstaller__ with `pip install pyinstaller`
* Run `python3 gen_resources.py` in sakia folder
* Run `python3 gen_translations.py` in sakia folder
* To build the binaries : Run `pyinstall sakia.spec`
## License ## License
This software is distributed under [GNU GPLv3](https://raw.github.com/duniter/sakia/dev/LICENSE). This software is distributed under [GNU GPLv3](https://www.gnu.org/licenses/gpl-3.0.html).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment