From 9d8211c1f801f54e43960958b228e8335e748c6a Mon Sep 17 00:00:00 2001 From: jsuchan-reef <135112713+jsuchan-reef@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:24:51 +0700 Subject: [PATCH] fix: make pyproject.toml content viable for pip install (#953) * fix: make pyproject.toml content viable for pip install * add changelog entry --- changelog.d/952.fixed.md | 1 + pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 changelog.d/952.fixed.md diff --git a/changelog.d/952.fixed.md b/changelog.d/952.fixed.md new file mode 100644 index 000000000..12fe3d370 --- /dev/null +++ b/changelog.d/952.fixed.md @@ -0,0 +1 @@ +Fix "pip install" by making pyproject.toml viable. diff --git a/pyproject.toml b/pyproject.toml index fe78a05b4..72d1c596c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,42 @@ [project] requires-python = ">=3.7" name = "b2" -dynamic = ["version"] +dynamic = ["version", 'dependencies', 'optional-dependencies'] +description = "Command Line Tool for Backblaze B2" +keywords = ["backblaze b2 cloud storage"] +readme = "README.md" +authors = [ + { name = "Backblaze, Inc.", email = "support@backblaze.com" }, +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "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 :: 3.12", + "Topic :: Software Development :: Libraries", +] +license = { text = "MIT" } + + +[tools.setuptools.dynamic.dependecies] +file = ["requirements.txt"] + +[tool.setuptools.dynamic.optional-dependencies] +doc = { file = ["requirements-doc.txt"] } +full = { file = ["requirements-full.txt"] } +license = { file = ["requirements-license.txt"] } + +[project.urls] +Homepage = "https://github.com/Backblaze/B2_Command_Line_Tool" + +[project.scripts] +b2 = "b2.console_tool:main" [tool.ruff] target-version = "py37" # to be replaced by project:requires-python when we will have that section in here @@ -11,7 +46,7 @@ select = ["E", "F", "I", "UP"] # TODO: remove E501 once docstrings are formatted ignore = [ "D100", "D105", "D107", "D200", "D202", "D203", "D205", "D212", "D400", "D401", "D415", - "D101", "D102","D103", "D104", # TODO remove once we have docstring for all public methods + "D101", "D102", "D103", "D104", # TODO remove once we have docstring for all public methods "E501", # TODO: remove E501 once docstrings are formatted ] line-length = 100 @@ -61,4 +96,4 @@ showcontent = true [[tool.towncrier.type]] directory = "infrastructure" name = "Infrastructure" -showcontent = true \ No newline at end of file +showcontent = true