-
Notifications
You must be signed in to change notification settings - Fork 23
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
Lock pyright version #24
Conversation
Co-authored-by: artificial-nick <[email protected]>
One other thing. We specifically grabbed the latest version from the npm registry, as that is where the pyright wrapper pulls it from. Didn't want to trigger off of github releases and have npm be out of sync possibly. |
Codecov Report
@@ Coverage Diff @@
## main #24 +/- ##
==========================================
- Coverage 72.63% 71.33% -1.30%
==========================================
Files 12 13 +1
Lines 296 314 +18
==========================================
+ Hits 215 224 +9
- Misses 81 90 +9
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.
Some nitpicks.
Also if you are okay with giving me write access to your fork then I'd be more than happy to just push the changes myself.
We also need a mechanism to automatically release the package on PyPi. Do you have any suggestions? |
I saw you have the release.py script. I think calling that but let it take in some credentials would work. You would have to add repo credentials that match the ones you use for pypi. I could give that a shot on our local repo, and local pypi registry. |
Yeah it's more how do we automatically trigger that script? We could have another workflow that runs on every commit to main checking if the package version has been changed and making a release then. |
Ah. I think you could just run it every time a push to main happens. Pypi will reject it if you try and re-publlish an existing package |
7045cb1
to
9fa706b
Compare
I think I've found a better solution. Move all the version updating and setting to it's own file (
__version__ = '0.0.13'
__pyright_version__ = '1.1.223'
from ._version import (
__version__ as __version__,
__pyright_version__ as __pyright_version__,
) You would then need to:
and that should be all you have to change to get the package to work |
9fa706b
to
dc420f0
Compare
Ok, moved that stuff around, and added a release workflow that will run after the Test workflow on the main branch. Couple todos, I'm testing it on our in house repo, so there are some things to change before merging it to your branch. (pypi repository url and runner tags) Where did we land on matching version to pyright version? |
Codacy reports the |
No I will just tell codacy to ignore the issue. I honestly do not know why I have it enabled for this repo. |
I think matching versions is a good idea. |
d66a032
to
ffb8c08
Compare
Let me know when it's ready for review :) |
c27c8cb
to
f4ae180
Compare
47d99e7
to
c0d057b
Compare
Ok. So I think this PR is ready for a final review. Actions needed:
Right now I set the version to |
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.
Minor nitpicks, thank you! :)
Thanks again! |
@RobertCraigie I'm pretty sure the combination of I was trying to reuse workflows, but it might be easier to just copy over the test.yml steps in to the release.yml, and have it run on a push to main only if |
@artificial-aidan That is unfortunate. In that case I think I'll just remove Thanks for the heads up. |
Took a stab at #23. A couple of caveats.
macos-latest
recently deprecated python 3.6, so we removed that. macOS-latest workflows will use macOS-11 actions/runner-images#4060version.py
script got a little messy, would take some input on cleaning that up, or another way to do it__pyright_version__
1 behind, which lets the workflow get triggered and a PR created. See here for an automated PR: [pyright updated to 1.1.224] Update Version artificialinc/pyright-python#9Open to input on the whole process, but wanted to get something started.