1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
# =============================================================================
# PACKAGING: parse_type
# =============================================================================
# SPDX-License-Identifier: MIT
# SEE ALSO:
# * https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
# * https://setuptools-scm.readthedocs.io/en/latest/usage/
# * https://pypi.org/classifiers/
# =============================================================================
# PYTHON3: requires = ["setuptools>=64", "setuptools_scm>=8", "wheel"]
[build-system]
requires = ["setuptools", "setuptools_scm", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "parse_type"
authors = [
{name = "Jens Engel", email = "jenisys@noreply.github.com"},
]
description = "Simplifies to build parse types based on the parse module"
# DISABLED: dynamic = ["version"]
version = "0.6.6"
readme = "README.rst"
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
keywords = ["parse", "parsing"]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"parse >= 1.18.0; python_version >= '3.0'",
"parse >= 1.13.1; python_version <= '2.7'",
"enum34; python_version < '3.4'",
]
[project.urls]
Homepage = "https://github.com/jenisys/parse_type"
Download = "https://pypi.org/project/parse_type/"
Repository = "https://github.com/jenisys/parse_type"
Issues = "https://github.com/jenisys/parse_type/issues/"
[project.optional-dependencies]
develop = [
# -- DISABLED:
# "setuptools >= 64.0.0; python_version >= '3.5'",
# "setuptools < 45.0.0; python_version < '3.5'", # DROP: Python2, Python 3.4 support.
# "setuptools_scm >= 8.0.0; python_version >= '3.7'",
# "setuptools_scm < 8.0.0; python_version < '3.7'",
"setuptools",
"setuptools-scm",
"wheel",
"build >= 0.5.1",
"twine >= 1.13.0",
"coverage >= 4.4",
"pytest < 5.0; python_version < '3.0'", # >= 4.2
"pytest >= 5.0; python_version >= '3.0'",
"pytest-html >= 1.19.0",
"pytest-cov",
"tox >=2.8,<4.0",
"virtualenv < 20.22.0; python_version <= '3.6'", # -- SUPPORT FOR: Python 2.7, Python <= 3.6
"virtualenv >= 20.0.0; python_version > '3.6'",
"ruff; python_version >= '3.7'",
"pylint",
]
docs = [
"Sphinx >=1.6",
"sphinx_bootstrap_theme >= 0.6.0"
]
testing = [
"pytest < 5.0; python_version < '3.0'", # >= 4.2
"pytest >= 5.0; python_version >= '3.0'",
"pytest-html >= 1.19.0",
]
# -- KEEP-UNTIL: Python 2.7 support is removed.
[tool.distutils.bdist_wheel]
universal = true
# -----------------------------------------------------------------------------
# PACAKING TOOL SPECIFIC PARTS:
# -----------------------------------------------------------------------------
[tool.setuptools]
platforms = ["any"]
zip-safe = true
# -- DISABLED:
# [tool.setuptools.dynamic]
# version = {attr = "parse_type._version.version"}
[tool.setuptools.packages.find]
where = ["."]
include = ["parse_type*"]
exclude = ["tests*"]
namespaces = false
# -- SETUPTOOLS-SCM: Generate version info from git-tag(s).
[tool.setuptools_scm]
version_file = "parse_type/_version.py"
# =============================================================================
# OTHER TOOLS
# =============================================================================
[tool.black]
line_length = 100
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.git
| \.venv
| \.netbox
| \.vscode
| configuration
)/
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 100
# -----------------------------------------------------------------------------
# PYLINT:
# -----------------------------------------------------------------------------
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.pylint.format]
max-line-length = "100"
|