Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2024 00:01:18 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9d9c939dae4d - main - devel/py-usort: Add py-usort 1.0.8.post1
Message-ID:  <202404060001.43601IVq072443@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9d9c939dae4d02e4c012fcf2666b768fc403ffa2

commit 9d9c939dae4d02e4c012fcf2666b768fc403ffa2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-05 23:56:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-05 23:56:50 +0000

    devel/py-usort: Add py-usort 1.0.8.post1
    
    usort is a safe, minimal import sorter. Its primary goal is to make no
    "dangerous" changes to code. This is achieved by detecting distinct "blocks" of
    imports that are the most likely to be safely interchangeable, and only
    reordering imports within these blocks without altering formatting. Code style
    is left as an exercise for linters and formatters.
---
 devel/Makefile           |  1 +
 devel/py-usort/Makefile  | 31 +++++++++++++++++++++++++++++++
 devel/py-usort/distinfo  |  3 +++
 devel/py-usort/pkg-descr |  5 +++++
 4 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 5a9c4677c89a..a70257847079 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5846,6 +5846,7 @@
     SUBDIR += py-us
     SUBDIR += py-user_agents
     SUBDIR += py-userpath
+    SUBDIR += py-usort
     SUBDIR += py-uvloop
     SUBDIR += py-validate-pyproject
     SUBDIR += py-validators
diff --git a/devel/py-usort/Makefile b/devel/py-usort/Makefile
new file mode 100644
index 000000000000..d74906e0c738
--- /dev/null
+++ b/devel/py-usort/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	usort
+PORTVERSION=	1.0.8.post1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Small, safe import sorter
+WWW=		https://usort.readthedocs.io/en/stable/ \
+		https://github.com/facebook/usort
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=38.3.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>=21.2.0:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}click>=7.0.0:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}libcst>=0.3.7:devel/py-libcst@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}moreorless>=0.3.0:devel/py-moreorless@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}stdlibs>=2021.4.1:devel/py-stdlibs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}toml>=0.10.0:textproc/py-toml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}trailrunner>=1.0:devel/py-trailrunner@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-usort/distinfo b/devel/py-usort/distinfo
new file mode 100644
index 000000000000..231fd4bf1686
--- /dev/null
+++ b/devel/py-usort/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1712330563
+SHA256 (usort-1.0.8.post1.tar.gz) = 68def75f2b20b97390c552c503e071ee06c65ad502c5f94f3bd03f095cf4dfe6
+SIZE (usort-1.0.8.post1.tar.gz) = 83215
diff --git a/devel/py-usort/pkg-descr b/devel/py-usort/pkg-descr
new file mode 100644
index 000000000000..0734373801f1
--- /dev/null
+++ b/devel/py-usort/pkg-descr
@@ -0,0 +1,5 @@
+usort is a safe, minimal import sorter. Its primary goal is to make no
+"dangerous" changes to code. This is achieved by detecting distinct "blocks" of
+imports that are the most likely to be safely interchangeable, and only
+reordering imports within these blocks without altering formatting. Code style
+is left as an exercise for linters and formatters.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404060001.43601IVq072443>