diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-04-05 23:56:50 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-04-05 23:56:50 +0000 |
commit | 9d9c939dae4d02e4c012fcf2666b768fc403ffa2 (patch) | |
tree | 11c240fbfa7546b9ec405438529273096c89a387 | |
parent | 006a0833a75cdd489bc8c37208ecf046079b620c (diff) |
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.
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/py-usort/Makefile | 31 | ||||
-rw-r--r-- | devel/py-usort/distinfo | 3 | ||||
-rw-r--r-- | devel/py-usort/pkg-descr | 5 |
4 files changed, 40 insertions, 0 deletions
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. |