Skip to content

Commit cd25b52

Browse files
committed
Move project metadata/config to pyproject.toml
We also remove both the setup.cfg and setup.py files as they are not required by newer versions of pip. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent b796818 commit cd25b52

File tree

4 files changed

+19
-35
lines changed

4 files changed

+19
-35
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/cache@v2
2727
with:
2828
path: ~/.cache/pip
29-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
29+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
3030
restore-keys: |
3131
${{ runner.os }}-pip-
3232

pyproject.toml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ requires = [
66
]
77
build-backend = "setuptools.build_meta"
88

9+
10+
[project]
11+
name = "frequenz-channels"
12+
requires-python = ">= 3.8, < 4"
13+
dependencies = [
14+
"watchfiles >= 0.15.0",
15+
]
16+
dynamic = [ "version" ]
17+
18+
[[project.authors]]
19+
name ="Frequenz Energy-as-a-Service GmbH"
20+
21+
[tool.setuptools]
22+
include-package-data = true
23+
24+
[tool.setuptools_scm]
25+
version_scheme = "post-release"
26+
927
[tool.pylint.similarities]
1028
ignore-comments=['yes']
1129
ignore-docstrings=['yes']
@@ -18,9 +36,6 @@ disable = ["too-few-public-methods", "wrong-import-order", "ungrouped-imports"]
1836
[tool.pylint.'DESIGN']
1937
max-attributes=12
2038

21-
[tool.setuptools_scm]
22-
version_scheme = "post-release"
23-
2439
[tool.isort]
2540
profile = "black"
2641
line_length = 88

setup.cfg

Lines changed: 0 additions & 18 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)