Compare commits

..

19 Commits

Author SHA1 Message Date
2c864fef59 test(meta): Play with pytest tests 2022-05-02 02:00:20 +02:00
33bbf42b27 build(meta): Add 'test' as a valid Conventional Commits commit type 2022-05-02 01:59:49 +02:00
3d604284a5 refactor(meta): Add .rst extension to news fragment file for more clarity 2022-05-02 01:55:53 +02:00
3fd5590158 build(meta): Fix pytest functions name pattern 2022-05-02 01:38:46 +02:00
9175921b0f build(meta): Make pytest dirs into packages
Per pytest's "Good Integration Practices" (https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html) make all test directories into packages with '__init__.py' files
2022-05-02 01:36:07 +02:00
b2e8c8bd7a refactor(meta): Move pytest config into 'pyproject.toml' 2022-05-02 01:03:49 +02:00
ccfb7054e1 refactor(meta): Typo 2022-05-02 00:23:26 +02:00
8bacdadd3a refactor(meta): Tighten Conventional commits scope docs 2022-05-02 00:22:44 +02:00
3510c3000d build(meta): Define currently accepted Conventional Commits scopes, at the moment only 'meta' 2022-05-02 00:21:37 +02:00
9f14b3da56 build(meta): Add another noteworthy news item 2022-05-02 00:13:24 +02:00
59d2dcf1fc build(meta): semver version string in kodi-timekeeper __init__.py is no longer needed, now lives in pyproject.toml 2022-05-02 00:12:27 +02:00
51a1ccaf8a build(meta): Add 'refactor' as a valid Conventional Commits commit type 2022-05-02 00:11:27 +02:00
df6580c800 build(meta): Get semver version string from within pyproject.toml 2022-05-02 00:08:47 +02:00
d78111ad90 build(meta): Pin build tools versions 2022-05-02 00:08:06 +02:00
048eee5bc8 build(meta): Add pyproject.toml project definition 2022-05-02 00:04:48 +02:00
semantic-release
8b289652e5 0.1.0
Automatically generated by python-semantic-release
2022-05-01 04:34:53 +02:00
bce59b6b15 build(meta): Play with auto-versioning 2022-05-01 04:24:23 +02:00
e0f4ced1ad build(meta): Set custom towncrier news topics 2022-05-01 04:23:28 +02:00
08d31d9965 build(meta): define newsfragments location 2022-05-01 04:21:38 +02:00
8 changed files with 82 additions and 22 deletions

View File

@ -1,3 +1,7 @@
# kodi-timekeeper # kodi-timekeeper
An approach to having kids use a Kodi media center instance: manage session use and keep track of time spent and available budget. An approach to having kids use a Kodi media center instance: manage session use and keep track of time spent and available budget.
## Valid Conventional Commits scopes
* `meta`: Affects the Git project's structure such as a `pyproject.toml` change or new directories

View File

@ -1 +1,2 @@
Add rudimentary versioning mechanics Add rudimentary versioning mechanics
Set up project defaults

View File

@ -1,23 +1,65 @@
[project]
name = "kodi-timekeeper"
description = "An approach to letting kids use a Kodi media center instance"
version = "0.1.0"
authors = [
{ name = "hygienic-books", email = "hygienic-books@tentic.net" }
]
dependencies = [
'requests == 2.27.1',
'click == 8.1.0'
]
[project.optional-dependencies]
dev = [
"towncrier == 21.9.0",
"semver == 2.13.0",
"pytest == 7.1.2"
]
[build-system] [build-system]
requires = ["setuptools", "wheel"] requires = [
"setuptools == 58.0.4",
"wheel == 0.37.1"
]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.semantic_release] [tool.semantic_release]
version_toml = "src/kodi-timekeeper/__init__.py:__version__" version_toml = "pyproject.toml:project.version"
major_on_zero = false major_on_zero = false
[tool.towncrier] [tool.towncrier]
directory = "newsfragments"
package = "kodi-timekeeper" package = "kodi-timekeeper"
package_dir = "src" package_dir = "src"
filename = "CHANGELOG.md" filename = "CHANGELOG.md"
[tool.towncrier.fragment.build] type = [
[tool.towncrier.fragment.chore] { name = "Features", directory = "feat", showcontent = true },
[tool.towncrier.fragment.ci] { name = "Bug fixes", directory = "fix", showcontent = true },
[tool.towncrier.fragment.docs] { name = "Project structure", directory = "build", showcontent = true },
[tool.towncrier.fragment.feat] { name = "Refactor", directory = "refactor", showcontent = true },
[tool.towncrier.fragment.fix] { name = "Test", directory = "test", showcontent = true }
[tool.towncrier.fragment.perf] ]
[tool.towncrier.fragment.refactor]
[tool.towncrier.fragment.revert] # New format is in the works, not yet part of towncrier 21.9.0
[tool.towncrier.fragment.style] # News topics from which we may want to choose:
[tool.towncrier.fragment.test] # [tool.towncrier.fragment.build]
# [tool.towncrier.fragment.chore]
# [tool.towncrier.fragment.ci]
# [tool.towncrier.fragment.docs]
# [tool.towncrier.fragment.feat]
# [tool.towncrier.fragment.fix]
# [tool.towncrier.fragment.perf]
# [tool.towncrier.fragment.refactor]
# [tool.towncrier.fragment.revert]
# [tool.towncrier.fragment.style]
# [tool.towncrier.fragment.test]
# [tool.towncrier.fragment.deprecation]
# [tool.towncrier.fragment.remove]
# [tool.towncrier.fragment.trivial]
# [tool.towncrier.fragment.meta]
[tool.pytest.ini_options]
python_files = "test_*"
python_classes = "*Tests"
python_functions = "test_*"

View File

@ -1,4 +0,0 @@
[pytest]
python_files = test_*
python_classes = *Tests
python_function = test_*

View File

@ -1 +0,0 @@
__version__ = "0.0.0"

0
tests/__init__.py Normal file
View File

View File

View File

@ -1,3 +1,21 @@
class KTKTests: class KTKTests:
def test_adding_two_ints_returns_correct_result(self): #def test_adding_two_ints_returns_correct_result(self):
pass # assert alter(1, 2) == 3
# pass
def test_one(self):
assert 1 == 1
def test_two(self):
expect = (1, 2, 3)
actual = (1, 2, 3)
def test_adsasd():
expect = (1, 2, 3)
actual = (1, 2, 3)
def test_aasssd():
expect = (1, 2, 3)
actual = (1, 2, 3)