summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-06-25 07:08:23 +0200
committerMichał Górny <mgorny@gentoo.org>2022-06-25 07:11:38 +0200
commit9a5fe912ba18f73c9500fbd6f0f3b67ed4833e1d (patch)
treee2619bf1b192e8ec8c4f77ba085a4cb1d205abbd /dev-python/pyproject-fmt
parentdev-python/configupdater: New package, v3.1 (diff)
downloadgentoo-9a5fe912ba18f73c9500fbd6f0f3b67ed4833e1d.tar.gz
gentoo-9a5fe912ba18f73c9500fbd6f0f3b67ed4833e1d.tar.bz2
gentoo-9a5fe912ba18f73c9500fbd6f0f3b67ed4833e1d.zip
dev-python/pyproject-fmt: New package, v0.3.3
Extra test dep for dev-python/ini2toml. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyproject-fmt')
-rw-r--r--dev-python/pyproject-fmt/Manifest1
-rw-r--r--dev-python/pyproject-fmt/metadata.xml11
-rw-r--r--dev-python/pyproject-fmt/pyproject-fmt-0.3.3.ebuild38
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/pyproject-fmt/Manifest b/dev-python/pyproject-fmt/Manifest
new file mode 100644
index 000000000000..0b4338fc9ea1
--- /dev/null
+++ b/dev-python/pyproject-fmt/Manifest
@@ -0,0 +1 @@
+DIST pyproject-fmt-0.3.3.gh.tar.gz 14399 BLAKE2B 82af6d6c4424f83ed9a5539d64bfd517cf08df4bb14b7f1321a379a4d87d140f1518444b503731344e5fdbb4b94d92ce23605fe2a1cc978d26901eae98a31b8c SHA512 49c4648e140b34a6d2f27cc01be7253693e79687f2ff8dbcae5ca3cc64c14f5945f942ffb42d1d286ff221e5aaed22dc1f9953216f49232ce311c4c18130754e
diff --git a/dev-python/pyproject-fmt/metadata.xml b/dev-python/pyproject-fmt/metadata.xml
new file mode 100644
index 000000000000..2b685521272a
--- /dev/null
+++ b/dev-python/pyproject-fmt/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">tox-dev/pyproject-fmt</remote-id>
+ <remote-id type="pypi">pyproject-fmt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pyproject-fmt/pyproject-fmt-0.3.3.ebuild b/dev-python/pyproject-fmt/pyproject-fmt-0.3.3.ebuild
new file mode 100644
index 000000000000..bf9e0c458bdd
--- /dev/null
+++ b/dev-python/pyproject-fmt/pyproject-fmt-0.3.3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Format your pyproject.toml file"
+HOMEPAGE="
+ https://github.com/tox-dev/pyproject-fmt/
+ https://pypi.org/project/pyproject-fmt/
+"
+SRC_URI="
+ https://github.com/tox-dev/pyproject-fmt/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/packaging-21.3[${PYTHON_USEDEP}]
+ >=dev-python/tomlkit-0.10[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/hatch-vcs[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/pytest-mock-3.7[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}