forked from AFPy/pospell
Move from setup.py to setup.cfg.
This commit is contained in:
parent
a42de31a88
commit
f7b61e04d0
14
README.md
14
README.md
|
@ -2,11 +2,13 @@
|
|||
|
||||
`pospell` is a spellcheckers for po files containing reStructuedText.
|
||||
|
||||
|
||||
## Pospell is part of poutils!
|
||||
|
||||
[Poutils](https://pypi.org/project/poutils) (`.po` utils) is a metapackage to easily install useful Python tools to use with po files
|
||||
and `pospell` is a part of it! Go check out [Poutils](https://pypi.org/project/poutils) to discover the other tools!
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
By giving files to `pospell`:
|
||||
|
@ -38,6 +40,7 @@ $ pospell --language fr --glob '**/*.po'
|
|||
…
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
|
@ -64,3 +67,14 @@ optional arguments:
|
|||
|
||||
A personal dict (the `-p` option) is simply a text file with one word
|
||||
per line.
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
In a venv, install the dev requirements:
|
||||
|
||||
```bash
|
||||
python3 -m venv --prompt pospell .venv
|
||||
source .venv/bin/activate
|
||||
python3 -m pip install -r requirements-dev.txt
|
||||
```
|
||||
|
|
6
requirements-dev.in
Normal file
6
requirements-dev.in
Normal file
|
@ -0,0 +1,6 @@
|
|||
bandit
|
||||
black
|
||||
flake8
|
||||
isort
|
||||
mypy
|
||||
pylint
|
33
requirements-dev.txt
Normal file
33
requirements-dev.txt
Normal file
|
@ -0,0 +1,33 @@
|
|||
#
|
||||
# This file is autogenerated by pip-compile
|
||||
# To update, run:
|
||||
#
|
||||
# pip-compile requirements-dev.in
|
||||
#
|
||||
appdirs==1.4.4 # via black
|
||||
astroid==2.4.2 # via pylint
|
||||
bandit==1.6.2 # via -r requirements-dev.in
|
||||
black==20.8b1 # via -r requirements-dev.in
|
||||
click==7.1.2 # via black
|
||||
flake8==3.8.4 # via -r requirements-dev.in
|
||||
gitdb==4.0.5 # via gitpython
|
||||
gitpython==3.1.11 # via bandit
|
||||
isort==5.6.4 # via -r requirements-dev.in, pylint
|
||||
lazy-object-proxy==1.4.3 # via astroid
|
||||
mccabe==0.6.1 # via flake8, pylint
|
||||
mypy-extensions==0.4.3 # via black, mypy
|
||||
mypy==0.790 # via -r requirements-dev.in
|
||||
pathspec==0.8.1 # via black
|
||||
pbr==5.5.1 # via stevedore
|
||||
pycodestyle==2.6.0 # via flake8
|
||||
pyflakes==2.2.0 # via flake8
|
||||
pylint==2.6.0 # via -r requirements-dev.in
|
||||
pyyaml==5.3.1 # via bandit
|
||||
regex==2020.11.13 # via black
|
||||
six==1.15.0 # via astroid, bandit
|
||||
smmap==3.0.4 # via gitdb
|
||||
stevedore==3.2.2 # via bandit
|
||||
toml==0.10.2 # via black, pylint
|
||||
typed-ast==1.4.1 # via black, mypy
|
||||
typing-extensions==3.7.4.3 # via black, mypy
|
||||
wrapt==1.12.1 # via astroid
|
35
setup.cfg
35
setup.cfg
|
@ -11,5 +11,36 @@ replace = version="{new_version}"
|
|||
search = __version__ = "{current_version}"
|
||||
replace = __version__ = "{new_version}"
|
||||
|
||||
[bdist_wheel]
|
||||
universal = 1
|
||||
[metadata]
|
||||
name = pospell
|
||||
version = 1.0.11
|
||||
author = Julien Palard
|
||||
author_email = julien@palard.fr
|
||||
license = MIT license
|
||||
description = Spellcheck .po files containing reStructuredText translations
|
||||
keywords =
|
||||
po
|
||||
spell
|
||||
gettext
|
||||
reStructuredText
|
||||
check
|
||||
sphinx
|
||||
translation
|
||||
url = https://github.com/AFPy/pospell
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown; charset=UTF-8
|
||||
classifiers =
|
||||
Development Status :: 5 - Production/Stable
|
||||
Intended Audience :: Developers
|
||||
License :: OSI Approved :: MIT License
|
||||
Natural Language :: English
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.5
|
||||
Programming Language :: Python :: 3.6
|
||||
|
||||
[options]
|
||||
py_modules = pospell
|
||||
install_requires = polib; docutils>=0.11; regex
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts = pospell=pospell:main
|
||||
|
|
33
setup.py
33
setup.py
|
@ -1,34 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import setuptools
|
||||
|
||||
with open("README.md") as readme:
|
||||
long_description = readme.read()
|
||||
|
||||
setuptools.setup(
|
||||
name="pospell",
|
||||
version="1.0.11",
|
||||
description="Spellcheck .po files containing reStructuredText translations",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown", # This is important!
|
||||
author="Julien Palard",
|
||||
author_email="julien@palard.fr",
|
||||
url="https://github.com/JulienPalard/pospell",
|
||||
py_modules=["pospell"],
|
||||
entry_points={"console_scripts": ["pospell=pospell:main"]},
|
||||
extras_require={
|
||||
"dev": ["bandit", "black", "detox", "flake8", "isort", "mypy", "pylint"]
|
||||
},
|
||||
install_requires=["polib", "docutils>=0.11", "regex"],
|
||||
license="MIT license",
|
||||
keywords="po spell gettext reStructuredText check sphinx translation",
|
||||
classifiers=[
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Natural Language :: English",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.5",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
],
|
||||
)
|
||||
setuptools.setup()
|
||||
|
|
Loading…
Reference in New Issue
Block a user