commit
11d3fd0bb7
5 changed files with 88 additions and 91 deletions
|
@ -1,7 +1,92 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
|
requires = ["setuptools>=61.2", "setuptools_scm>=6.2"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "dosage"
|
||||||
|
description = "a comic strip downloader and archiver"
|
||||||
|
readme = "README.md"
|
||||||
|
maintainers = [{name = "Tobias Gruetzmacher", email = "tobias-dosage@23.gs"}]
|
||||||
|
license = {text = "MIT License"}
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
"Environment :: Console",
|
||||||
|
"Intended Audience :: End Users/Desktop",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
|
"Programming Language :: Python :: 3.7",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
|
"Topic :: Multimedia :: Graphics",
|
||||||
|
]
|
||||||
|
keywords = ["comic", "webcomic", "downloader", "archiver", "crawler"]
|
||||||
|
requires-python = ">=3.7"
|
||||||
|
dependencies = [
|
||||||
|
"colorama",
|
||||||
|
"imagesize",
|
||||||
|
"lxml>=4.0.0",
|
||||||
|
"platformdirs",
|
||||||
|
"requests>=2.0",
|
||||||
|
"cached_property;python_version<'3.8'",
|
||||||
|
"importlib_metadata;python_version<'3.8'",
|
||||||
|
]
|
||||||
|
dynamic = ["version"]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://dosage.rocks"
|
||||||
|
Code = "https://github.com/webcomics/dosage"
|
||||||
|
"Issue tracker" = "https://github.com/webcomics/dosage/issues"
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
bash = ["argcomplete"]
|
||||||
|
css = ["cssselect"]
|
||||||
|
dev = [
|
||||||
|
"allure-pytest",
|
||||||
|
"pytest-cov",
|
||||||
|
"pytest-xdist",
|
||||||
|
"responses",
|
||||||
|
"setup-cfg-fmt",
|
||||||
|
]
|
||||||
|
lint = [
|
||||||
|
"flake8<6",
|
||||||
|
"flake8-2020",
|
||||||
|
"flake8-breakpoint",
|
||||||
|
"flake8-bugbear",
|
||||||
|
"flake8-coding",
|
||||||
|
"flake8-commas",
|
||||||
|
"flake8-comprehensions",
|
||||||
|
"flake8-eradicate",
|
||||||
|
"flake8-fixme",
|
||||||
|
"flake8-functions",
|
||||||
|
"flake8-future-import",
|
||||||
|
"flake8-logging-format",
|
||||||
|
"flake8-noqa",
|
||||||
|
"Flake8-pyproject",
|
||||||
|
"flake8-pytest",
|
||||||
|
"flake8-pytest-style",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
dosage = "dosagelib.cmd:main"
|
||||||
|
|
||||||
|
[project.entry-points.pyinstaller40]
|
||||||
|
hook-dirs = "dosagelib.__pyinstaller:get_hook_dirs"
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
platforms = ["Any"]
|
||||||
|
license-files = ["COPYING"]
|
||||||
|
|
||||||
|
[tool.setuptools.packages]
|
||||||
|
find = {namespaces = false}
|
||||||
|
|
||||||
|
[tool.distutils.bdist_wheel]
|
||||||
|
universal = true
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
|
|
||||||
[tool.flake8]
|
[tool.flake8]
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
appdirs
|
|
||||||
colorama
|
|
||||||
imagesize
|
|
||||||
lxml>=4.0.0
|
|
||||||
requests>=2.0
|
|
||||||
cached_property; python_version<'3.8'
|
|
||||||
importlib_metadata; python_version<'3.8'
|
|
81
setup.cfg
81
setup.cfg
|
@ -1,81 +0,0 @@
|
||||||
[metadata]
|
|
||||||
name = dosage
|
|
||||||
description = a comic strip downloader and archiver
|
|
||||||
long_description = file: README.md
|
|
||||||
long_description_content_type = text/markdown
|
|
||||||
url = https://dosage.rocks
|
|
||||||
maintainer = Tobias Gruetzmacher
|
|
||||||
maintainer_email = tobias-dosage@23.gs
|
|
||||||
license = MIT License
|
|
||||||
license_file = COPYING
|
|
||||||
platforms = Any
|
|
||||||
classifiers =
|
|
||||||
Development Status :: 5 - Production/Stable
|
|
||||||
Environment :: Console
|
|
||||||
Intended Audience :: End Users/Desktop
|
|
||||||
License :: OSI Approved :: MIT License
|
|
||||||
Operating System :: OS Independent
|
|
||||||
Programming Language :: Python
|
|
||||||
Programming Language :: Python :: 3
|
|
||||||
Programming Language :: Python :: 3 :: Only
|
|
||||||
Programming Language :: Python :: 3.7
|
|
||||||
Programming Language :: Python :: 3.8
|
|
||||||
Programming Language :: Python :: 3.9
|
|
||||||
Programming Language :: Python :: 3.10
|
|
||||||
Topic :: Internet :: WWW/HTTP
|
|
||||||
Topic :: Multimedia :: Graphics
|
|
||||||
keywords = comic,webcomic,downloader,archiver,crawler
|
|
||||||
project_urls =
|
|
||||||
Code = https://github.com/webcomics/dosage
|
|
||||||
Issue tracker = https://github.com/webcomics/dosage/issues
|
|
||||||
|
|
||||||
[options]
|
|
||||||
packages = find:
|
|
||||||
install_requires =
|
|
||||||
colorama
|
|
||||||
imagesize
|
|
||||||
lxml>=4.0.0
|
|
||||||
platformdirs
|
|
||||||
requests>=2.0
|
|
||||||
cached_property;python_version<'3.8'
|
|
||||||
importlib_metadata;python_version<'3.8'
|
|
||||||
include_package_data = true
|
|
||||||
python_requires = >=3.7
|
|
||||||
|
|
||||||
[options.entry_points]
|
|
||||||
console_scripts =
|
|
||||||
dosage = dosagelib.cmd:main
|
|
||||||
pyinstaller40 =
|
|
||||||
hook-dirs = dosagelib.__pyinstaller:get_hook_dirs
|
|
||||||
|
|
||||||
[options.extras_require]
|
|
||||||
bash =
|
|
||||||
argcomplete
|
|
||||||
css =
|
|
||||||
cssselect
|
|
||||||
dev =
|
|
||||||
allure-pytest
|
|
||||||
pytest-cov
|
|
||||||
pytest-xdist
|
|
||||||
responses
|
|
||||||
setup-cfg-fmt
|
|
||||||
lint =
|
|
||||||
flake8<6
|
|
||||||
flake8-2020
|
|
||||||
flake8-breakpoint
|
|
||||||
flake8-bugbear
|
|
||||||
flake8-coding
|
|
||||||
flake8-commas
|
|
||||||
flake8-comprehensions
|
|
||||||
flake8-eradicate
|
|
||||||
flake8-fixme
|
|
||||||
flake8-functions
|
|
||||||
flake8-future-import
|
|
||||||
flake8-logging-format
|
|
||||||
flake8-noqa
|
|
||||||
Flake8-pyproject
|
|
||||||
flake8-pytest
|
|
||||||
flake8-pytest-style
|
|
||||||
|
|
||||||
[bdist_wheel]
|
|
||||||
universal = 1
|
|
|
@ -12,7 +12,7 @@ cd /work
|
||||||
pip install --no-warn-script-location --user pytest-cov PySocks
|
pip install --no-warn-script-location --user pytest-cov PySocks
|
||||||
pip install --no-warn-script-location --user -e '.[css,dev]'
|
pip install --no-warn-script-location --user -e '.[css,dev]'
|
||||||
|
|
||||||
TESTALL=1 python3 -m py.test -v --cov=. --cov-report xml \
|
TESTALL=1 python3 -m pytest -v --cov=. --cov-report xml \
|
||||||
--alluredir=allure-data \
|
--alluredir=allure-data \
|
||||||
--tb=short -n10 --junitxml=junit.xml \
|
--tb=short -n10 --junitxml=junit.xml \
|
||||||
tests/modules/check_comics.py || true
|
tests/modules/check_comics.py || true
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -11,7 +11,7 @@ python =
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
{envbindir}/py.test --tb=short \
|
{envbindir}/pytest --tb=short \
|
||||||
--junitxml={toxworkdir}/reports/{envname}/junit.xml \
|
--junitxml={toxworkdir}/reports/{envname}/junit.xml \
|
||||||
--alluredir={toxworkdir}/reports/{envname}/allure-data \
|
--alluredir={toxworkdir}/reports/{envname}/allure-data \
|
||||||
--cov={envsitepackagesdir}/dosagelib \
|
--cov={envsitepackagesdir}/dosagelib \
|
||||||
|
|
Loading…
Reference in a new issue