Skip to content

Commit

Permalink
fix: make pyproject.toml content viable for pip install (#953)
Browse files Browse the repository at this point in the history
* fix: make pyproject.toml content viable for pip install

* add changelog entry
  • Loading branch information
jsuchan-reef authored Nov 21, 2023
1 parent 0d8f4e6 commit 9d8211c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/952.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix "pip install" by making pyproject.toml viable.
41 changes: 38 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" },
]
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
Expand All @@ -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
Expand Down Expand Up @@ -61,4 +96,4 @@ showcontent = true
[[tool.towncrier.type]]
directory = "infrastructure"
name = "Infrastructure"
showcontent = true
showcontent = true

0 comments on commit 9d8211c

Please sign in to comment.