dev-python/pyspelling: new package

Package-Manager: Portage-2.3.96, Repoman-2.3.21
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-03-27 17:54:40 +01:00
parent 19e84ceea1
commit ac4b9b8949
3 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST pyspelling-2.6.0.tar.gz 147740 BLAKE2B 277bd24f74fb670d44f027a9fce4fe0e4964318d8f3dccf796e3a6c09490f344fc2d2b9508a77c09aa6eecedf059b9e6bb27baa99bc0b938a8ad58c4fba14824 SHA512 41ca9265931b4c857c719cabbfbb79443a27d93b927941212ba1735eb2ab00643556bbc811fce26ca0b4d2d169d62c1d2ad2f86918daddd10c7636d8c664ca5e

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<remote-id type="github">facelessuser/pyspelling</remote-id>
</upstream>
<longdescription lang="en">
PySpelling is a module to help with automating spell checking in a project with Aspell or
Hunspell. It is essentially a wrapper around the command line utility of these two spell
checking tools, and allows you to setup different spelling tasks for different file types.
You can apply specific and different filters and options to each task. PySpelling can also
be used in CI environments to fail the build if there are misspelled words.
Aspell and Hunspell are very good spell checking tools. Aspell particularly comes with a couple of filters, but the filters are limited in types and aren't extremely flexible. PySpelling was created to work around Aspell's and Hunspell's filtering shortcomings by creating a wrapper around them that could be extended to handle more kinds of file formats and provide more advanced filtering. If you need to filter out specific HTML tags with specific IDs or class names, PySpelling can do it. If you want to scan Python files for docstrings, but also avoid specific content within the docstring, you can do that as well. If PySpelling doesn't have a filter you need, with access to so many available Python modules, you can easily write your own.
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,35 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
DESCRIPTION="Spell checker automation tool"
HOMEPAGE="https://github.com/facelessuser/pyspelling"
SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/html5lib[${PYTHON_USEDEP}]
dev-python/markdown[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
>=dev-python/soupsieve-1.8[${PYTHON_USEDEP}]
>=dev-python/wcmatch-4.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
doc? (
dev-python/mkdocs-git-revision-date-localized-plugin[${PYTHON_USEDEP}]
dev-python/mkdocs_pymdownx_material_extras[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs/src