Skip to content
Myr

switch to pyproject.toml (#2438)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents cba52fa, 742a552 · Browse files · 7 files+93 added−118 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+93 added−118 removed

  • tests:+1 added−1 removed
  • other:+92 added−117 removed

7 files+93 added−118 removed

modified:.github/workflows/tests.yaml+1 added-1 removed
modified:tests/test_utils.py+1 added-1 removed
455 unmodified lines
456 user = os.path.expanduser("~")457 assert user in click.utils._expand_args(["~"])458 monkeypatch.setenv("CLICK_TEST", "hello")459 assert "hello" in click.utils._expand_args(["$CLICK_TEST"])460 assert "setup.cfg" in click.utils._expand_args(["*.cfg"])460 assert "pyproject.toml" in click.utils._expand_args(["*.toml"])461 assert os.path.join("docs", "conf.py") in click.utils._expand_args(["**/conf.py"])462 assert "*.not-found" in click.utils._expand_args(["*.not-found"])463 # a bad glob pattern, such as a pytest identifier, should return itself464 assert click.utils._expand_args(["test.py::test_bad"])[0] == "test.py::test_bad"
36 unmodified lines
added:.flake8+25 added
1[flake8]2extend-select =3 # bugbear4 B5 # bugbear opinions6 B97 # implicit str concat8 ISC9extend-ignore =10 # slice notation whitespace, invalid11 E20312 # line length, handled by bugbear B95013 E50114 # bare except, handled by bugbear B00115 E72216 # zip with strict=, requires python >= 3.1017 B90518 # string formatting opinion, B028 renamed to B90719 B02820 B90721# up to 88 allowed by bugbear B95022max-line-length = 8023per-file-ignores =24 # __init__ exports names25 src/click/__init__.py: F401
modified:CHANGES.rst+3 added
3 unmodified lines
4-------------56Unreleased78- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.9 :pr:`326`101112Version 8.1.413-------------1415Unreleased
1047 unmodified lines
added:pyproject.toml+63 added
deleted:setup.cfg-107 removed
1[metadata]2name = click3version = attr: click.__version__4url = https://palletsprojects.com/p/click/5project_urls =6 Donate = https://palletsprojects.com/donate7 Documentation = https://click.palletsprojects.com/8 Changes = https://click.palletsprojects.com/changes/9 Source Code = https://github.com/pallets/click/10 Issue Tracker = https://github.com/pallets/click/issues/11 Twitter = https://twitter.com/PalletsTeam12 Chat = https://discord.gg/pallets13license = BSD-3-Clause14license_files = LICENSE.rst15author = Armin Ronacher16author_email = armin.ronacher@active-4.com17maintainer = Pallets18maintainer_email = contact@palletsprojects.com19description = Composable command line interface toolkit20long_description = file: README.rst21long_description_content_type = text/x-rst22classifiers =23 Development Status :: 5 - Production/Stable24 Intended Audience :: Developers25 License :: OSI Approved :: BSD License26 Operating System :: OS Independent27 Programming Language :: Python2829[options]30packages = find:31package_dir = = src32include_package_data = True33python_requires = >= 3.734# Dependencies are in setup.py for GitHub's dependency graph.3536[options.packages.find]37where = src3839[tool:pytest]40testpaths = tests41filterwarnings =42 error4344[coverage:run]45branch = True46source =47 click48 tests4950[coverage:paths]51source =52 src53 */site-packages5455[flake8]56# B = bugbear57# E = pycodestyle errors58# F = flake8 pyflakes59# W = pycodestyle warnings60# B9 = bugbear opinions61# ISC = implicit str concat62select = B, E, F, W, B9, ISC63ignore =64 # slice notation whitespace, invalid65 E20366 # line length, handled by bugbear B95067 E50168 # bare except, handled by bugbear B00169 E72270 # bin op line break, invalid71 W50372 # zip with strict=, requires python >= 3.1073 B90574 # string formatting opinion, B028 renamed to B90775 B02876 B90777# up to 88 allowed by bugbear B95078max-line-length = 8079per-file-ignores =80 # __init__ exports names81 src/click/__init__.py: F4018283[mypy]84files = src/click85python_version = 3.786show_error_codes = True87disallow_subclassing_any = True88disallow_untyped_calls = True89disallow_untyped_defs = True90disallow_incomplete_defs = True91disallow_any_generics = True92check_untyped_defs = True93no_implicit_optional = True94local_partial_types = True95no_implicit_reexport = True96strict_equality = True97warn_redundant_casts = True98warn_unused_configs = True99warn_unused_ignores = True100warn_return_any = True101warn_unreachable = True102103[mypy-colorama.*]104ignore_missing_imports = True105106[mypy-importlib_metadata.*]107ignore_missing_imports = True
deleted:setup.py-9 removed
1from setuptools import setup23setup(4 name="click",5 install_requires=[6 "colorama; platform_system == 'Windows'",7 "importlib-metadata; python_version < '3.8'",8 ],9)