| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@jankatins @bearrito @max-pfeiffer your comments are very welcome - It's still in draft, but it's a start! This is what I had time for today, but will continue on the weekday evenings! |
Sorry, something went wrong.
|
@santi also, this will be useful for you! |
Sorry, something went wrong.
| - `pyenv` **Recommended**: For installing python versions for your system. | ||
| Poetry infers the current latest version from what it can find on the `PATH` so you are still fine if you don't use `pyenv`. | ||
|
|
||
| ### Build and test |
There was a problem hiding this comment.
I'm using the devcontainers workflow. I could add in a section on using that if you wanted.
Sorry, something went wrong.
There was a problem hiding this comment.
hey @bearrito apologies for the delays, I'm finding myself with some time today.
I'd love your contribution on the devcontainers workflow, but lemme finish this PR (ETA today, finally found the time to work on this) and then yo can raise your own PR for that addition to the docs 🙏
Sorry, something went wrong.
|
looks good to me, i find this stuff very valuable but right now i dont really know what to add as far as suggestions or discussion. my head is mostly in the outstanding PRs and releases and such. also sorry for the double rebase. i did a rebase locally onto main. then i found a button on github, but the button on github gave me credit for all your work, so then i just pushed my local rebase. |
Sorry, something went wrong.
|
it might also make sense to capture what it takes to implement a new container, not just request one |
Sorry, something went wrong.
|
quick summary of how to test buildthedocs changes:
|
Sorry, something went wrong.
Yes, I think so too. We could briefly elaborate about the best practices that we want to see in contributions. So modules are a bit more consistent. Maybe also what to include in README.rst in the modules directory. To me it's not clear what purpose that serves currently. |
Sorry, something went wrong.
|
I would say also our .pre-commit-config.yaml also needs some attention: there we have black for code formatting and ruff as linter defined. I like badges 😃. So would could add the following badges:
@totallyzen Can I add commits to this PR? Then I could quickly contribute my suggestions. |
Sorry, something went wrong.
Yes, please do! @bearrito actually, I think given my lack of time lately, you could contribute the devcontainers setup to this PR as well, just ping the request on this PR as well so I can track 🙏 |
Sorry, something went wrong.
Ruff is compatible with black apart from a very few and rare differences. I've several repos here where black and ruff format are interchangeable :-) |
Sorry, something went wrong.
... based on @jankatins Co-authored-by: Jan Katins <jan.katins@katzien.de>
|
@totallyzen I can do that. It will either be today or tomorrow. Likely tomorrow. |
Sorry, something went wrong.
|
@totallyzen Can I get this approved if it looks okay- #506 Namely I want to be able to reference that work in the docs for devcontainers |
Sorry, something went wrong.
|
As someone who just tried to raise a PR with a new container, and just checked out these new docs. Can I point out its not obvious at all on these points:
No such file exists.
Main just changed whilst I've had my PR up, is the preference I rebase and force push over the top of my already published PR constantly?
Where is requirements.in ??? If you add directly to pyproject.toml under a module is this sufficient and correct? |
Sorry, something went wrong.
|
Hey @MattOates sorry for your rough start here, but we really appreciate you contributions 😊 Hopefully the latest additions to the draft should make clear the things you are wondering about. We have just revamped the whole structure and development setup in this repo, so no wonder the docs are very outdated. I hope you stay and find the new setup easier to work with 😀 |
Sorry, something went wrong.
There was a problem hiding this comment.
A few last comments from my end, but I think the current draft is in a good shape and ready to be released. Further contributions are of course welcome and can be added in future PRs.
Great job here @totallyzen!
Sorry, something went wrong.
| for the given tools you are triyng to implement. | ||
| - This means we want you to avoid adding specific libraries as dependencies to `testcontainers`. | ||
| - Therefore, you should implement the configuration and the waiting with as little extra as possible | ||
| - You may still find it useful to add your preferred client library as a dev dependency |
There was a problem hiding this comment.
| - You may still find it useful to add your preferred client library as a dev dependency | |
| - If the intended usage of the new Testcontainer is with a client library, please add the client library as a dev dependency, so that tests can mirror actual usage of the new container. |
not sure if this is the best wording but maybe we encourage people to add dev dependencies instead of writing tests that never run
Sorry, something went wrong.
There was a problem hiding this comment.
| - You may still find it useful to add your preferred client library as a dev dependency | |
| - If the intended usage of the new Testcontainer is with a client library, please add such a client library as a dev dependency and a test which mirrors actual usage of the container.` |
(e.g. PG has multiple which consume the url)
Sorry, something went wrong.
@totallyzen I just created this PR containing some badges: #528 I also picked up communications with @kiview on Slack to make code coverage reports and that codecov.io badge happen. |
Sorry, something went wrong.
@totallyzen I just created a PR and removed that black dependency: #529 Just a couple of files became re-formatted. So this we have rather little code changes. |
Sorry, something went wrong.
I added the following badges: - Poetry - Ruff - Supported Python versions - Workflow runs
|
I'll merge this, I heard no negative comments on the existing additions and some improvements rely on main -> let's consider this PR to be "done" |
Sorry, something went wrong.
|
lgtm! |
Sorry, something went wrong.
Apologies if that came across as brusk, if I did know anything about the desired dev setup I'd absolutely help dig in. I just cargo culted my way to a PR and just wanted to point out the draft still had some rabbit holes for someone coming cold. Is there a shaping doc anywhere of where the project is headed for dev experience? |
Sorry, something went wrong.
|
this branch is now rebased if someone wants to help out - let me know if you see any glaring differences between these two pages: - this is the rebased version of this PR - it needs the committer reset to the author and force pushed to this branch main...docs/improve-contribution-guide - this is a simplified view of the files tab on this page |
Sorry, something went wrong.
🤖 I have created a release *beep* *boop* --- ## [4.7.0](testcontainers-v4.6.0...testcontainers-v4.7.0) (2024-06-28) ### Features * **core:** Added Generic module ([#612](#612)) ([e575b28](e575b28)) * **core:** allow custom dockerfile path for image build and bypassing build cache ([#615](#615)) ([ead0f79](ead0f79)), closes [#610](#610) * **core:** DockerCompose.stop now stops only services that it starts (does not stop the other services) ([#620](#620)) ([e711800](e711800)) ### Bug Fixes * **ollama:** Add support for ollama module ([#618](#618)) ([5442d05](5442d05)) * **cosmosdb:** Add support for the CosmosDB Emulator ([#579](#579)) ([8045a80](8045a80)) * improve ollama docs, s/ollama_dir/ollama_home/g ([#619](#619)) ([27f2a6b](27f2a6b)) * **kafka:** Add Kraft to Kafka containers ([#611](#611)) ([762d2a2](762d2a2)) ### Documentation * **contributing:** add contribution and new-container guide ([#460](#460)) ([3519f4b](3519f4b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| # Preferred implementation | ||
|
|
||
| - The current consensus among maintainers is to try to avoid enforcing the client library | ||
| for the given tools you are triyng to implement. |
There was a problem hiding this comment.
type: trying
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
change
Document how to contribute, with initial focus on making local development smooth.
Tasks