|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "InteractiveHtmlBom" |
| 7 | +dynamic = ["version"] |
| 8 | +description = 'Generate Interactive Html BOM for your electronics projects' |
| 9 | +readme = "README.md" |
| 10 | +requires-python = ">=3.8" |
| 11 | +license = "MIT" |
| 12 | +keywords = ["ibom", "KiCad", "Eagle", "EasyEDA"] |
| 13 | +authors = [{ name = "qu1ck", email = "[email protected]" }] |
| 14 | +classifiers = [ |
| 15 | + "Development Status :: 5 - Production/Stable", |
| 16 | + "Programming Language :: Python :: 3", |
| 17 | + "License :: OSI Approved :: MIT License", |
| 18 | + "Operating System :: OS Independent", |
| 19 | + "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", |
| 20 | + "Topic :: Utilities", |
| 21 | +] |
| 22 | +dependencies = [ |
| 23 | + "wxpython>=4.0", |
| 24 | + "jsonschema>=4.1", |
| 25 | +] |
| 26 | + |
| 27 | +[project.scripts] |
| 28 | +generate_interactive_bom = "InteractiveHtmlBom.generate_interactive_bom:main" |
| 29 | + |
| 30 | +[project.urls] |
| 31 | +Documentation = "https://github.com/openscopeproject/InteractiveHtmlBom/wiki" |
| 32 | +Issues = "https://github.com/openscopeproject/InteractiveHtmlBom/issues" |
| 33 | +Source = "https://github.com/openscopeproject/InteractiveHtmlBom" |
| 34 | + |
| 35 | +[tool.hatch.version] |
| 36 | +path = "InteractiveHtmlBom/version.py" |
| 37 | +pattern = "LAST_TAG = 'v(?P<version>[^']+)'" |
| 38 | + |
| 39 | +[tool.hatch.envs.default] |
| 40 | +dependencies = ["coverage[toml]>=6.5", "pytest"] |
| 41 | +[tool.hatch.envs.default.scripts] |
| 42 | +test = "pytest {args:tests}" |
| 43 | +test-cov = "coverage run -m pytest {args:tests}" |
| 44 | +cov-report = ["- coverage combine", "coverage report"] |
| 45 | +cov = ["test-cov", "cov-report"] |
| 46 | + |
| 47 | +[[tool.hatch.envs.all.matrix]] |
| 48 | +python = ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 49 | + |
| 50 | +[tool.hatch.envs.types] |
| 51 | +dependencies = ["mypy>=1.0.0"] |
| 52 | +[tool.hatch.envs.types.scripts] |
| 53 | +check = "mypy --install-types --non-interactive {args:InteractiveHtmlBom}" |
| 54 | + |
| 55 | +[tool.coverage.run] |
| 56 | +source_pkgs = ["InteractiveHtmlBom", "tests"] |
| 57 | +branch = true |
| 58 | +parallel = true |
| 59 | +omit = ["src/InteractiveHtmlBom/__about__.py"] |
| 60 | + |
| 61 | +[tool.coverage.paths] |
| 62 | +InteractiveHtmlBom = [ |
| 63 | + "InteractiveHtmlBom", |
| 64 | +] |
| 65 | +tests = ["tests", "*/InteractiveHtmlBom/tests"] |
| 66 | + |
| 67 | +[tool.coverage.report] |
| 68 | +exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] |
0 commit comments