Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyproject-fmt/
Date: Sat, 25 Jun 2022 05:11:48
Message-Id: 1656133898.9a5fe912ba18f73c9500fbd6f0f3b67ed4833e1d.mgorny@gentoo
1 commit: 9a5fe912ba18f73c9500fbd6f0f3b67ed4833e1d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 05:08:23 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 05:11:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a5fe912
7
8 dev-python/pyproject-fmt: New package, v0.3.3
9
10 Extra test dep for dev-python/ini2toml.
11
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 dev-python/pyproject-fmt/Manifest | 1 +
15 dev-python/pyproject-fmt/metadata.xml | 11 +++++++
16 .../pyproject-fmt/pyproject-fmt-0.3.3.ebuild | 38 ++++++++++++++++++++++
17 3 files changed, 50 insertions(+)
18
19 diff --git a/dev-python/pyproject-fmt/Manifest b/dev-python/pyproject-fmt/Manifest
20 new file mode 100644
21 index 000000000000..0b4338fc9ea1
22 --- /dev/null
23 +++ b/dev-python/pyproject-fmt/Manifest
24 @@ -0,0 +1 @@
25 +DIST pyproject-fmt-0.3.3.gh.tar.gz 14399 BLAKE2B 82af6d6c4424f83ed9a5539d64bfd517cf08df4bb14b7f1321a379a4d87d140f1518444b503731344e5fdbb4b94d92ce23605fe2a1cc978d26901eae98a31b8c SHA512 49c4648e140b34a6d2f27cc01be7253693e79687f2ff8dbcae5ca3cc64c14f5945f942ffb42d1d286ff221e5aaed22dc1f9953216f49232ce311c4c18130754e
26
27 diff --git a/dev-python/pyproject-fmt/metadata.xml b/dev-python/pyproject-fmt/metadata.xml
28 new file mode 100644
29 index 000000000000..2b685521272a
30 --- /dev/null
31 +++ b/dev-python/pyproject-fmt/metadata.xml
32 @@ -0,0 +1,11 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="project">
37 + <email>python@g.o</email>
38 + </maintainer>
39 + <upstream>
40 + <remote-id type="github">tox-dev/pyproject-fmt</remote-id>
41 + <remote-id type="pypi">pyproject-fmt</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/pyproject-fmt/pyproject-fmt-0.3.3.ebuild b/dev-python/pyproject-fmt/pyproject-fmt-0.3.3.ebuild
46 new file mode 100644
47 index 000000000000..bf9e0c458bdd
48 --- /dev/null
49 +++ b/dev-python/pyproject-fmt/pyproject-fmt-0.3.3.ebuild
50 @@ -0,0 +1,38 @@
51 +# Copyright 2022 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=8
55 +
56 +DISTUTILS_USE_PEP517=hatchling
57 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
58 +
59 +inherit distutils-r1
60 +
61 +DESCRIPTION="Format your pyproject.toml file"
62 +HOMEPAGE="
63 + https://github.com/tox-dev/pyproject-fmt/
64 + https://pypi.org/project/pyproject-fmt/
65 +"
66 +SRC_URI="
67 + https://github.com/tox-dev/pyproject-fmt/archive/${PV}.tar.gz
68 + -> ${P}.gh.tar.gz
69 +"
70 +
71 +LICENSE="MIT"
72 +SLOT="0"
73 +KEYWORDS="~amd64"
74 +
75 +RDEPEND="
76 + >=dev-python/packaging-21.3[${PYTHON_USEDEP}]
77 + >=dev-python/tomlkit-0.10[${PYTHON_USEDEP}]
78 +"
79 +BDEPEND="
80 + dev-python/hatch-vcs[${PYTHON_USEDEP}]
81 + test? (
82 + >=dev-python/pytest-mock-3.7[${PYTHON_USEDEP}]
83 + )
84 +"
85 +
86 +distutils_enable_tests pytest
87 +
88 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}