Skip to content

Commit fdffb8a

Browse files
authored
refactor: simplify pyproject.toml structure (#20)
- Removed static version and description fields, transitioning to dynamic versioning and dependency management. - Updated dependencies to be sourced from a requirements file for better maintainability. - Adjusted package data patterns for improved file matching. This change enhances the flexibility and clarity of the project configuration. Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
1 parent b6c577e commit fdffb8a

1 file changed

Lines changed: 9 additions & 43 deletions

File tree

pyproject.toml

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,27 @@
1+
# This pyproject.toml is a wrapper for the linter.
2+
# The main project configuration is located in autoware_system_designer/pyproject.toml.
3+
14
[build-system]
25
requires = ["setuptools>=61.0"]
36
build-backend = "setuptools.build_meta"
47

58
[project]
69
name = "autoware_system_designer"
7-
version = "0.3.0"
8-
description = "Autoware System Designer Package for building and deploying Autoware systems."
9-
readme = "README.md"
10+
dynamic = ["version", "dependencies"]
1011
requires-python = ">=3.8"
11-
license = {text = "Apache License 2.0"}
12-
authors = [
13-
{name = "Taekjin Lee", email = "taekjin.lee@tier4.jp"}
14-
]
15-
classifiers = [
16-
"Development Status :: 4 - Beta",
17-
"Intended Audience :: Developers",
18-
"License :: OSI Approved :: Apache Software License",
19-
"Operating System :: OS Independent",
20-
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.8",
22-
"Programming Language :: Python :: 3.9",
23-
"Programming Language :: Python :: 3.10",
24-
"Programming Language :: Python :: 3.11",
25-
"Topic :: Software Development :: Libraries :: Python Modules",
26-
"Topic :: System :: Distributed Computing",
27-
]
28-
dependencies = [
29-
"PyYAML>=5.4.0",
30-
"Jinja2>=3.0.0",
31-
"pathlib",
32-
"jsonschema>=4.0.0",
33-
]
34-
35-
[project.optional-dependencies]
36-
dev = [
37-
"pytest>=6.0",
38-
"pytest-cov",
39-
"black",
40-
"flake8",
41-
]
4212

4313
[project.scripts]
44-
autoware-system-designer-build = "autoware_system_designer.cli.build:main"
45-
autoware-system-designer-generate = "autoware_system_designer.cli.generate:main"
4614
autoware-system-designer-lint = "autoware_system_designer.linter.run_lint:main"
4715

16+
[tool.setuptools.dynamic]
17+
version = {attr = "autoware_system_designer.__version__"}
18+
dependencies = {file = ["autoware_system_designer/requirements.txt"]}
19+
4820
[tool.setuptools.packages.find]
4921
where = ["autoware_system_designer"]
5022
include = ["autoware_system_designer*"]
5123

5224
[tool.setuptools.package-data]
5325
autoware_system_designer = [
54-
"schema/*.json",
55-
"template/**/*",
56-
"ros2_launcher/templates/**/*",
57-
"visualization/templates/**/*",
58-
"visualization/*.html",
59-
"visualization/js/*.js",
60-
"visualization/css/*.css",
26+
"schema/**/*.json",
6127
]

0 commit comments

Comments
 (0)