|
1 | | -[tool.black] |
2 | | -line-length = 100 |
3 | | - |
4 | | -[build-system] |
5 | | -requires = ["setuptools"] |
6 | | -build-backend = "setuptools.build_meta" |
7 | 1 |
|
8 | 2 | [tool.semantic_release] |
9 | | -version_variables = ["setup.py:__version__"] |
10 | | -assets = ["dist/*.whl"] |
11 | | -commit_message = "[release] {version}\n\nAutomatically generated by python-semantic-release" |
12 | | -commit_parser = "angular" |
13 | | -logging_use_named_masks = false |
14 | | -major_on_zero = true |
15 | | -tag_format = "v{version}" |
16 | | - |
17 | | -[tool.semantic_release.branches.main] |
18 | | -match = "(main|master)" |
19 | | -prerelease_token = "rc" |
20 | | -prerelease = false |
21 | | - |
22 | | -[tool.semantic_release.changelog] |
23 | | -template_dir = "templates" |
| 3 | +version_variable = "aps2mqtt/__init__.py:__version__" |
| 4 | +branch = "main" |
24 | 5 | changelog_file = "CHANGELOG.md" |
25 | | -exclude_commit_patterns = [] |
26 | | - |
27 | | -[tool.semantic_release.changelog.environment] |
28 | | -block_start_string = "{%" |
29 | | -block_end_string = "%}" |
30 | | -variable_start_string = "{{" |
31 | | -variable_end_string = "}}" |
32 | | -comment_start_string = "{#" |
33 | | -comment_end_string = "#}" |
34 | | -trim_blocks = false |
35 | | -lstrip_blocks = false |
36 | | -newline_sequence = "\n" |
37 | | -keep_trailing_newline = false |
38 | | -extensions = [] |
39 | | -autoescape = true |
40 | | - |
41 | | -[tool.semantic_release.commit_author] |
42 | | -env = "GIT_COMMIT_AUTHOR" |
43 | | -default = "semantic-release <semantic-release>" |
44 | | - |
45 | | -[tool.semantic_release.commit_parser_options] |
46 | | -allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"] |
47 | | -minor_tags = ["feat"] |
48 | | -patch_tags = ["fix", "perf"] |
49 | | - |
50 | | -[tool.semantic_release.remote] |
51 | | -name = "origin" |
52 | | -type = "github" |
53 | | -ignore_token_for_push = false |
54 | | - |
55 | | -[tool.semantic_release.remote.token] |
56 | | -env = "GITHUB_TOKEN" |
57 | | - |
58 | | -[tool.semantic_release.publish] |
59 | | -dist_glob_patterns = ["dist/*"] |
60 | | -upload_to_vcs_release = true |
61 | | - |
62 | | -[tool.semantic_release.publish.docker] |
63 | | -enabled = true |
64 | | -match_branch = "main" |
65 | | -registry = "docker.io" |
66 | | -image = "aps2mqtt" |
67 | | -user = "${{ secrets.DOCKERHUB_USERNAME }}" |
68 | | - |
| 6 | +build_command = "pip install build && python -m build" |
| 7 | +dist_path = "dist/" |
| 8 | +upload_to_pypi = "true" |
| 9 | +upload_to_release = "true" |
| 10 | + |
| 11 | +[tool.poetry] |
| 12 | +name = "aps2mqtt" |
| 13 | +version = "1.2.0" |
| 14 | +description = "Publish APS ECU data to MQTT broker" |
| 15 | +authors = ["Florian Ligneul <contact@florian-ligneul.fr>"] |
| 16 | +license = "GPLv3" |
| 17 | +readme = "README.md" |
| 18 | +packages = [{include = "aps2mqtt"}] |
| 19 | + |
| 20 | +[tool.poetry.dependencies] |
| 21 | +python = "^3.9" |
| 22 | +requests = "^2.32.4" |
| 23 | +paho-mqtt = "^1.6.1" |
| 24 | +pyyaml = "^6.0.2" |
| 25 | +str2bool = "^1.1" |
| 26 | +suntime = "^1.2.5" |
| 27 | +python-semantic-release = "^10.2.0" |
| 28 | + |
| 29 | +[tool.poetry.group.test.dependencies] |
| 30 | +pytest = "^8.4.1" |
| 31 | + |
| 32 | +[tool.poetry.group.dev.dependencies] |
| 33 | +pylint = "^3.3.7" |
| 34 | +pylint-exit = "^1.2.0" |
69 | 35 |
|
| 36 | +[build-system] |
| 37 | +requires = ["poetry-core"] |
| 38 | +build-backend = "poetry.core.masonry.api" |
0 commit comments