-
Notifications
You must be signed in to change notification settings - Fork 379
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
feat: python projects #514
Conversation
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 wanted to also have some kind of task that would activate the virtual environment in the developer's shell, but tasks currently just run in a child process IIRC so it's yet not possible to do that. But I don't think it's strictly needed for a MVP.
Codecov Report
@@ Coverage Diff @@
## master #514 +/- ##
==========================================
+ Coverage 76.65% 77.83% +1.18%
==========================================
Files 75 86 +11
Lines 2831 3091 +260
Branches 732 779 +47
==========================================
+ Hits 2170 2406 +236
- Misses 658 684 +26
+ Partials 3 1 -2
Continue to review full report at Codecov.
|
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.
Looks great!
Feels like we should find a more robust pattern for "toolchain selection". It's a repeating pattern and maybe we can do better than a set of hard-coded booleans (which is what we've done so far, I know...)
I'll try to sketch something and share.
``` | ||
|
||
> At this point, projenrc is in JavaScript, but in the future we plan to allow | ||
> specifying your project definitions in python. |
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.
yass sooner rather then later. happy to help out with that
Cool, I'm totally down. 👍 |
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.
Looks good. See minor comment.
Updated the docs and PR description. cc @garnaat Feel free to take a look. The docs rendered here give an overview of what we have so far. There are still some high level features like github workflows and configuration through projenrc.py left, but I'll leave those for a later PR. I think the mental model I've captured here for several of the python tools is a good enough start, but like @eladb mentioned, there might be a better way to structure the APIs for choosing between these tools. As far as what the components actually do under the hood, most of it I feel OK with, although I wonder if Anyway, I'm looking forward to having this merged. :D |
Closes projen#359 Introduces a new python project type which can be created via `npx projen new python`. See docs/python.md for more information. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Closes #359
Introduces a new python project type which can be created via
npx projen new python
. See docs/python.md for more information.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.