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
Add messages implementation for python #165
base: main
Are you sure you want to change the base?
Conversation
18b7d09
to
6a26520
Compare
This address to #162 |
This was generated by https://github.com/koxudaxi/datamodel-code-generator with a small manual changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At a glance this doesn't follow the pattern used by the other language implementations in quite a few ways. Please follow up the directions from #162 around code generation.
I also don't understand the purpose of the samples directory.
|
You can use Pydantic if you can make it fit into the
Consider narrowing this down to a few representative examples. Currently it is hard to see the forest for the trees. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're going to copy lots of the cck it would be better to fetch the data using some form of call rather than C+P as this is currently being rapidly updated
readme = {file = "README.md", content-type = "text/markdown"} | ||
requires-python = ">=3.8" | ||
urls = {Repository = "https://github.com/cucumber/messages"} | ||
version = "0.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need editing to conform to polyglot-release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please give me a link to find out how to do this right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we directly have a link. But we use a tool called polyglot-release
to release internal tools.
If you look at how it is used. You'll see you'll need a version file that is directly auto-edited.
https://github.com/cucumber/polyglot-release
An example of "how" it auto-worked from the CLI can be viewed in this commit for gherkin
cucumber/gherkin@650109d
Here is "what" I did.
Ran a command on the CLI, then waited a few seconds or so.
It auto-generated this commit and changed all the relevant files (Check the python change)
Agree, let do this in a few steps. At first - implementation, after that - generation |
Samples are used in tests. More complex tests could exist. I insist to include them for now |
0cf353b
to
ee63f2a
Compare
ee63f2a
to
358b36b
Compare
@@ -0,0 +1,15 @@ | |||
# How to make a release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This here should be using the auto-copy from polyglot-release.
See an example in one of the ruby projects I manage here: https://github.com/cucumber/cucumber-ruby/blob/main/RELEASING.md
Which links to: https://github.com/cucumber/.github/blob/main/RELEASING.md
This will tell you how to get a few things configured and setup, specifically for some of the internal toolings.
If you need more dedicated help, join us on slack @ cucumberBDD.slack.com
What purpose do these tests serve? They'll be a hassle to update if/when the schema changes. |
Hi @elchupanebrej - Just checking in to see where you're up to with this. Is this something you're still working on? |
π€ What's changed?
Add python implementation
π·οΈ What kind of change is this?
π Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.