Guénaël Muller 0c868f389f Explicity mark that some webdav test fail due to a known issue 6 jaren geleden
doc add documentations about settings and devtools 7 jaren geleden
tracim Explicity mark that some webdav test fail due to a known issue 6 jaren geleden
.coveragerc configure coverage 7 jaren geleden
.gitignore some typing and pep8 7 jaren geleden
.travis.yml configure coverage 7 jaren geleden
CHANGES.txt Update CHANGES.txt 7 jaren geleden
MANIFEST.in Begin Pyramid Alchemy Project with cookiecutter 7 jaren geleden
README.md Add mysql and postgresql dependencies and shortcuts 7 jaren geleden
development.ini.sample doc for alembic + same config file as pyramid 7 jaren geleden
production.ini Begin Pyramid Alchemy Project with cookiecutter 7 jaren geleden
pytest.ini fix pytest conf 7 jaren geleden
setup.py WIP Webdav integration 7 jaren geleden

README.md

Build Status Coverage Status Scrutinizer Code Quality

tracim_backend

This code is Work in progress. Not usable at all for production.

Backend source code of tracim v2, using Pyramid Framework.

Installation

Distribution dependencies

on Debian Stretch (9) :

sudo apt install git
sudo apt install python3 python-virtualenv python3-dev python-pip

Get the source

git clone https://github.com/tracim/tracim_backend.git

Setup Python Virtualenv

Go to tracim subdirectory:

cd tracim

Create a Python virtual environment:

python3 -m venv env

Activate it in your terminal session (all tracim command execution must be executed under this virtual environment):

source env/bin/activate

Upgrade packaging tools:

pip install --upgrade pip setuptools

Install the project in editable mode with its testing requirements :

pip install -e ".[testing]"

If you want to use postgresql, mysql or other databases than the default one: sqlite, you need to install python driver for those databases that are supported by sqlalchemy.

For postgreSQL and mySQL, those are shortcuts to install Tracim with test and specific driver.

For PostgreSQL:

pip install -e ".[testing,postgresql]"

For mySQL:

pip install -e ".[testing,mysql]"

Configure Tracim_backend

Create configuration file for a development environment:

cp development.ini.base development.ini

Initialize the database using tracimcli tool

tracimcli db init

Run Tracim_backend

Run your project:

pserve development.ini

Run Tests and others checks

Run your project's tests:

pytest

Run mypy checks:

mypy --ignore-missing-imports --disallow-untyped-defs tracim

Run pep8 checks:

pep8 tracim

CI

  • Code quality: https://scrutinizer-ci.com/g/tracim/tracim_backend/
  • Test validation: https://travis-ci.org/tracim/tracim_backend
  • Code coverage: https://coveralls.io/github/tracim/tracim_backend