-
Notifications
You must be signed in to change notification settings - Fork 78
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
Enhanced example #92
Comments
It would also include the example |
Thanks for the suggestion! We went with the top-level structure here to show off how to use Pants in the simplest case. I agree it would be helpful to show the other layouts at https://www.pantsbuild.org/docs/source-roots#examples At the same time, we want to keep the simple example as simple as we can: #85 Any suggestions for how we could best demo two layouts without getting too confusing? I'm thinking we could have two top-level folders |
Either that or create multiple example-python repos. |
Or, multiple branches.. to keep things together... |
A challenge here is maintenance. For example, we have I think my bias would be still keep a single repo, but have different layouts as distinct folders. That's easier for us to maintain than multiple repos, e.g. fewer PRs to update; and it's less fragmentation -> better discovery. |
This seems like a good way to go. |
@thomassajot any interest in getting this started? Per #85, we'd want to keep the new polyglot setup pretty simple; could even use the same code as the current example. |
Do you have any new examples or good resources on understanding python sources vs distribution vs library? I think I’m missing something probably very obvious in these examples. Also for python sources what is the use of name=lib? Is this some convention or should the name change across different folders and python sources declarations ? |
The best resources are the docs at pantsbuild.org - and you can ask questions on our Slack channel (linked from the docs). |
Hi,
It would be great for new user to have an idea of how a "monorepo" is setup using Pants.
In addition, it would be good to have an example where the tests are not alongside the source code, as this is a common practice in usual python code bases.
The text was updated successfully, but these errors were encountered: