Small tools for Odoo
Project description
odoo-tools-grap
Installation
# Install Stable Source
pip3 install odoo-tools-grap
# Or, Install Test source
pip3 install odoo-tools-grap\
--upgrade\
--index-url https://test.pypi.org/simple\
--extra-index-url https://pypi.org/simple
Usage
Diff tools
Based on a repos config file (repos.yml file, used by gitaggregate by exemple), this script will display the result of the git diff for each repository.
odoo-tools-grap diff\
-c repos.yml
Generate Odoo config Files
Base on a repos config file, (used by gitaggregate by exemple), template(s) of odoo config file, this script will generate a complete config file for Odoo with addons_path depending on the repos config file.
odoo-tools-grap generate\
-c repos.yml\
-i ./template.config.cfg\
-o ./odoo.cfg
Developement
# Pull Code
git clone https://gitlab.com/grap-rhone-alpes/odoo-tools-grap
cd odoo-tools-grap
# Create virtual env and activate it
virtualenv env --python=python3
. ./env/bin/activate
# Install dependencies
pip3 install -r requirements.txt
# Run the script
python -m odoo_tools COMMAND OPTIONS
Package deployment
pip3 install --upgrade setuptools wheel
pip3 install --upgrade twine
# Generate wheel and package
python3 setup.py sdist bdist_wheel
# Push on pyPi Test
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Push on pyPi Production
twine upload dist/*
Roadmap / Know issues
odoo-tools-grap diff tools will not works in a non french context, because a test based on the result of git diff is hardcoded with french sentence. It could be fixed by using git-python librairie, instead of calling subprocess of git status
Add tests.
Credits
Contributors
Sylvain LE GAL (https://www.twitter.com/legalsylvain)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for odoo_tools_grap-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 356369c2fe9c007fd59e8aec535daa90209c7c6be132531d02682551f7a9a8f7 |
|
MD5 | 688a3444380f83cc9b85af92d1ec48ab |
|
BLAKE2b-256 | c9807f21e6a254bdc40265c3b0eba17b819b17c6cfeec8a851c2899117c8f961 |