PyInventory/pyproject.toml

178 wiersze
5.5 KiB
TOML
Czysty Zwykły widok Historia

[tool.poetry]
name = "PyInventory"
2022-01-01 13:22:19 +00:00
version = "0.13.0"
description = "Web based management to catalog things including state and location etc. using Python/Django."
authors = ["JensDiemer <git@jensdiemer.de>"]
2021-04-05 13:23:32 +00:00
homepage = "https://github.com/jedie/PyInventory"
packages = [
2020-11-13 20:52:19 +00:00
{ include = "inventory", from = "src" },
{ include = "inventory_project", from = "src" },
]
keywords=['inventory','django']
classifiers = [
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
2021-12-05 14:32:18 +00:00
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
2021-12-05 14:32:18 +00:00
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
2021-12-05 14:32:18 +00:00
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
'Framework :: Django',
"Topic :: Database :: Front-Ends",
"Topic :: Documentation",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Site Management",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Operating System :: OS Independent",
]
2020-11-13 20:52:19 +00:00
include = ['AUTHORS', 'LICENSE', 'README.creole']
# Will be generated from README.creole with: 'poetry run update_rst_readme'
2020-11-13 20:52:19 +00:00
readme='README.rst'
2021-12-05 14:32:18 +00:00
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/jedie/PyInventory/issues"
[tool.poetry.dependencies]
2020-10-16 15:57:36 +00:00
python = ">=3.7,<4.0.0"
django = "*"
colorlog = "*" # https://github.com/borntyping/python-colorlog
2020-11-22 11:45:50 +00:00
gunicorn = "*" # https://github.com/benoimyproject.wsgitc/gunicorn
django-processinfo = "*" # https://github.com/jedie/django-processinfo/
django-debug-toolbar = "*" # http://django-debug-toolbar.readthedocs.io/en/stable/changes.html
django-import-export = "*" # https://github.com/django-import-export/django-import-export
django-dbbackup = "*" # https://github.com/django-dbbackup/django-dbbackup
django-tools = ">=0.49.0" # https://github.com/jedie/django-tools/
2020-10-16 15:54:34 +00:00
django-reversion-compare = "*" # https://github.com/jedie/django-reversion-compare/
django-ckeditor = "*" # https://github.com/django-ckeditor/django-ckeditor
2020-12-15 18:35:35 +00:00
bx_py_utils = "*" # https://github.com/boxine/bx_py_utils
bx_django_utils = "*" # https://github.com/boxine/bx_django_utils
2021-09-15 18:12:52 +00:00
django-tagulous = "*" # https://github.com/radiac/django-tagulous
2020-10-17 16:34:05 +00:00
django-admin-sortable2 = "*" # https://github.com/jrief/django-admin-sortable2
django-axes = "*" # https://github.com/jazzband/django-axes
2020-10-17 16:34:05 +00:00
requests = "*" # https://github.com/psf/requests
2020-11-11 16:36:09 +00:00
pillow = "*"
2020-10-20 15:38:08 +00:00
docker-compose = { version = "*", optional = true } # install via: poetry install --extras "docker"
psycopg2-binary = { version = "*", optional = true } # install via: poetry install --extras "postgres-binary"
psycopg2 = { version = "*", optional = true } # install via: poetry install --extras "psycopg2-source"
2020-10-20 15:38:08 +00:00
[tool.poetry.extras]
docker = ["docker-compose"]
postgres-binary = ["psycopg2-binary"]
psycopg2-source = ["psycopg2"]
[tool.poetry.dev-dependencies]
dev_shell = ">=0.2.2" # https://github.com/jedie/dev-shell
poetry-publish = "*" # https://github.com/jedie/poetry-publish
2020-10-17 19:30:19 +00:00
python-creole = "*" # https://github.com/jedie/python-creole
2021-04-28 15:38:06 +00:00
cmd2_ext_test = "*"
tox = "*"
pytest = "*"
pytest-randomly = "*"
pytest-cov = "*"
pytest-django = "*"
2020-11-14 17:53:40 +00:00
pytest-parallel = "*"
2020-11-14 19:03:40 +00:00
selenium = "*"
coveralls = "*"
isort = "*"
flake8 = "*"
flynt = "*"
autopep8 = "*"
pyupgrade = "*"
model_bakery = "*" # https://github.com/model-bakers/model_bakery
beautifulsoup4 = "*"
lxml = "*"
requests-mock = "*"
[tool.poetry.scripts]
2021-04-05 13:23:32 +00:00
devshell = 'inventory_project.dev_shell:devshell_cmdloop'
run_testserver = 'inventory_project.manage:start_test_server'
2020-11-13 21:38:28 +00:00
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
2020-11-13 21:45:40 +00:00
[tool.autopep8]
# https://github.com/hhatto/autopep8#pyprojecttoml
max_line_length = 120
exclude=".*,*/htmlcov/*,*/migrations/*,*/volumes/*"
2020-11-13 21:45:40 +00:00
2020-11-13 21:57:22 +00:00
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/config_files/#pyprojecttoml-preferred-format
atomic=true
line_length=120
case_sensitive=false
2021-04-05 13:23:32 +00:00
skip_glob=[".*", "*/htmlcov/*","*/migrations/*","*/volumes/*"]
2020-11-13 21:57:22 +00:00
multi_line_output=3
include_trailing_comma=true
known_first_party=["inventory","inventory_project","inventory_tests"]
no_lines_before="LOCALFOLDER"
default_section="THIRDPARTY"
sections=["FUTURE","STDLIB","THIRDPARTY","FIRSTPARTY","LOCALFOLDER"]
lines_after_imports=2
2021-04-05 13:23:32 +00:00
[tool.coverage.run]
omit = [".*"]
2020-11-13 21:45:40 +00:00
[tool.pytest.ini_options]
# https://docs.pytest.org/en/latest/customize.html#pyproject-toml
minversion = "6.0"
DJANGO_SETTINGS_MODULE="inventory_project.settings.tests"
2021-12-05 15:10:54 +00:00
# Don't overwrite settings.DEBUG:
django_debug_mode="keep"
norecursedirs = ".* .git __pycache__ coverage* dist htmlcov volumes"
2020-11-13 21:45:40 +00:00
# sometimes helpfull "addopts" arguments:
# -vv
# --verbose
# --capture=no
# --trace-config
# --full-trace
# -p no:warnings
addopts = """
--import-mode=importlib
--ignore-glob=deployment/django/*
2020-11-13 21:45:40 +00:00
--reuse-db
--nomigrations
--cov=.
--cov-report term-missing
--cov-report html
--cov-report xml
--no-cov-on-fail
--showlocals
--doctest-modules
--failed-first
--last-failed-no-failures all
--new-first
-p no:randomly
"""
2020-11-13 21:38:28 +00:00
[tool.tox]
# https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py39,py38,py37
skip_missing_interpreters = True
[testenv]
2020-11-14 17:53:40 +00:00
passenv = *
2020-11-13 21:38:28 +00:00
whitelist_externals = pytest
commands =
2020-11-14 17:53:40 +00:00
pytest --workers auto --tests-per-worker 1 --pyargs inventory inventory_project
2020-11-13 21:38:28 +00:00
"""