Files

58 lines
1.4 KiB
ReStructuredText
Raw Permalink Normal View History

2023-06-09 09:28:59 +02:00
######
Tryton
######
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
Tryton is business software, ideal for companies of any size, easy to use,
complete and 100% Open Source.
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
This repository contains the source for all the packages of Tryton.
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
Setup
=====
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
It is recommended to isolate the development within a Python `virtual
environment <https://docs.python.org/tutorial/venv.html>`_.
From the root directory of the repository run:
.. code-block:: console
2026-03-25 23:52:53 +01:00
pip install packaging build
2023-06-09 09:28:59 +02:00
.hooks/update_requirements
.hooks/link_modules
2022-12-16 23:16:08 +01:00
.. warning::
2023-06-09 09:28:59 +02:00
The process of updating requirements files may take some time.
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
Install the dependencies with:
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
.. code-block:: console
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
pip install -e trytond -e tryton -e proteus -r requirements.txt -r requirements-dev.txt
2022-12-16 23:16:08 +01:00
2023-06-09 09:28:59 +02:00
Automate
========
To automate the process, add the following lines to the ``[hooks]`` section of
the ``.hg/hgrc``:
.. code-block:: ini
[hooks]
update.modules = .hooks/link_modules
update.requirements = .hooks/update_requirements
update.trytond = trytond/hatch_build.py
update.tryton = tryton/hatch_build.py
2023-06-09 09:28:59 +02:00
On ``hg update``, the first hook will automatically create symlinks for
modules, the second hook will automatically generate requirements files, the
third generate the ``RNG`` files for ``trytond`` and the last compile the
translation files for ``tryton``.
2023-06-09 09:28:59 +02:00
Submit Change
=============
For information about how to submit change, please read on and follow the
`guidelines <https://www.tryton.org/develop>`_.