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
black: Update to 20.8b1 #25461
black: Update to 20.8b1 #25461
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.
Please rebase to check against Python 3.9.
I'm getting syntax errors here as well, when trying to run the test suite. Similar to the ones in #25491 (comment) |
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.
The upstream tests seem improperly defined, so I wouldn't worry about them here.
srcpkgs/black/template
Outdated
build_style=python3-module | ||
pycompile_module="black.py blib2to3 _black_version.py" | ||
hostmakedepends="git python3-setuptools" |
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.
Drop git
dependency and replace python3-setuptools
with python3-setuptools_scm
because this package is required during build for version detection.
srcpkgs/black/template
Outdated
version=19.10b0 | ||
revision=3 | ||
version=20.8b1 | ||
revision=2 |
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.
revision=1
srcpkgs/black/template
Outdated
short_desc="Uncompromising Python code formatter" | ||
maintainer="Orphaned <orphan@voidlinux.org>" | ||
license="MIT" | ||
homepage="https://github.com/psf/black" | ||
distfiles="https://github.com/psf/black/archive/${version}.tar.gz" | ||
checksum=b9cee80c9682be0cddfe7eff1934ed12948b33768c876868ef6bc40d2f2c3bfb | ||
checksum=ea03d357159ee5fa42d5d17043b9ff91c4bb0fd568d2cb0c4e34cb10cd35a9dc | ||
|
||
pre_build() { |
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.
Remove entire pre_build
function.
srcpkgs/black/template
Outdated
python3-pathspec python3-toml python3-regex python3-typed-ast" | ||
depends="python3-appdirs python3-click python3-mypy_extensions | ||
python3-pathspec python3-toml python3-regex python3-typed-ast | ||
python3-typing_extensions" | ||
short_desc="Uncompromising Python code formatter" | ||
maintainer="Orphaned <orphan@voidlinux.org>" | ||
license="MIT" | ||
homepage="https://github.com/psf/black" | ||
distfiles="https://github.com/psf/black/archive/${version}.tar.gz" |
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.
Use distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz"
so setuptools_scm
picks up proper version.
No description provided.