Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make pyproject.toml content viable for pip install #953

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "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
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