kopia lustrzana https://github.com/jedie/PyInventory
				
				
				
			
		
			
				
	
	
		
			172 wiersze
		
	
	
		
			5.5 KiB
		
	
	
	
		
			TOML
		
	
	
			
		
		
	
	
			172 wiersze
		
	
	
		
			5.5 KiB
		
	
	
	
		
			TOML
		
	
	
| [tool.poetry]
 | |
| name = "PyInventory"
 | |
| version = "0.10.0"
 | |
| description = "Web based management to catalog things including state and location etc. using Python/Django."
 | |
| authors = ["JensDiemer <git@jensdiemer.de>"]
 | |
| homepage = "https://github.com/jedie/PyInventory"
 | |
| packages = [
 | |
|     { include = "inventory", from = "src" },
 | |
|     { include = "inventory_project", from = "src" },
 | |
| ]
 | |
| keywords=['inventory','django']
 | |
| classifiers = [
 | |
|     # http://pypi.python.org/pypi?%3Aaction=list_classifiers
 | |
|     "Development Status :: 4 - Beta",
 | |
|     #"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+)",
 | |
|     "Programming Language :: Python :: 3.8",
 | |
|     "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",
 | |
| ]
 | |
| include = ['AUTHORS', 'LICENSE', 'README.creole']
 | |
| 
 | |
| # Will be generated from README.creole with: 'poetry run update_rst_readme'
 | |
| readme='README.rst'
 | |
| 
 | |
| [tool.poetry.dependencies]
 | |
| python = ">=3.7,<4.0.0"
 | |
| colorlog = "*"  # https://github.com/borntyping/python-colorlog
 | |
| gunicorn = "*"  # https://github.com/benoimyproject.wsgitc/gunicorn
 | |
| #
 | |
| # Stay with Django 3.1.x because of: https://github.com/radiac/django-tagulous/issues/144
 | |
| django = "<3.2"
 | |
| 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.48.2"  # https://github.com/jedie/django-tools/
 | |
| django-reversion-compare = "*"  # https://github.com/jedie/django-reversion-compare/
 | |
| django-ckeditor = "*"  # https://github.com/django-ckeditor/django-ckeditor
 | |
| bx_py_utils = "*"  # https://github.com/boxine/bx_py_utils
 | |
| bx_django_utils = "*"  # https://github.com/boxine/bx_django_utils
 | |
| django-tagulous = "*"  # https://github.com/radiac/django-tagulous
 | |
| django-admin-sortable2 = "*"  # https://github.com/jrief/django-admin-sortable2
 | |
| django-axes = "*"  # https://github.com/jazzband/django-axes
 | |
| requests = "*"  # https://github.com/psf/requests
 | |
| pillow = "*"
 | |
| 
 | |
| docker-compose = { version = "*", optional = true }  # install via: poetry install --extras "docker"
 | |
| 
 | |
| # TODO: Update psycopg2 after Django >2.2 update
 | |
| # See: https://github.com/psycopg/psycopg2/issues/1293
 | |
| psycopg2-binary = { version = "<2.9", optional = true }  # install via: poetry install --extras "postgres-binary"
 | |
| psycopg2 = { version = "<2.9", optional = true }  # install via: poetry install --extras "psycopg2-source"
 | |
| 
 | |
| 
 | |
| [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
 | |
| python-creole = "*"  # https://github.com/jedie/python-creole
 | |
| cmd2_ext_test = "*"
 | |
| tox = "*"
 | |
| pytest = "*"
 | |
| pytest-randomly = "*"
 | |
| pytest-cov = "*"
 | |
| pytest-django = "*"
 | |
| pytest-parallel = "*"
 | |
| selenium = "*"
 | |
| coveralls = "*"
 | |
| isort = "*"
 | |
| flake8 = "*"
 | |
| flynt = "*"
 | |
| autopep8 = "*"
 | |
| pyupgrade = "*"
 | |
| model_bakery = "*"  # https://github.com/model-bakers/model_bakery
 | |
| beautifulsoup4 = "*"
 | |
| lxml = "*"
 | |
| 
 | |
| [tool.poetry.scripts]
 | |
| devshell = 'inventory_project.dev_shell:devshell_cmdloop'
 | |
| run_testserver = 'inventory_project.manage:start_test_server'
 | |
| 
 | |
| 
 | |
| [build-system]
 | |
| requires = ["poetry>=0.12"]
 | |
| build-backend = "poetry.masonry.api"
 | |
| 
 | |
| 
 | |
| [tool.autopep8]
 | |
| # https://github.com/hhatto/autopep8#pyprojecttoml
 | |
| max_line_length = 120
 | |
| exclude=".*,*/htmlcov/*,*/migrations/*,*/volumes/*"
 | |
| 
 | |
| 
 | |
| [tool.isort]
 | |
| # https://pycqa.github.io/isort/docs/configuration/config_files/#pyprojecttoml-preferred-format
 | |
| atomic=true
 | |
| line_length=120
 | |
| case_sensitive=false
 | |
| skip_glob=[".*", "*/htmlcov/*","*/migrations/*","*/volumes/*"]
 | |
| 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
 | |
| 
 | |
| 
 | |
| [tool.coverage.run]
 | |
| omit = [".*"]
 | |
| 
 | |
| 
 | |
| [tool.pytest.ini_options]
 | |
| # https://docs.pytest.org/en/latest/customize.html#pyproject-toml
 | |
| minversion = "6.0"
 | |
| DJANGO_SETTINGS_MODULE="inventory_project.settings.tests"
 | |
| norecursedirs = ".* .git __pycache__ coverage* dist htmlcov volumes"
 | |
| # sometimes helpfull "addopts" arguments:
 | |
| #    -vv
 | |
| #    --verbose
 | |
| #    --capture=no
 | |
| #    --trace-config
 | |
| #    --full-trace
 | |
| #    -p no:warnings
 | |
| addopts = """
 | |
|     --import-mode=importlib
 | |
|     --ignore-glob=deployment/django/*
 | |
|     --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
 | |
| """
 | |
| 
 | |
| 
 | |
| [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]
 | |
| passenv = *
 | |
| whitelist_externals = pytest
 | |
| commands =
 | |
|     pytest --workers auto --tests-per-worker 1 --pyargs inventory inventory_project
 | |
| """
 |