-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CP-41819: Start py3 migration with config for isort and apply isort
- Add .pyproject.toml with configuration for isort and line length - Add setup.cfg, enable `pip install .` with setuptools_scm - Apply isort changes as configured Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
- Loading branch information
1 parent
b9c661f
commit 7c5552f
Showing
3 changed files
with
83 additions
and
17 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,62 @@ | ||
[project] | ||
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/ | ||
name = "xenserver-status-report" | ||
dynamic = ["version"] | ||
description = "Xenserver Status Report" | ||
requires-python = "2.7" | ||
license = "LGPL-2.1-only" | ||
keywords = ["xenserver", "xen-project"] | ||
authors = [ | ||
{name = "Ewan Mellor"}, | ||
{name = "Simon Rowe"}, | ||
] | ||
maintainers = [ | ||
{name = "Ashwin H"}, | ||
{name = "Bernhard Kaindl"}, | ||
{name = "Pau Ruiz Safont"}, | ||
{name = "Ross Lagerwall"}, | ||
] | ||
readme = "README.md" | ||
classifiers = [ | ||
"Environment :: Console", | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", | ||
"Operating System :: POSIX :: Linux :: XenServer/XCP-ng Dom0", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: System :: Logging", | ||
"Topic :: System :: Monitoring", | ||
] | ||
dependencies = [ | ||
"defusedxml", | ||
"six", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest<7", | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/xenserver/status-report/" | ||
repository = "https://github.com/xenserver/status-report/" | ||
|
||
[build-system] | ||
requires = ["setuptools>=42", "setuptools_scm[toml]"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
# This section is needed (can be empty) for setuptools_scm to be used by | ||
# "pip2 install ." in order to get the version number from the git repo. | ||
|
||
[tool.black] | ||
line-length = 100 | ||
|
||
[tool.isort] | ||
line_length = 100 | ||
py_version = 27 | ||
profile = "black" | ||
combine_as_imports = true | ||
ensure_newline_before_comments = false | ||
# extra standard libraries of Py2: | ||
extra_standard_library = "commands" |
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,3 @@ | ||
# Minimum setup.cfg needed for "python2 -m pip install ." to get the name: | ||
[metadata] | ||
name = xenserver-status-report |
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