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

Move dev dependencies from extras into poetry dep groups #2

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

aucampia
Copy link

This is mainly so that poetry export is sane, but also because the extras should not be polluted with things that peope who use the wheel don't want or use.

Other changes:

  • GitHub Actions:
    • Use abatilo/actions-poetry instead of snok/install-poetry as snok does not work well on Windows.
    • Install poetry before running tox so tox can call poetry.
    • Fix caching on Windows and MacOS
  • Add requirements files for poetry so its versions is managed by dependabot and so that the same version can be used in multiple contexts.
  • Add requirements file for Sphinx version used in readthedocs.
  • The problem with nitpicky was related to sphinx 4, not to python 3.7. So nitpicky is now disabled on Sphinx <= 5.
  • test/test_literal/test_xmlliterals.py: Only run html5lib test when html5lib is present.
  • Check poetry and poetry.lock from .pre-commit-config.yaml.
  • Changed .readthedocs.yaml to use poetry.
  • Added an extra for lxml.

This is mainly so that poetry export is sane, but also because the extras should
not be polluted with things that peope who use the wheel don't want or use.

Other changes:

- GitHub Actions:
  - Use `abatilo/actions-poetry` instead of `snok/install-poetry` as snok does
    not work well on Windows.
  - Install poetry before running tox so tox can call poetry.
  - Fix caching on Windows and MacOS
- Add requirements files for poetry so its versions is managed by dependabot and
  so that the same version can be used in multiple contexts.
- Add requirements file for Sphinx version used in readthedocs.
- The problem with nitpicky was related to sphinx 4, not to python 3.7. So
  nitpicky is now disabled on Sphinx <= 5.
- `test/test_literal/test_xmlliterals.py`: Only run html5lib test when html5lib
  is present.
- Check poetry and poetry.lock from `.pre-commit-config.yaml`.
- Changed `.readthedocs.yaml` to use poetry.
- Added an `extra` for lxml.
@@ -23,3 +24,10 @@ repos:
pass_filenames: false
require_serial: true
args: ["."]
- repo: https://github.com/python-poetry/poetry
Copy link
Owner

@jclerman jclerman Jan 10, 2023

Choose a reason for hiding this comment

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

I did not know poetry had pre-commit hooks! Fascinating.

Copy link
Owner

@jclerman jclerman left a comment

Choose a reason for hiding this comment

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

Looks good to me - are you ready for me to merge this?

@aucampia
Copy link
Author

Looks good to me - are you ready for me to merge this?

Rechecked it, I think it is good to merge

@jclerman jclerman merged commit 9539db6 into jclerman:switch-to-poetry Jan 11, 2023
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