Skip to content

Commit

Permalink
Remove setup.py
Browse files Browse the repository at this point in the history
Migrate completely to pyproject.toml
  • Loading branch information
dosaboy committed Feb 16, 2025
1 parent 6d4ccab commit f28c848
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
20 changes: 13 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# This is a templated file and must be kept up-to-date with the original
# from upstream at https://github.com/canonical/se-tooling-ci-common.
[build-system]
requires = ["setuptools", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"

[project]
name = "hotsos"
description = "Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications."
readme = "README.md"
requires-python = ">=3.8"
dynamic = ["version", "dependencies"]

[tool.setuptools.packages.find]
include = ["hotsos*"]
exclude = ["tests*"]

[tool.setuptools-git-versioning]
enabled = true

Expand All @@ -14,13 +27,6 @@ dev_template = "{tag}.post{ccount}"
# Used if untracked files exist or uncommitted changes have been made.
dirty_template = "{tag}.post{ccount}+dirty"

[project]
name = "hotsos"
description = "Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications."
readme = "README.md"
requires-python = ">=3.8"
dynamic = ["version", "dependencies"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

Expand Down
7 changes: 0 additions & 7 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ passenv =
TESTS_LOG_LEVEL_DEBUG
TESTS_LOG_TEST_ARTIFACTS
pyfiles =
{toxinidir}/setup.py {toxinidir}/hotsos {[testenv]unit_tests} {toxinidir}/tools/validation
{toxinidir}/hotsos {[testenv]unit_tests} {toxinidir}/tools/validation
setenv =
HOTSOS_ROOT={toxinidir}/hotsos
PYTHONHASHSEED=0
Expand Down

0 comments on commit f28c848

Please sign in to comment.