Skip to content

Commit 305039f

Browse files
committed
Switching to hatchling build; Alignment withc GitHub Acting linting.
1 parent 42c5df0 commit 305039f

File tree

7 files changed

+34
-42
lines changed

7 files changed

+34
-42
lines changed

.github/workflows/pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12-
- name: Set up Python 3.9
12+
- name: Set up Python 3.10
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: 3.9
15+
python-version: 3.10
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.9'
25+
python-version: '3.10'
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip

pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ disable=
6868
too-many-instance-attributes,
6969
too-many-arguments,
7070
too-few-public-methods,
71+
too-many-positional-arguments,
7172
useless-object-inheritance,
7273
redefined-builtin,
7374
missing-module-docstring,

pyproject.toml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
11
[build-system]
22
requires = [
3-
"setuptools",
4-
"wheel",
5-
"setuptools_scm"
3+
"hatchling",
4+
"hatch-vcs",
65
]
7-
build-backend = "setuptools.build_meta"
6+
build-backend = "hatchling.build"
87

9-
[tool.setuptools_scm]
8+
[project]
9+
name = "c8y_api"
10+
dynamic = ["version"]
11+
authors = [{name="Christoph Souris", email="christoph.souris@gmail.com"}]
12+
description = "Python microservice and application client for the Cumulocity REST API"
13+
readme = "README.md"
14+
license = {file = "LICENSE"}
15+
requires-python = ">=3.10"
16+
classifiers = [
17+
"Programming Language :: Python :: 3",
18+
"Development Status :: 4 - Beta",
19+
"License :: OSI Approved :: Apache Software License",
20+
"Operating System :: OS Independent",
21+
"Topic :: Software Development :: Libraries :: Python Modules",
22+
]
23+
24+
[project.urls]
25+
Homepage = "https://github.com/SoftwareAG/cumulocity-python-api"
26+
Source = "https://github.com/SoftwareAG/cumulocity-python-api"
27+
Issues = "https://github.com/SoftwareAG/cumulocity-python-api/issues"
28+
Documentation = "https://cumulocity-python-api.readthedocs.io/en/latest/"
29+
30+
[tool.hatch.version]
31+
source = "vcs"

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ Flask
1616
websockets
1717
pandas
1818
PyOTP
19+
hatchling
20+
hatch-vcs

setup.cfg

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

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def lint(c, scope='all'):
2828
"""Run PyLint."""
2929
if scope == 'all':
3030
scope = 'c8y_api c8y_tk tests integration_tests samples'
31-
c.run(f'pylint {scope}')
31+
c.run(f'pylint --rcfile pylintrc --fail-under=9 {scope}')
3232

3333

3434
@task

0 commit comments

Comments
 (0)