Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create jinja_report tryton module #1

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Create jinja_report tryton module #1

merged 1 commit into from
Jan 20, 2022

Conversation

JMSoler7
Copy link
Contributor

This is the first commit which contains everything is need to create a tryton report based on jinja2 with just
installing this module and override Jinja2Report class. This commit set up:

  • Jinja2Report class to create new reports and SetTranslationJinja2 class to create translations.
  • Files related to wheel package such as setup, manifest, License, etc.
  • Readme in order to understand how to use this module
  • Simple test which checks that is possible to override Jinja2Report and obtain a rendered html
  • Tox with test and linting processes
  • Github actions with launch tox on a PR to a master
  • Github actions to wheel package and upload to pypi when a tagged commit arribes to origin


strategy:
matrix:
python-version: [3.9]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could set more versions from 3.8 to 3.10 for example. Or at least the same versions stated in the setup.py classifiers block.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And those should be present in the tox.ini test matrix as well

@JMSoler7 JMSoler7 requested a review from maltalk January 19, 2022 07:19
@JMSoler7 JMSoler7 force-pushed the init_project branch 2 times, most recently from d4fa82f to 1249f2d Compare January 19, 2022 10:28

strategy:
matrix:
python-version: [3.8, 3.9]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Watchout actions/setup-python#249 (comment) to support python-3.10

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Now is already fixed

This is the first commit which contains everything is need to create a tryton report based on jinja2 with just
installing this module and override Jinja2Report class. This commit set up:

- Jinja2Report class to create new reports and SetTranslationJinja2 class to create translations.
- Files related to wheel package such as setup, manifest, License, etc.
- Readme in order to understand how to use this module
- Simple test which checks that is possible to override Jinja2Report and obtain a rendered html
- Tox with test and linting processes
- Github actions with launch tox on a PR to a master
- Github actions to wheel package and upload to pypi when a tagged commit arribes to origin
@n1ngu n1ngu merged commit 91f30cb into master Jan 20, 2022
@n1ngu n1ngu deleted the init_project branch January 20, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants