|
1 | 1 | [build-system]
|
2 |
| -requires = ["setuptools >= 46.4.0"] |
3 |
| -build-backend = "setuptools.build_meta" |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "pypi-simple" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "PyPI Simple Repository API client library" |
| 9 | +readme = "README.rst" |
| 10 | +requires-python = ">=3.7" |
| 11 | +license = "MIT" |
| 12 | +license-files = { paths = ["LICENSE"] } |
| 13 | +authors = [ |
| 14 | + { name = "John Thorvald Wodder II", email = "[email protected]" } |
| 15 | +] |
| 16 | + |
| 17 | +keywords = [ |
| 18 | + "pypi", |
| 19 | + "pep503", |
| 20 | + "simple repository api", |
| 21 | + "packages", |
| 22 | + "pip", |
| 23 | +] |
| 24 | + |
| 25 | +classifiers = [ |
| 26 | + "Development Status :: 5 - Production/Stable", |
| 27 | + "Programming Language :: Python :: 3", |
| 28 | + "Programming Language :: Python :: 3 :: Only", |
| 29 | + "Programming Language :: Python :: 3.7", |
| 30 | + "Programming Language :: Python :: 3.8", |
| 31 | + "Programming Language :: Python :: 3.9", |
| 32 | + "Programming Language :: Python :: 3.10", |
| 33 | + "Programming Language :: Python :: 3.11", |
| 34 | + "Programming Language :: Python :: 3.12", |
| 35 | + "Programming Language :: Python :: Implementation :: CPython", |
| 36 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 37 | + "License :: OSI Approved :: MIT License", |
| 38 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 39 | + "Topic :: System :: Software Distribution", |
| 40 | + "Topic :: Text Processing :: Markup :: HTML", |
| 41 | + "Typing :: Typed", |
| 42 | +] |
| 43 | + |
| 44 | +dependencies = [ |
| 45 | + "beautifulsoup4 ~= 4.5", |
| 46 | + "mailbits ~= 0.2", |
| 47 | + "packaging >= 20", |
| 48 | + "pydantic ~= 2.0", |
| 49 | + "requests ~= 2.20", |
| 50 | + "typing_extensions; python_version < '3.8'", |
| 51 | +] |
| 52 | + |
| 53 | +[project.optional-dependencies] |
| 54 | +tqdm = ["tqdm"] |
| 55 | + |
| 56 | +[project.urls] |
| 57 | +"Source Code" = "https://github.com/jwodder/pypi-simple" |
| 58 | +"Bug Tracker" = "https://github.com/jwodder/pypi-simple/issues" |
| 59 | + |
| 60 | +[tool.hatch.version] |
| 61 | +path = "src/pypi_simple/__init__.py" |
| 62 | + |
| 63 | +[tool.hatch.build.targets.sdist] |
| 64 | +include = [ |
| 65 | + "/docs", |
| 66 | + "/src", |
| 67 | + "/test", |
| 68 | + "CHANGELOG.*", |
| 69 | + "CONTRIBUTORS.*", |
| 70 | + "tox.ini", |
| 71 | +] |
| 72 | + |
| 73 | +[tool.hatch.envs.default] |
| 74 | +python = "3" |
| 75 | + |
| 76 | +[tool.mypy] |
| 77 | +allow_incomplete_defs = false |
| 78 | +allow_untyped_defs = false |
| 79 | +ignore_missing_imports = false |
| 80 | +# <https://github.com/python/mypy/issues/7773>: |
| 81 | +no_implicit_optional = true |
| 82 | +implicit_reexport = false |
| 83 | +local_partial_types = true |
| 84 | +pretty = true |
| 85 | +show_error_codes = true |
| 86 | +show_traceback = true |
| 87 | +strict_equality = true |
| 88 | +warn_redundant_casts = true |
| 89 | +warn_return_any = true |
| 90 | +warn_unreachable = true |
| 91 | +plugins = ["pydantic.mypy"] |
| 92 | + |
| 93 | +[tool.pydantic-mypy] |
| 94 | +init_forbid_extra = true |
| 95 | +warn_required_dynamic_aliases = true |
0 commit comments