Skip to content
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

Closed
wants to merge 1 commit into from
Closed

black: Update to 20.8b1 #25461

wants to merge 1 commit into from

Conversation

priner
Copy link
Contributor

@priner priner commented Oct 9, 2020

No description provided.

Copy link
Member

@ahesford ahesford left a 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.

@ericonr
Copy link
Member

ericonr commented Oct 15, 2020

I'm getting syntax errors here as well, when trying to run the test suite. Similar to the ones in #25491 (comment)

Copy link
Member

@ahesford ahesford left a 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.

build_style=python3-module
pycompile_module="black.py blib2to3 _black_version.py"
hostmakedepends="git python3-setuptools"
Copy link
Member

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.

version=19.10b0
revision=3
version=20.8b1
revision=2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revision=1

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() {
Copy link
Member

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.

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"
Copy link
Member

@ahesford ahesford Oct 20, 2020

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.

@ahesford ahesford closed this in 69bda7d Oct 21, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants