Port details
py-yapf Formatter for Python code
0.43.0_1 textproc Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.43.0Version of this port present on the latest quarterly branch.
Maintainer: antoine@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2017-06-03 19:44:43
Last Update: 2026-11-06 10:09:47
Commit Hash: 28ceda5
Also Listed In: python
License: APACHE20
WWW:
https://github.com/google/yapf
Description: #
A formatter for Python code. YAPF (Yet Another Python Formatter) is based on the algorithm of clang-format: it reformats code to the layout that best conforms to the configured style, rather than only fixing style-guide violations. Predefined styles include pep8, google, facebook and yapf, and options can be set in setup.cfg, pyproject.toml or a .style.yapf file. It can be used as a command-line tool or as a library.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}yapf>0:textproc/py-yapf@${PY_FLAVOR}
To install the port: #
cd /usr/ports/textproc/py-yapf/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/py-yapf
  • pkg install py312-yapf
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py312-yapf listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py312-yapf
Package flavors (<flavor>: <package>) #
  • py312: py312-yapf
distinfo: #
TIMESTAMP = 1739972798 SHA256 (yapf-0.43.0.tar.gz) = 00d3aa24bfedff9420b2e0d5d9f5ab6d9d4268e72afbf59bb3fa542781d5218e SIZE (yapf-0.43.0.tar.gz) = 254907

Packages (timestamps in pop-ups are UTC): #
py311-yapf
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest---0.43.0-
FreeBSD:14:quarterly---0.43.0-
FreeBSD:15:latest--n/a0.43.0n/a
FreeBSD:15:quarterly--n/a-n/a
FreeBSD:16:latest CURRENT--n/a-n/a
 

py312-yapf
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest0.43.0_10.43.0_1--0.43.0_1
FreeBSD:14:quarterly0.43.00.43.0--0.43.0
FreeBSD:15:latest0.43.0_10.43.0_1n/a-n/a
FreeBSD:15:quarterly0.43.00.43.0n/a-n/a
FreeBSD:16:latest CURRENT0.43.0_10.43.0_1n/a-n/a
 

Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. py312-setuptools>0 : devel/py-setuptools@py312
  2. py312-wheel>=0 : devel/py-wheel@py312
  3. python3.12 : lang/python312
  4. py312-build>=0 : devel/py-build@py312
  5. py312-installer>=0 : devel/py-installer@py312
Test dependencies: #
  1. python3.12 : lang/python312
Runtime dependencies: #
  1. py312-platformdirs>=3.5.1 : devel/py-platformdirs@py312
  2. python3.12 : lang/python312
This port is required by: #
for Build #
  1. misc/py-apache-beam
for Run #
  1. devel/py-medikit
  2. misc/py-mmcv
  3. misc/py-mmengine
  4. sysutils/py-qmk
  5. textproc/py-python-lsp-server

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. textproc/py-python-language-server*
  2. Collapse this list of deleted ports.
for Test #
  1. devel/py-git-url-parse
  2. textproc/py-python-lsp-server

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. devel/py-python-gilt*
  2. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options: #
No options to configure
Options name: #
textproc_py-yapf
USES: #
python
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/y/yapf/
  2. https://pypi.org/packages/source/y/yapf/
Collapse this list.

Number of commits found: 30 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.43.0_1
06 Nov 2026 10:09:47
commit hash: 28ceda5207220cf1e6883fcce34a3323835f3997commit hash: 28ceda5207220cf1e6883fcce34a3323835f3997commit hash: 28ceda5207220cf1e6883fcce34a3323835f3997commit hash: 28ceda5207220cf1e6883fcce34a3323835f3997 files touched by this commit
Antoine Brodin (antoine) search for other commits by this committer
Author: Pattems
textproc/py-yapf: Add the platformdirs run dependency, fix pgen2.conv

yapf 0.43 requires platformdirs at run time: the vendored
yapf_third_party/_ylib2to3/pgen2/driver.py imports it, so
"import yapf" fails with ModuleNotFoundError in a clean install (seen
through devel/py-medikit). The port only listed it in TEST_DEPENDS.

Also fix the vendored pgen2/conv.py, which imports grammar and token
absolutely ("from pgen2 import ...") and so could never be imported;
import them relatively.

While here, fix portlint warnings.

PR:		300215
0.43.0
19 Feb 2025 14:02:22
commit hash: 1c2a279a53ad0f33702d821e288a41e0566b3f28commit hash: 1c2a279a53ad0f33702d821e288a41e0566b3f28commit hash: 1c2a279a53ad0f33702d821e288a41e0566b3f28commit hash: 1c2a279a53ad0f33702d821e288a41e0566b3f28 files touched by this commit
Antoine Brodin (antoine) search for other commits by this committer
textproc/py-yapf: update to 0.43.0
0.32.0
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
0.32.0
11 Jan 2023 15:58:34
commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656 files touched by this commit
Dmitry Marakasov (amdmi3) search for other commits by this committer
*/*: rename CHEESESHOP to PYPI in MASTER_SITES

PR:			267994
Differential revision:	D37518
Approved by:		bapt
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
0.32.0
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.32.0
29 Jan 2022 08:09:58
commit hash: 82d32e4edfa13b960668bd8e24e294b93194b9b0commit hash: 82d32e4edfa13b960668bd8e24e294b93194b9b0commit hash: 82d32e4edfa13b960668bd8e24e294b93194b9b0commit hash: 82d32e4edfa13b960668bd8e24e294b93194b9b0 files touched by this commit
Antoine Brodin (antoine) search for other commits by this committer
textproc/py-yapf: update to 0.32.0
0.31.0
20 Apr 2021 14:43:43
commit hash: 5afec5be17e819326741470a035d680821294b32commit hash: 5afec5be17e819326741470a035d680821294b32commit hash: 5afec5be17e819326741470a035d680821294b32commit hash: 5afec5be17e819326741470a035d680821294b32 files touched by this commit
Antoine Brodin (antoine) search for other commits by this committer
textproc/py-yapf: update to 0.31.0
0.30.0
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
0.30.0
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
0.30.0
28 Dec 2020 23:02:15
Revision:559531commit hash: aa7a6c429ea62d972467d6755fa7a6f52256b452commit hash: aa7a6c429ea62d972467d6755fa7a6f52256b452commit hash: aa7a6c429ea62d972467d6755fa7a6f52256b452commit hash: aa7a6c429ea62d972467d6755fa7a6f52256b452Original commit files touched by this commit
antoine search for other commits by this committer
Drop python 2.7 support from a few ports

With hat:	portmgr
0.30.0
27 Apr 2020 20:31:12
Revision:533168commit hash: eb98ebb516698e2398c9341d0050a42a77f05df0commit hash: eb98ebb516698e2398c9341d0050a42a77f05df0commit hash: eb98ebb516698e2398c9341d0050a42a77f05df0commit hash: eb98ebb516698e2398c9341d0050a42a77f05df0Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.30.0
0.29.0
10 Dec 2019 14:30:18
Revision:519670commit hash: a07ab5e189017608d853f675b24d16a75ed84d5ccommit hash: a07ab5e189017608d853f675b24d16a75ed84d5ccommit hash: a07ab5e189017608d853f675b24d16a75ed84d5ccommit hash: a07ab5e189017608d853f675b24d16a75ed84d5cOriginal commit files touched by this commit
antoine search for other commits by this committer
Update to 0.29.0
0.28.0
16 Jul 2019 15:39:57
Revision:506745commit hash: 755bfc32f61b6a5266faf1fa1d5508d8dedb6bd8commit hash: 755bfc32f61b6a5266faf1fa1d5508d8dedb6bd8commit hash: 755bfc32f61b6a5266faf1fa1d5508d8dedb6bd8commit hash: 755bfc32f61b6a5266faf1fa1d5508d8dedb6bd8Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.28.0
0.27.0
14 Apr 2019 11:57:25
Revision:498894commit hash: 49848bd914531f80e998d3111ca4bfbbb8c5d4cbcommit hash: 49848bd914531f80e998d3111ca4bfbbb8c5d4cbcommit hash: 49848bd914531f80e998d3111ca4bfbbb8c5d4cbcommit hash: 49848bd914531f80e998d3111ca4bfbbb8c5d4cbOriginal commit files touched by this commit
antoine search for other commits by this committer
Update to 0.27.0
0.26.0_1
10 Apr 2019 06:18:32
Revision:498530commit hash: 63f5eeef8a3e1a075dc881008cee566e0f5c9efdcommit hash: 63f5eeef8a3e1a075dc881008cee566e0f5c9efdcommit hash: 63f5eeef8a3e1a075dc881008cee566e0f5c9efdcommit hash: 63f5eeef8a3e1a075dc881008cee566e0f5c9efdOriginal commit files touched by this commit
antoine search for other commits by this committer
Bump a few PORTREVISIONs after r498529

With hat:	portmgr
0.26.0
10 Feb 2019 12:01:25
Revision:492605commit hash: c74e483e66a3c870d425576b55e50babc5e7fdd2commit hash: c74e483e66a3c870d425576b55e50babc5e7fdd2commit hash: c74e483e66a3c870d425576b55e50babc5e7fdd2commit hash: c74e483e66a3c870d425576b55e50babc5e7fdd2Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.26.0
0.25.0
01 Dec 2018 12:46:57
Revision:486335commit hash: 95a5cf91d0be46ad9870bae2dbc44b85bdb585f2commit hash: 95a5cf91d0be46ad9870bae2dbc44b85bdb585f2commit hash: 95a5cf91d0be46ad9870bae2dbc44b85bdb585f2commit hash: 95a5cf91d0be46ad9870bae2dbc44b85bdb585f2Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.25.0
0.24.0
22 Sep 2018 08:24:44
Revision:480363commit hash: 2b1760f9a17a7aca7bc44935c9d7292e06ace7accommit hash: 2b1760f9a17a7aca7bc44935c9d7292e06ace7accommit hash: 2b1760f9a17a7aca7bc44935c9d7292e06ace7accommit hash: 2b1760f9a17a7aca7bc44935c9d7292e06ace7acOriginal commit files touched by this commit
antoine search for other commits by this committer
Update to 0.24.0
0.23.0
03 Sep 2018 11:51:39
Revision:478855commit hash: 5d3104b27a57903b469c6ff06f3e7e38f8e516b9commit hash: 5d3104b27a57903b469c6ff06f3e7e38f8e516b9commit hash: 5d3104b27a57903b469c6ff06f3e7e38f8e516b9commit hash: 5d3104b27a57903b469c6ff06f3e7e38f8e516b9Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.23.0
0.22.0
18 May 2018 18:57:16
Revision:470318commit hash: 7e22f5252a080c6cb820929723b917c97c6c4330commit hash: 7e22f5252a080c6cb820929723b917c97c6c4330commit hash: 7e22f5252a080c6cb820929723b917c97c6c4330commit hash: 7e22f5252a080c6cb820929723b917c97c6c4330Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.22.0
0.21.0
08 Apr 2018 08:47:14
Revision:466779commit hash: 7aef56bc2186ca8202fface5b475264a0d89242bcommit hash: 7aef56bc2186ca8202fface5b475264a0d89242bcommit hash: 7aef56bc2186ca8202fface5b475264a0d89242bcommit hash: 7aef56bc2186ca8202fface5b475264a0d89242bOriginal commit files touched by this commit
antoine search for other commits by this committer
Update to 0.21.0
0.20.2
28 Feb 2018 15:31:45
Revision:463232commit hash: c31d3e06e1f18806d09e91e1cc0c91f1a433ffa4commit hash: c31d3e06e1f18806d09e91e1cc0c91f1a433ffa4commit hash: c31d3e06e1f18806d09e91e1cc0c91f1a433ffa4commit hash: c31d3e06e1f18806d09e91e1cc0c91f1a433ffa4Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.20.2
0.20.1
18 Jan 2018 15:03:33
Revision:459352commit hash: 79ad10aeedf20eee2f5fab911ad4006531fa99dbcommit hash: 79ad10aeedf20eee2f5fab911ad4006531fa99dbcommit hash: 79ad10aeedf20eee2f5fab911ad4006531fa99dbcommit hash: 79ad10aeedf20eee2f5fab911ad4006531fa99dbOriginal commit files touched by this commit
antoine search for other commits by this committer
Update to 0.20.1
0.20.0
02 Dec 2017 12:25:42
Revision:455356commit hash: 4a848631365433f53a291d369b164f12a8577d1dcommit hash: 4a848631365433f53a291d369b164f12a8577d1dcommit hash: 4a848631365433f53a291d369b164f12a8577d1dcommit hash: 4a848631365433f53a291d369b164f12a8577d1dOriginal commit files touched by this commit Sanity Test Failure
antoine search for other commits by this committer
Update to 0.20.0
0.19.0
22 Oct 2017 12:33:16
Revision:452643commit hash: 9471642c5f538cd130bc5d65e2634740929b06f1commit hash: 9471642c5f538cd130bc5d65e2634740929b06f1commit hash: 9471642c5f538cd130bc5d65e2634740929b06f1commit hash: 9471642c5f538cd130bc5d65e2634740929b06f1Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.19.0
0.18.0
24 Sep 2017 09:06:08
Revision:450484commit hash: 267c5ac54ec291681009d6b9d985eed4149ce0a0commit hash: 267c5ac54ec291681009d6b9d985eed4149ce0a0commit hash: 267c5ac54ec291681009d6b9d985eed4149ce0a0commit hash: 267c5ac54ec291681009d6b9d985eed4149ce0a0Original commit files touched by this commit
antoine search for other commits by this committer
Update to 0.18.0
0.17.0
27 Aug 2017 09:00:28
Revision:448813commit hash: 5f8aab7d803f17fd2d9f6a0c513983176833f3eecommit hash: 5f8aab7d803f17fd2d9f6a0c513983176833f3eecommit hash: 5f8aab7d803f17fd2d9f6a0c513983176833f3eecommit hash: 5f8aab7d803f17fd2d9f6a0c513983176833f3eeOriginal commit files touched by this commit
antoine search for other commits by this committer
- Update to 0.17.0
- USE_PYTHON+=concurrent for bin/yapf
0.16.3
13 Jul 2017 18:34:38
Revision:445701commit hash: fb9608b733f23010a7b34b1af9ef8b5981caf83ccommit hash: fb9608b733f23010a7b34b1af9ef8b5981caf83ccommit hash: fb9608b733f23010a7b34b1af9ef8b5981caf83ccommit hash: fb9608b733f23010a7b34b1af9ef8b5981caf83cOriginal commit files touched by this commit
antoine search for other commits by this committer
Update to 0.16.3
0.16.2
03 Jun 2017 19:44:31
Revision:442518commit hash: 772cdf236739e24592f81f8fd7fdd1e3ae4ccd0fcommit hash: 772cdf236739e24592f81f8fd7fdd1e3ae4ccd0fcommit hash: 772cdf236739e24592f81f8fd7fdd1e3ae4ccd0fcommit hash: 772cdf236739e24592f81f8fd7fdd1e3ae4ccd0fOriginal commit files touched by this commit
antoine search for other commits by this committer
New port: textproc/py-yapf
A formatter for Python code.
WWW: https://github.com/google/yapf

Number of commits found: 30