Move {app-doc → app-text}/ford

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2024-01-21 23:04:20 +03:00
parent 1b7e3ee90e
commit 3be77f91be
6 changed files with 0 additions and 0 deletions

1
app-text/ford/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST FORD-6.2.5.tar.gz 6140012 BLAKE2B 261ddf8901c53732feb46e5ec9adefd689e10db0e1a674b45c9757f49658d57f1c6d3d0a5ba12bbc9d1d7d0a48031b29c772f438aea2069a5451d7e3b4aaa82b SHA512 1f47ddd45804af3c9d99576e542795f91a1833d816ceccb5e81f8f71710e0c79a4ba769b95b85771365d8c4392d1c812e247a5b82cfee6cc023f61eeedd86d75

View File

@@ -0,0 +1,22 @@
From 67b1355fea6904dc8ea540a6cfaa6164dc3a1a23 Mon Sep 17 00:00:00 2001
From: Peter Hill <peter.hill@york.ac.uk>
Date: Tue, 24 Jan 2023 10:54:10 +0000
Subject: [PATCH] Fix test for Python 3.11 (mutable default not allowed)
---
test/test_sourceform.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/test_sourceform.py b/test/test_sourceform.py
index 4e6c9d3..f3a67c9 100644
--- a/test/test_sourceform.py
+++ b/test/test_sourceform.py
@@ -790,7 +790,7 @@ class FakeParent:
class FakeVariable:
name: str
vartype: str
- parent: Optional[FakeParent] = FakeParent()
+ parent: Optional[FakeParent] = field(default_factory=FakeParent)
attribs: Optional[List[str]] = field(default_factory=list)
intent: str = ""
optional: bool = False

View File

@@ -0,0 +1,31 @@
diff -Naur a/ford/setup.cfg b/ford/setup.cfg
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,7 +7,7 @@
author = Chris MacMackin
author_email = cmacmackin@gmail.com
license = GPLv3
-license_file = LICENSE
+license_files = LICENSE
keywords = Markdown, Fortran, documentation, comments
classifiers =
Development Status :: 5 - Production/Stable
@@ -27,7 +27,7 @@
Tracker = https://github.com/Fortran-FOSS-Programmers/ford/issues
[options]
-packages = ford
+packages = find_namespace:
install_requires =
markdown ~= 3.4.0
markdown-include ~= 0.7.0
@@ -41,6 +41,9 @@
importlib-metadata; python_version < "3.8"
include_package_data = True
+[options.packages.find]
+include = ford*
+
[options.extras_require]
tests = pytest >= 3.3.0
docs =

View File

@@ -0,0 +1,53 @@
Upstream patch: https://github.com/Fortran-FOSS-Programmers/ford
From a793ebfa36895ef79134313c2c7b7e9da8b9d992 Mon Sep 17 00:00:00 2001
From: Sergey Torokhov <torokhov-s-a@yandex.ru>
Date: Sat, 6 May 2023 21:46:57 +0300
Subject: [PATCH] pyproject.toml: fix setuptools warnings
Introduced changes fix setuptools warnings:
* Installing 'ford.css' as data is deprecated, please list it in `packages`.
* Installing 'ford.fonts' as data is deprecated, please list it in `packages`.
* Installing 'ford.js' as data is deprecated, please list it in `packages`.
* Installing 'ford.templates' as data is deprecated, please list it in `packages`.
* Installing 'ford.tipuesearch' as data is deprecated, please list it in `packages`.
* Installing 'ford.tipuesearch.img' as data is deprecated, please list it in `packages`.
The following parts aren't used due to it are applied by default:
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
namespaces = true
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
---
pyproject.toml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 4d90b9c..f3bcfae 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -64,10 +64,18 @@ Documentation = "https://forddocs.readthedocs.io/en/latest/"
ford = "ford:run"
[tool.setuptools]
-packages = ["ford"]
+packages = [
+ "ford",
+ "ford.css",
+ "ford.fonts",
+ "ford.js",
+ "ford.templates",
+ "ford.tipuesearch",
+ "ford.tipuesearch.img",
+]
[tool.setuptools.package-data]
-ford = ["css/*", "fonts/*", "js/*", "templates/*", "tipuesearch/*", "config.json", "favicon.png"]
+ford = ["config.json", "favicon.png"]
[tool.setuptools_scm]
write_to = "ford/_version.py"

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi toolchain-funcs
MY_PN="FORD"
DESCRIPTION="FORD, automatic documentation generator for modern Fortran programs"
HOMEPAGE="https://github.com/Fortran-FOSS-Programmers/ford"
SRC_URI="$(pypi_sdist_url --no-normalize "${MY_PN^}" "${PV}")"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
S="${WORKDIR}/${MY_PN}-${PV}"
RDEPEND="
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
>=dev-python/graphviz-0.20[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
>=dev-python/markdown-3.4[${PYTHON_USEDEP}]
>=dev-python/markdown-include-0.7.0[${PYTHON_USEDEP}]
>=dev-python/pygments-2.12.0[${PYTHON_USEDEP}]
dev-python/python-markdown-math[${PYTHON_USEDEP}]
>=dev-python/toposort-1.7[${PYTHON_USEDEP}]
>=dev-python/tqdm-4.64.0[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}_fix_setuptools_warnings.patch" )
DOCS=( CHANGELOG.md README.md )
distutils_enable_tests pytest
src_prepare() {
default
sed -i -e 's/"cpp /"'"$(tc-getCPP)"' /' ford/__init__.py || die # bug: 839300
}

View File

@@ -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>torokhov-s-a@yandex.ru</email>
<name>Sergey Torokhov</name>
</maintainer>
<upstream>
<remote-id type="pypi">FORD</remote-id>
<remote-id type="github">Fortran-FOSS-Programmers/ford</remote-id>
</upstream>
</pkgmetadata>