-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
python: Use Poetry to build and release #40
Comments
@jsa34 could you help with this one? |
With pleasure! I'll have a look in the next few days. To note, we may have a problem supporting Python 2 if we use poetry as the latest Poetry version doesn't look like it supports Python 2. I believe this was an issue previously when I was considering dropping support for Python 2 in Cucumber modules. |
Cheers! Much appreciated. I don't see a problem with dropping support for Python 2. It was sunset in 2020 and we are running into issues with 3.11 where Python 2 features are being removed (e.g. #7). |
Agreed, however, when I attempted to make the minimum supported version 3.x a few months ago, @brasmusson believed supporting Python 2.7 is important:
Regardless, I will proceed to resurrect the python 3.x PR as a precondition to migrating to Poetry, if that's ok? I'll await to see if that's accepted (migrating to Python 3) before migrating to Poetry. |
In the Slack Discussion the following condition was outlined:
I do reckon that we are starting to feel the pain right now. We could either invest time in creating a Github Action that works with Looking at cucumber/common#1982 I do see more changes then I like though. Would it be possible to first setup Poetry with only the minimal amount of changes? |
If Poetry is used for releasing and Poetry does cannot be executed on Python 2, the it means that when releasing Python 3 must be used. However that should not make it impossible for a user on Python 2 to use the released Gherkin package, as long as the classifiers for PyPi is setup appropriately. I have made a stab at defining the Poetry files needed to be able to release with Poetry: #62 |
Thanks for this - things are a bit manic at work at the moment so haven't had a chance! Looks good, but I'm not au fait with Python 2 in general (starting using Python a couple of years ago and never had a need to), but I was taking from the official docs: If there is a nice workaround, though, that's fab :) |
FYI that distutils, which is currently used in For swtiching: https://peps.python.org/pep-0632/#migration-advice You can also swtich to setuptools and not use poetry for a lesser impact: |
🤔 What's the problem you've observed?
Currently we use Poetry to make Python releases. However the current python implementation does not use Poetry.
✨ Do you have a proposal for making it better?
Use Poetry as the build system like we do in Cucumber Expressions.
The text was updated successfully, but these errors were encountered: