From 56a157a68c8cd8bf9a1caa1000af59543ec883a4 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Thu, 1 Sep 2022 08:47:30 -0500 Subject: [PATCH] init --- LICENSE.txt | 9 ++++ README.md | 21 ++++++++ hatch_version_action_example/__about__.py | 4 ++ hatch_version_action_example/__init__.py | 3 ++ pyproject.toml | 61 +++++++++++++++++++++++ tests/__init__.py | 3 ++ 6 files changed, 101 insertions(+) create mode 100644 LICENSE.txt create mode 100644 README.md create mode 100644 hatch_version_action_example/__about__.py create mode 100644 hatch_version_action_example/__init__.py create mode 100644 pyproject.toml create mode 100644 tests/__init__.py diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..082d0aa --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2022-present Waylon S. Walker + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..86c47dc --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Hatch Version Action Example + +[![PyPI - Version](https://img.shields.io/pypi/v/hatch-version-action-example.svg)](https://pypi.org/project/hatch-version-action-example) +[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatch-version-action-example.svg)](https://pypi.org/project/hatch-version-action-example) + +----- + +**Table of Contents** + +- [Installation](#installation) +- [License](#license) + +## Installation + +```console +pip install hatch-version-action-example +``` + +## License + +`hatch-version-action-example` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license. diff --git a/hatch_version_action_example/__about__.py b/hatch_version_action_example/__about__.py new file mode 100644 index 0000000..fe60eb5 --- /dev/null +++ b/hatch_version_action_example/__about__.py @@ -0,0 +1,4 @@ +# SPDX-FileCopyrightText: 2022-present Waylon S. Walker +# +# SPDX-License-Identifier: MIT +__version__ = '0.0.1' diff --git a/hatch_version_action_example/__init__.py b/hatch_version_action_example/__init__.py new file mode 100644 index 0000000..8ecc75f --- /dev/null +++ b/hatch_version_action_example/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2022-present Waylon S. Walker +# +# SPDX-License-Identifier: MIT diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..054c164 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,61 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "hatch-version-action-example" +description = 'An example project using hatch-version-action' +readme = "README.md" +requires-python = ">=3.7" +license = "MIT" +keywords = [] +authors = [ + { name = "Waylon S. Walker", email = "waylon@waylonwalker.com" }, +] +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", +] +dependencies = [] +dynamic = ["version"] + +[project.urls] +Documentation = "https://github.com/unknown/hatch-version-action-example#readme" +Issues = "https://github.com/unknown/hatch-version-action-example/issues" +Source = "https://github.com/unknown/hatch-version-action-example" + +[tool.hatch.version] +path = "hatch_version_action_example/__about__.py" + +[tool.hatch.envs.default] +dependencies = [ + "pytest", + "pytest-cov", +] +[tool.hatch.envs.default.scripts] +cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_version_action_example --cov=tests" +no-cov = "cov --no-cov" + +[[tool.hatch.envs.test.matrix]] +python = ["37", "38", "39", "310", "311"] + +[tool.coverage.run] +branch = true +parallel = true +omit = [ + "hatch_version_action_example/__about__.py", +] + +[tool.coverage.report] +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..8ecc75f --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2022-present Waylon S. Walker +# +# SPDX-License-Identifier: MIT