summaryrefslogtreecommitdiff
path: root/dev-python/os-api-ref
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/os-api-ref')
-rw-r--r--dev-python/os-api-ref/Manifest1
-rw-r--r--dev-python/os-api-ref/files/os-api-ref-3.0.0-python-3.12.patch18
-rw-r--r--dev-python/os-api-ref/files/os-api-ref-3.0.0-sphinx-7.2.0.patch39
-rw-r--r--dev-python/os-api-ref/metadata.xml18
-rw-r--r--dev-python/os-api-ref/os-api-ref-3.0.0.ebuild51
5 files changed, 0 insertions, 127 deletions
diff --git a/dev-python/os-api-ref/Manifest b/dev-python/os-api-ref/Manifest
deleted file mode 100644
index 25aa0cb6d034..000000000000
--- a/dev-python/os-api-ref/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST os-api-ref-3.0.0.tar.gz 92919 BLAKE2B 8797fe76819148bad25d35039144b04d65c58ff9ddb235adb5e5eb39c073a938f1e17ed71ddfcb3c9ea53e98fa4876ccaef1963ec0b7b34f7d1a85c5829567f7 SHA512 ad7030cc91eacb482da19e42d94a81af4c3715f090966e33063d49693f567b0653e2e4a51d9526fe0e2a63480493f148582f96dc811b24e26534c9c05edf3897
diff --git a/dev-python/os-api-ref/files/os-api-ref-3.0.0-python-3.12.patch b/dev-python/os-api-ref/files/os-api-ref-3.0.0-python-3.12.patch
deleted file mode 100644
index c0b7f66eb1e5..000000000000
--- a/dev-python/os-api-ref/files/os-api-ref-3.0.0-python-3.12.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff --git a/os_api_ref/tests/test_microversions.py b/os_api_ref/tests/test_microversions.py
-index 8281442..c338c51 100644
---- a/os_api_ref/tests/test_microversions.py
-+++ b/os_api_ref/tests/test_microversions.py
-@@ -44,11 +44,11 @@ class TestMicroversions(base.TestCase):
- def test_rest_method(self):
- """Test that min / max mv css class attributes are set"""
- content = self.soup.find_all(class_='rp_min_ver_2_17')
-- self.assertRegexpMatches(
-+ self.assertRegex(
- str(content[0]),
- '^<div class="operation-grp rp_min_ver_2_17 rp_max_ver_2_19 ?"')
- content = self.soup.find_all(class_='rp_max_ver_2_19')
-- self.assertRegexpMatches(
-+ self.assertRegex(
- str(content[0]),
- '^<div class="operation-grp rp_min_ver_2_17 rp_max_ver_2_19 ?"')
-
diff --git a/dev-python/os-api-ref/files/os-api-ref-3.0.0-sphinx-7.2.0.patch b/dev-python/os-api-ref/files/os-api-ref-3.0.0-sphinx-7.2.0.patch
deleted file mode 100644
index 8e398371bdd7..000000000000
--- a/dev-python/os-api-ref/files/os-api-ref-3.0.0-sphinx-7.2.0.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff --git a/os_api_ref/tests/base.py b/os_api_ref/tests/base.py
-index 6e5e0dc..f5c2c1d 100644
---- a/os_api_ref/tests/base.py
-+++ b/os_api_ref/tests/base.py
-@@ -16,10 +16,11 @@
- import os
-
- import fixtures
-+import shutil
- import tempfile
- import testtools
-
--from sphinx.testing.path import path
-+from pathlib import Path
- from sphinx.testing.util import SphinxTestApp
-
-
-@@ -33,17 +34,16 @@ _TRUE_VALUES = ('True', 'true', '1', 'yes')
- class with_app:
- def __init__(self, **kwargs):
- if 'srcdir' in kwargs:
-- self.srcdir = path(kwargs['srcdir'])
-+ self.srcdir = Path(kwargs['srcdir'])
- self.sphinx_app_args = kwargs
-
- def __call__(self, f):
- def newf(*args, **kwargs):
- with tempfile.TemporaryDirectory() as tmpdirname:
-- tmpdir = path(tmpdirname)
-- tmproot = tmpdir / self.srcdir.basename()
-- self.srcdir.copytree(tmproot)
-+ tmpdir = Path(tmpdirname)
-+ tmproot = tmpdir / self.srcdir.name
-+ shutil.copytree(self.srcdir, tmproot)
- self.sphinx_app_args['srcdir'] = tmproot
-- self.builddir = tmproot.joinpath('_build')
-
- app = SphinxTestApp(freshenv=True, **self.sphinx_app_args)
-
diff --git a/dev-python/os-api-ref/metadata.xml b/dev-python/os-api-ref/metadata.xml
deleted file mode 100644
index a50556355522..000000000000
--- a/dev-python/os-api-ref/metadata.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>lssndrbarbieri@gmail.com</email>
- <name>Alessandro Barbieri</name>
- </maintainer>
- <longdescription lang="en">
-This project is a collection of sphinx stanzas that assist in building an API Reference site for an OpenStack project in RST. RST is great for unstructured English, but displaying semi structured (and repetitive) data in tables is not its strength. This provides tooling to insert semi-structured data describing request and response parameters and status or error messages, and turn those into nice tables.
-The project also includes a set of styling (and javascript) that is expected to layer on top of a Sphinx theme base. This addition provides a nice set of collapsing sections for REST methods and javascript controls to expand / collapse all sections.
-Features
-Sphinx stanza rest_method describing the method and resource for a REST API call. Lets authors write simply and also gives readers a clean way to scan all methods then click a button to get more information about a method.
-Sphinx stanza rest_parameters used to insert semi-structured data into the RST files describing the parameters users cansend with the request. The stanza points to a structured YAML file, parameters.yaml.
-Sphinx stanza rest_status_code used to insert pointers to error or status codes returned by the service. Points to a structured YAML file, http_codes.yaml.
- </longdescription>
-
- <origin>gentoo-guru-overlay</origin>
-</pkgmetadata> \ No newline at end of file
diff --git a/dev-python/os-api-ref/os-api-ref-3.0.0.ebuild b/dev-python/os-api-ref/os-api-ref-3.0.0.ebuild
deleted file mode 100644
index 4da89b72f24a..000000000000
--- a/dev-python/os-api-ref/os-api-ref-3.0.0.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-EPYTEST_DESELECT=(
- os_api_ref/tests/test_basic_example.py::TestBasicExample::test_parameters
- os_api_ref/tests/test_basic_example.py::TestBasicExample::test_rest_response
- os_api_ref/tests/test_microversions.py::TestMicroversions::test_parameters_table
- os_api_ref/tests/test_warnings.py::TestWarnings::test_missing_field
-)
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8,9,10,11,12} )
-PYPI_NO_NORMALIZE=1
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Sphinx Extensions to support API reference sites in OpenStack"
-HOMEPAGE="
- https://opendev.org/openstack/os-api-ref
- https://pypi.org/project/os-api-ref/
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
- >=dev-python/openstackdocstheme-2.2.1[${PYTHON_USEDEP}]
- >=dev-python/pyyaml-3.1.2[${PYTHON_USEDEP}]
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
- >=dev-python/sphinx-4.0.0[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- test? (
- >=dev-python/beautifulsoup4-4.6.0[${PYTHON_USEDEP}]
- dev-python/fixtures[${PYTHON_USEDEP}]
- >=dev-python/sphinx-4.0.0[${PYTHON_USEDEP}]
- >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${P}-python-3.12.patch"
- "${FILESDIR}/${P}-sphinx-7.2.0.patch"
-)
-
-distutils_enable_tests pytest
-distutils_enable_sphinx doc/source ">=dev-python/openstackdocstheme-2.2.1"