-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add Github Actions and derive version from git tags #471
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 like this direction, but let's make sure the CI setup is healthy before changing the release process.
except ImportError: | ||
LIBCST_VERSION = "unknown" |
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.
when can this condition trigger?
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 think @thatch's comment is meant to be a reply here.
If someone adds it to pythonpath without using setup.py develop or similar.
Codecov Report
@@ Coverage Diff @@
## master #471 +/- ##
==========================================
- Coverage 94.70% 94.70% -0.01%
==========================================
Files 236 235 -1
Lines 23084 23077 -7
==========================================
- Hits 21861 21854 -7
Misses 1223 1223
Continue to review full report at Codecov.
|
If someone adds it to pythonpath without using setup.py develop or similar.
Tim
…On Mon, Aug 9, 2021, 1:31 PM Zsolt Dollenstein ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In libcst/__init__.py
<#471 (comment)>:
> +except ImportError:
+ LIBCST_VERSION = "unknown"
when can this condition trigger?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#471 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMFKUHIM4JJCK63O2ZRKLT4A3HXANCNFSM42EBBNMQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Note: I have a follow up PR w/ windows testing (and a windows fix). |
envlist = py36, py37, py38, lint, docs | ||
|
||
[gh-actions] | ||
python = | ||
3.6: py36 | ||
3.7: py37 | ||
3.8: py38 |
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.
Why not 3.9
?
Move to GH actions LGTM.
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.
Currently circleci doesn't cover 3.9. I'd prefer adding 3.9 in a separate PR, this is already complex enough
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'm happy to follow up w/ 3.9 support in a separate PR
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.
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.
LGTM. if you resolve the conflict I can merge
Resolved! |
* Use setuptools-scm to derive the current version from git metadata * Add Github Action equivalent to the current circleci tasks * Run pyre integration test in GH action / tox
Summary
Two changes here:
libcst\_version.py
To improve our workflow around libcst releases, I'd like to propose that we publish pre-release versions of the package.
More context about publishing here: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi-and-testpypi
And pre-release versions here: https://packaging.python.org/guides/distributing-packages-using-setuptools/#pre-release-versioning
Relating that to this change:
TODOs:
windows-latest
. I discovered that the test suite doesn't pass on windows, which I will fix in another PR.Test Plan
See https://github.com/lpetre/LibCST/actions/runs/704265869