Go to file
Albert Cervera i Areny 24d09beb7b Do not crash if readlines() return no lines. 2023-02-25 11:47:27 +01:00
doc fix documentation startup and compile tasks 2014-06-11 11:43:51 +02:00
templates Upgrade to python3 branch 2020-01-21 09:51:28 +01:00
.env Upgrade to python3 branch 2020-01-21 09:51:28 +01:00
.hgignore Add .hgignore to ignore the key.py and .hgignore files 2013-10-11 17:17:40 +02:00
README add correct url when module is new 2014-05-29 16:53:49 +02:00
__init__.py Remove deprecated tasks 2022-09-01 08:46:23 +02:00
bootstrap.py Remove create_synlinks(). 2020-01-22 01:11:07 +01:00
config.py Upgrade to python3 branch 2020-01-21 09:51:28 +01:00
iban.py Upgrade to python3 branch 2020-01-21 09:51:28 +01:00
increase_version_number-root.sh Add increase_version_number.sh (modules and roots) 2022-08-18 12:12:42 +02:00
increase_version_number.sh Add increase_version_number.sh (modules and roots) 2022-08-18 12:12:42 +02:00
patches.py Upgrade to python3 branch 2020-01-21 09:51:28 +01:00
requirements.txt Remove deprecated tasks 2022-09-01 08:46:23 +02:00
runner.py Do not crash if readlines() return no lines. 2023-02-25 11:47:27 +01:00
sao.py Create symlinks and use new directory structure of heptpod. 2023-01-04 16:04:27 +01:00
scm.py Uncomment line. 2023-02-17 23:51:39 +01:00
tryton.py Remove deprecated tasks 2022-09-01 08:46:23 +02:00
utils.py Skip .review file to clone 2020-06-22 09:30:57 +02:00
virtual-env.sh add2virtualenv funcionality 2014-03-03 11:57:12 +01:00
wsgi.py Add wsgi.py 2019-12-30 12:35:46 +01:00

README

=============
Tryton Utils
=============


Dependencies
============

* Invoke

pip install invoke

* Blessings

pip install blessings

* Hgapi

pip install hgapi


You can install all of them with requirements.txt file:

pip install -r requriements.txt


Install
=======

hg clone https://bitbucket.org/nantic/tryton-tasks tasks
hg clone https://bitbucket.org/nantic/tryton-config config


Directory structure.

/repo-dir/
/repo-dir/task
/repo-dir/config



Help
====

To add new repository, please add new file on config dir or add new repo on
existing cfg file.

Directory has symbolink link local.cfg to parent dir to append custom
repositories

All actions search for repositories defined on config directory.

..
    > cd repo-dir

    To see list of task.
    > invoke -l


If you aren't in the root directory, you can call _invoke_ with _--root/-r_
option with the path to _repo-dir_ directory:

..
     > invoke --root=../

If you haven't renamed _tryton-tasks_ to _tasks_, you can call _invoke_ with
_--collection/-c_ option with the path to _tryton-tasks_ directory:

..
      > invoke --root=../tryton-tasks



ReviewBoard
===========

To setup task to work with reviewboard just copy tryton-tasks.cfg.template to
~/.tryton-tasks.cfg and configure user, password  and server

You need to install python-rbtools package not available on pip.


Tryton
======

To setup task to work with reviewboard just copy tryton-tasks.cfg.template to
~/.tryton-tasks.cfg and configure url to production server.

To create new review.
---------------------
This create a new review on reviewboard and a review on tryton attached to task

inv project.review -p _path_to_module_ -t _tryton_task_code_

Task List.
----------

inv project.list
inv project.list --party nantic%  #to filter all task of nantic party.
inv project.list --assigned angel%  #to filter all task assigned to angel



Bitbucket
==========

Facilities to work with Bitbucket.

To work with clone https://github.com/angelnan/bitbucketcli and install.

To login:
bitbucket login

To logout:
bitbucket logout

Examples to create new repository.

inv bb.create repository_name -d description