-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- since the project doesnt have a standard folder structure, the main module needs to have some paths appended so that the imports work - add the necessary deps to build a distribution package - this commit also comes with a new push to pypi https://pypi.org/project/ocptv-ctam/ Signed-off-by: mimir-d <[email protected]>
- Loading branch information
Showing
6 changed files
with
98 additions
and
16 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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
|
||
*.pyc | ||
/.vscode | ||
/workspace/TestRuns/* | ||
/workspace/* | ||
docs/build/* | ||
/.vs | ||
/bin | ||
/venv | ||
/venv | ||
/env | ||
*.egg-info | ||
/dist |
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 @@ | ||
graft json_spec | ||
global-exclude *.py[cod] | ||
include docs/*.md |
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 @@ | ||
__version__ = "0.0.1" |
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
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
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,67 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ocptv-ctam" | ||
version = "0.0.1" | ||
description = "Compliance Tool for Accelerator Management" | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "OCP Test & Validation", email = "[email protected]" }, | ||
] | ||
license = { file = "LICENSE" } | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: System :: Hardware", | ||
] | ||
keywords = ["ocp", "ocptv", "accelerator", "compliance"] | ||
dependencies = [ | ||
"ocptv", | ||
"prettytable", | ||
"redfish", | ||
"requests", | ||
"requests-ntlm", | ||
"requests-toolbelt", | ||
"requests-unixsocket", | ||
"alive_progress>=3.1.4", | ||
] | ||
requires-python = ">=3.10" | ||
|
||
[project.optional-dependencies] | ||
dev = ["black", "bumpver", "isort"] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/opencomputeproject/ocp-diag-ctam" | ||
"Bug reports" = "https://github.com/opencomputeproject/ocp-diag-ctam/issues" | ||
"Source" = "https://github.com/opencomputeproject/ocp-diag-ctam" | ||
|
||
[project.scripts] | ||
ocptv_ctam = "ocptv_ctam.ctam:main" | ||
|
||
[tool.setuptools] | ||
packages = ["ocptv_ctam"] | ||
|
||
[tool.setuptools.package-dir] | ||
ocptv_ctam = "ctam" | ||
|
||
[tool.bumpver] | ||
current_version = "0.0.1" | ||
version_pattern = "MAJOR.MINOR.PATCH" | ||
commit_message = "bump version {old_version} -> {new_version}" | ||
commit = true | ||
tag = false | ||
push = false | ||
|
||
[tool.bumpver.file_patterns] | ||
"pyproject.toml" = ['^current_version = "{version}"', '^version = "{version}"'] | ||
"ctam/__init__.py" = ['^__version__ = "{version}"'] | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
||
[tool.isort] | ||
profile = "black" |