|
| 1 | +[build-system] |
| 2 | +requires = [ |
| 3 | + "hatchling>=1.8.0", |
| 4 | +] |
| 5 | +build-backend = "hatchling.build" |
| 6 | + |
| 7 | +[project] |
| 8 | +name = "hatch-semver" |
| 9 | +description = "Hatch plugin for semver versioning scheme" |
| 10 | +readme = "README.md" |
| 11 | +license = "MIT" |
| 12 | +requires-python = ">=3.9" |
| 13 | +authors = [ |
| 14 | + { name = "Sven Siegmund", email = "[email protected]" }, |
| 15 | +] |
| 16 | + |
| 17 | +keywords = [ |
| 18 | + "hatch", |
| 19 | + "plugin", |
| 20 | + "version", |
| 21 | + "development", |
| 22 | + "versioning", |
| 23 | +] |
| 24 | + |
| 25 | +classifiers = [ |
| 26 | + "Development Status :: 3 - Alpha", |
| 27 | + #"Development Status :: 4 - Beta", |
| 28 | + #"Development Status :: 5 - Production/Stable", |
| 29 | + "Intended Audience :: Developers", |
| 30 | + "Topic :: Software Development", |
| 31 | + "Framework :: Hatch", |
| 32 | + "License :: OSI Approved :: MIT License", |
| 33 | + "Natural Language :: English", |
| 34 | + "Programming Language :: Python :: 3.9", |
| 35 | + "Operating System :: OS Independent", |
| 36 | + "Operating System :: Microsoft :: Windows", |
| 37 | + "Operating System :: POSIX :: Linux", |
| 38 | + "Operating System :: MacOS :: MacOS X", |
| 39 | +] |
| 40 | + |
| 41 | +dependencies = [ |
| 42 | + "hatchling", |
| 43 | + "semver", |
| 44 | +] |
| 45 | + |
| 46 | +dynamic = [ |
| 47 | + "version", |
| 48 | +] |
| 49 | + |
| 50 | +[project.urls] |
| 51 | +Homepage = "https://github.com/Nagidal/hatch-semver" |
| 52 | +Issues = "https://github.com/Nagidal/hatch-semver/issues" |
| 53 | + |
| 54 | +[project.entry-points.hatch] |
| 55 | +semver = "hatch_semver.hooks" |
| 56 | + |
| 57 | +[project.scripts] |
| 58 | + |
| 59 | +[tool.hatch.version] |
| 60 | +path = "src/hatch-semver/__about__.py" |
| 61 | + |
| 62 | +[tool.hatch.envs.default] |
| 63 | +dependencies = [ |
| 64 | + "pytest", |
| 65 | + "pytest-cov", |
| 66 | + "wheel", |
| 67 | + "towncrier", |
| 68 | +] |
| 69 | + |
| 70 | +[tool.hatch.envs.default.scripts] |
| 71 | +cov = "pytest -v --cov-report=term-missing --cov-config=pyproject.toml --cov=src/hatch-semver --cov=tests" |
| 72 | +no-cov = "cov --no-cov" |
| 73 | + |
| 74 | +[tool.hatch.envs.style] |
| 75 | +dependencies = [ |
| 76 | + "black", |
| 77 | + "isort", |
| 78 | +] |
| 79 | + |
| 80 | +[tool.hatch.envs.style.scripts] |
| 81 | +fmt = [ |
| 82 | + "isort .", |
| 83 | + "black .", |
| 84 | +] |
| 85 | + |
| 86 | +[tool.hatch.envs.docs] |
| 87 | +dependencies = [ |
| 88 | + "pdoc3" |
| 89 | +] |
| 90 | + |
| 91 | +[tool.hatch.envs.docs.scripts] |
| 92 | +build = "pdoc --html --output-dir docs hatch-semver" |
| 93 | +serve = "pdoc --http : hatch-semver" |
| 94 | + |
| 95 | +[[tool.hatch.envs.test.matrix]] |
| 96 | +python = ["39", "310"] |
| 97 | + |
| 98 | +[tool.coverage.run] |
| 99 | +branch = true |
| 100 | +parallel = true |
| 101 | +omit = [ |
| 102 | + #"src/hatch-semver/__about__.py", |
| 103 | +] |
| 104 | + |
| 105 | +[tool.coverage.report] |
| 106 | +exclude_lines = [ |
| 107 | + "no cov", |
| 108 | + "if __name__ == .__main__.:", |
| 109 | + "if TYPE_CHECKING:", |
| 110 | +] |
| 111 | + |
| 112 | +[tool.black] |
| 113 | + line-length = 102 |
| 114 | + |
| 115 | +[tool.isort] |
| 116 | + line-length = 102 |
| 117 | + |
| 118 | +[tool.towncrier] |
| 119 | +name = "hatch-semver" |
| 120 | +package = "hatch-semver" |
| 121 | +package_dir = "src" |
| 122 | +directory = "changelog.d" |
| 123 | +filename = "CHANGELOG.md" |
| 124 | +start_string = "<!-- towncrier release notes start -->\n" |
| 125 | +underlines = ["", "", ""] |
| 126 | +template = "changelog.d/changelog_template.jinja" |
| 127 | +title_format = "## [{version}](https://github.com/Nagidal/hatch-semver/tree/{version}) - {project_date}" |
| 128 | +issue_format = "[#{issue}](https://github.com/Nagidal/hatch-semver/issues/{issue})" |
| 129 | +orphan_prefix = "+" |
| 130 | + |
| 131 | +[tool.towncrier.fragment.doc] |
| 132 | +name = "Documentation" |
| 133 | +showcontent = true |
| 134 | + |
| 135 | +[tool.towncrier.fragment.feature] |
| 136 | +name = "New Features" |
| 137 | +showcontent = true |
| 138 | + |
| 139 | +[tool.towncrier.fragment.improved] |
| 140 | +name = "Improvements" |
| 141 | +showcontent = true |
| 142 | + |
| 143 | +[tool.towncrier.fragment.fixed] |
| 144 | +name = "Bugfixes" |
| 145 | +showcontent = true |
| 146 | + |
| 147 | +[tool.towncrier.fragment.detail] |
| 148 | +name = "Development Details" |
| 149 | +showcontent = true |
0 commit comments