-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make pyproject.toml content viable for pip install (#953)
* fix: make pyproject.toml content viable for pip install * add changelog entry
- Loading branch information
1 parent
0d8f4e6
commit 9d8211c
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix "pip install" by making pyproject.toml viable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
showcontent = true |