-
Notifications
You must be signed in to change notification settings - Fork 58
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
windows py38 and py39 #139
base: main
Are you sure you want to change the base?
Changes from all commits
cc3bccf
fde60d1
804b584
e1ffac3
f6defdd
b3ee4d1
8f59fb2
d6167a7
cbc5875
500d59b
8d5a8ce
1ed7d3a
67e634f
add7555
9609230
1905d15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
[tox] | ||
skipsdist = true | ||
envlist = py{36,37,38, 39}, flake8, mypy, dist, manifest, docs | ||
envlist = py{36,37,38, 39}, flake8, mypy, dist-{win, linux}, manifest, docs | ||
# requires = | ||
# tox-factor | ||
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Left-over? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, this can go
|
||
|
||
[gh-actions] | ||
python = | ||
3.6: py36 | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39, flake8, mypy, dist, manifest | ||
3.9: py39, flake8, mypy, dist-{win, linux}, manifest | ||
|
||
# Linters | ||
[testenv:flake8] | ||
|
@@ -39,13 +41,22 @@ commands = | |
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))' | ||
|
||
# Distro | ||
[testenv:dist] | ||
[testenv:dist-{win, linux}] | ||
skip_install = true | ||
# Have to use /bin/bash or the `*` will cause that argument to get quoted by the tox command line... | ||
platform = | ||
win: win|msys | ||
linux: linux|darwin | ||
allowlist_externals = | ||
win: powershell | ||
linux: bash | ||
Comment on lines
+46
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you explain why we need this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The wildcard usage like It might be a bit blown up to get this one |
||
|
||
commands = | ||
python setup.py sdist --dist-dir={distdir} bdist_wheel --dist-dir={distdir} | ||
/bin/bash -c 'python -m pip install -U --force-reinstall {distdir}/nbclient*.whl' | ||
/bin/bash -c 'python -m pip install -U --force-reinstall --no-deps {distdir}/nbclient*.tar.gz' | ||
win: powershell Get-ChildItem -Path {distdir} -Filter nbclient*.whl | foreach \{python -m pip install -U --force-reinstall $_.FullName\} | ||
win: powershell Get-ChildItem -Path {distdir} -Filter nbclient*.tar.gz | foreach \{python -m pip install -U --force-reinstall --no-deps $_.FullName\} | ||
# Have to use /bin/bash or the `*` will cause that argument to get quoted by the tox command line... | ||
linux: bash -c 'python -m pip install -U --force-reinstall {distdir}/nbclient*.whl' | ||
linux: bash -c 'python -m pip install -U --force-reinstall --no-deps {distdir}/nbclient*.tar.gz' | ||
Comment on lines
+58
to
+59
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The bash should be in the path. Even cleaner would be to use just |
||
|
||
[testenv] | ||
# disable Python's hash randomization for tests that stringify dicts, etc | ||
|
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.
Is it needed?
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.
mypy will raise an error for py39 since these methods aren't implemented anymore.