public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/cmakelang/files/, dev-python/cmakelang/
@ 2023-06-07  7:04 Viorel Munteanu
  0 siblings, 0 replies; only message in thread
From: Viorel Munteanu @ 2023-06-07  7:04 UTC (permalink / raw
  To: gentoo-commits

commit:     464135781aee60621a4ea4d2f64f2d2176bfca7b
Author:     Florian Albrechtskirchinger <falbrechtskirchinger <AT> gmail <DOT> com>
AuthorDate: Tue Jun  6 11:20:39 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Tue Jun  6 11:20:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=46413578

dev-python/cmakelang: new package, add 0.6.13

Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger <AT> gmail.com>

 dev-python/cmakelang/Manifest                      |   1 +
 dev-python/cmakelang/cmakelang-0.6.13.ebuild       |  42 +++++++++
 .../files/cmakelang-0.6.13-fix-setup.py.patch      | 100 +++++++++++++++++++++
 dev-python/cmakelang/metadata.xml                  |  12 +++
 4 files changed, 155 insertions(+)

diff --git a/dev-python/cmakelang/Manifest b/dev-python/cmakelang/Manifest
new file mode 100644
index 000000000..a9dc61aeb
--- /dev/null
+++ b/dev-python/cmakelang/Manifest
@@ -0,0 +1 @@
+DIST cmakelang-0.6.13.gh.tar.gz 1022629 BLAKE2B f62ce29e81a79f0301b1f04e70d95419486e3687e2e34d89e9d0343749026c73cbc6ae0d9e4f079abd1d68ac021108e9322805df38299c5666d06db5f135105d SHA512 eb7fde540860b6119d0bb528f22592fb4b507f9319aeda0999da10bcc89ee1348fd7d701fc49aa5dac7616e1577e436cbd73de94dbbab0cafdf28e1812612342

diff --git a/dev-python/cmakelang/cmakelang-0.6.13.ebuild b/dev-python/cmakelang/cmakelang-0.6.13.ebuild
new file mode 100644
index 000000000..bbfd7eabe
--- /dev/null
+++ b/dev-python/cmakelang/cmakelang-0.6.13.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+inherit distutils-r1
+
+DESCRIPTION="Provides Quality Assurance (QA) tools for cmake"
+HOMEPAGE="
+	https://pypi.org/project/cmakelang/
+	https://github.com/cheshirekow/cmake_format
+"
+SRC_URI="https://github.com/cheshirekow/cmake_format/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/cmake_format-${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+	dev-python/jinja[${PYTHON_USEDEP}]
+	dev-python/pyyaml[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	${RDEPEND}
+"
+
+PATCHES=(
+	"${FILESDIR}/cmakelang-0.6.13-fix-setup.py.patch"
+)
+
+EPYTEST_DESELECT=(
+	# fails because the project lags behind CMake
+	cmakelang/test/command_db_test.py
+	# tests require network access
+	cmakelang/test/screw_users_test.py
+)
+
+# tests fail for 3.11+ because of hacky use of private class members
+# distutils_enable_tests pytest

diff --git a/dev-python/cmakelang/files/cmakelang-0.6.13-fix-setup.py.patch b/dev-python/cmakelang/files/cmakelang-0.6.13-fix-setup.py.patch
new file mode 100644
index 000000000..f58b18f9e
--- /dev/null
+++ b/dev-python/cmakelang/files/cmakelang-0.6.13-fix-setup.py.patch
@@ -0,0 +1,100 @@
+--- cmake_format-0.6.13/cmakelang/pypi/setup.py.orig	2023-06-06 12:33:22.631609182 +0200
++++ cmake_format-0.6.13/cmakelang/pypi/setup.py	2023-06-06 12:33:46.126544329 +0200
+@@ -61,97 +61,3 @@
+     },
+     install_requires=["six>=1.13.0"]
+ )
+-
+-setup(
+-    name="cmake-annotate",
+-    packages=[],
+-    version=VERSION,
+-    description="Can format your listfiles so they don't look like crap",
+-    long_description=long_description,
+-    author="Josh Bialkowski",
+-    author_email="josh.bialkowski@gmail.com",
+-    url=GITHUB_URL,
+-    download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
+-    keywords=["cmake", "annotate"],
+-    license="GPLv3",
+-    classifiers=[
+-        "Development Status :: 3 - Alpha",
+-        "Intended Audience :: Developers",
+-        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
+-    ],
+-    include_package_data=True,
+-    install_requires=[
+-        "cmakelang>={}".format(VERSION),
+-        "pyyaml>=5.3"]
+-)
+-
+-setup(
+-    name="cmake-format",
+-    packages=[],
+-    version=VERSION,
+-    description="Can format your listfiles so they don't look like crap",
+-    long_description=long_description,
+-    author="Josh Bialkowski",
+-    author_email="josh.bialkowski@gmail.com",
+-    url=GITHUB_URL,
+-    download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
+-    keywords=["cmake", "format", "formatter"],
+-    license="GPLv3",
+-    classifiers=[
+-        "Development Status :: 3 - Alpha",
+-        "Intended Audience :: Developers",
+-        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
+-    ],
+-    include_package_data=True,
+-    extras_require={
+-        "YAML": ["pyyaml>=5.3"],
+-    },
+-    install_requires=["cmakelang>={}".format(VERSION)]
+-)
+-
+-
+-setup(
+-    name="cmake-lint",
+-    packages=[],
+-    version=VERSION,
+-    description="Can check your listfiles for common problems",
+-    long_description=long_description,
+-    author="Josh Bialkowski",
+-    author_email="josh.bialkowski@gmail.com",
+-    url=GITHUB_URL,
+-    download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
+-    keywords=["cmake", "lint", "linter"],
+-    license="GPLv3",
+-    classifiers=[
+-        "Development Status :: 3 - Alpha",
+-        "Intended Audience :: Developers",
+-        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
+-    ],
+-    include_package_data=True,
+-    extras_require={
+-        "YAML": ["pyyaml>=5.3"],
+-    },
+-    install_requires=["cmakelang>={}".format(VERSION)]
+-)
+-
+-
+-setup(
+-    name="cmake-parse",
+-    packages=[],
+-    version=VERSION,
+-    description="Python library for parsing cmake listfiles. ",
+-    long_description=long_description,
+-    author="Josh Bialkowski",
+-    author_email="josh.bialkowski@gmail.com",
+-    url=GITHUB_URL,
+-    download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
+-    keywords=["cmake", "lint", "linter"],
+-    license="GPLv3",
+-    classifiers=[
+-        "Development Status :: 3 - Alpha",
+-        "Intended Audience :: Developers",
+-        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
+-    ],
+-    include_package_data=True,
+-    install_requires=["cmakelang>={}".format(VERSION)]
+-)

diff --git a/dev-python/cmakelang/metadata.xml b/dev-python/cmakelang/metadata.xml
new file mode 100644
index 000000000..5dfa49384
--- /dev/null
+++ b/dev-python/cmakelang/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>falbrechtskirchinger@gmail.com</email>
+    <name>Florian Albrechtskirchinger</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="pypi">cmakelang</remote-id>
+    <remote-id type="github">cheshirekow/cmake_format</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-07  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-07  7:04 [gentoo-commits] repo/proj/guru:master commit in: dev-python/cmakelang/files/, dev-python/cmakelang/ Viorel Munteanu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox