-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix pip/poetry for submodules, better pep440 #114
Conversation
Is "autoprocessing-0.3" actually equivalent to "somethingelse-0.3"? |
No, it's not. But we do also store the full tag name, and the autoprocessing version actually gets recorded as a separate variable altogether, so it doesn't really matter for this purpose. |
So what if anything do I need to do? |
Well, I'm not sure what this accomplishes or what is being fixed.
So it doesn't seem like this can work. Am I missing something? Is the real fix that we need to change how we assign versions? |
So here is my proposed solution:
|
This seems like a reasonable solution to me. If we're going that route, I'd prefer that we make PEP440-compliant tags rather than write code to make them so. I think we still need the |
See discussion in #114 for more details.
@marius311 are you ok with the plan discussed above? If so, I'll close this PR. |
That's fine by me. Anything else you need from me or you guys will handle the remaining work? |
I think the rest of the work is on us. Thanks! |
Couple small things that I only caught after #97 got merged into the private repo and I used in action.
The private repo has tags like "autoprocessing-3.3" so the version string created wasn't PEP440 compliant (unlike this public repo which just has number tags). The solution in this PR is to strip out starting characters. Open to other suggestions.
-e
instead of-d
works if the repo is a submodule, in which case.git
is a file not directory.