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

Various improvements to project template #75

Merged
merged 11 commits into from
Dec 28, 2020
Merged

Various improvements to project template #75

merged 11 commits into from
Dec 28, 2020

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Dec 2, 2020

Mostly:

  • recommend pip-deepfreeze in README
  • modernize pre-commit config

@sbidoul sbidoul changed the title Various improvements Various improvements to project template Dec 2, 2020
@@ -49,6 +48,7 @@ pre-commit:
script:
- install_pre_commit
- PRE_COMMIT_HOME=$PWD/.pre-commit ./pre-commit run --all-files
needs: []
Copy link
Member

Choose a reason for hiding this comment

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

👍

Since we abandon pip install *.whl (due to a pip bug 9168),
we can do the editable install in the same step with the same result.
# although the project is part of *.whl, install it in editable mode so coverage sees it
- venv/bin/pip install --no-index -e .
# install the project in editable mode (-e) so coverage sees it
- venv/bin/pip install --no-index --find-links release -e odoo-addons-{{{ project.name }}}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- venv/bin/pip install --no-index --find-links release -e odoo-addons-{{{ project.name }}}
- venv/bin/pip install --no-index --find-links release -e . odoo-addons-{{{ project.name }}}

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed. And the project name is therefore not needed.

@sbidoul sbidoul merged commit afa5851 into master Dec 28, 2020
@acsone-git-bot acsone-git-bot deleted the v14-and-stuff-sbi branch December 28, 2020 18:24
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.

2 participants