mirror of
https://github.com/tembo-pages/tembo-core.git
synced 2025-12-22 05:35:43 +00:00
chore: release v1.0.2
chore: release v1.0.2
This commit is contained in:
30
CHANGELOG.md
30
CHANGELOG.md
@@ -1,18 +1,28 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
<!-- marker -->
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
## [v1.0.2](https://github.com/tembo-pages/tembo-core/commits/v1.0.2) - 2021-11-23
|
||||||
|
<small>[Compare with v1.0.1](https://github.com/tembo-pages/tembo-core/compare/v1.0.1..v1.0.2)</small>
|
||||||
|
|
||||||
## [1.0.1](https://github.com/tembo-pages/tembo-core/commits/1.0.1) - 2021-11-21
|
### Features
|
||||||
<small>[Compare with v1.0.0](https://github.com/tembo-pages/tembo-core/compare/v1.0.1...v1.0.0)</small>
|
|
||||||
|
- Add garbage ([b49d77](https://github.com/tembo-pages/tembo-core/commit/b49d776712737deaa1aeb86dd40230c099198d5a))
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
### Miscellaneous Tasks
|
||||||
|
|
||||||
- Add changelog generation using git-cliff ([4c8d68](https://github.com/tembo-pages/tembo-core/commit/4c8d686abb82ade97680a3e8cdef267559282ff4))
|
- Prepare release v1.0.2 ([e29ae6](https://github.com/tembo-pages/tembo-core/commit/e29ae6dadb1ca419d536db18f34d9d249012cc25))
|
||||||
- Prepare release 1.0.1 ([b077aa](https://github.com/tembo-pages/tembo-core/commit/b077aaaf6666e78507f6439fa2e10a34c55176e5))
|
- Update cliff.toml ([7ee36f](https://github.com/tembo-pages/tembo-core/commit/7ee36f28b5160251c37085744166c2a5b1e695e4))
|
||||||
|
- Update duties.py with latest changelog duty ([f6f2fe](https://github.com/tembo-pages/tembo-core/commit/f6f2fe07b61e8fa8bd812bbc63a51d3f9705a448))
|
||||||
|
## [v1.0.1](https://github.com/tembo-pages/tembo-core/commits/v1.0.1) - 2021-11-21
|
||||||
|
<small>[Compare with v1.0.0](https://github.com/tembo-pages/tembo-core/compare/v1.0.0..v1.0.1)</small>
|
||||||
|
|
||||||
## [1.0.0](https://github.com/tembo-pages/tembo-core/commits/v1.0.0) - 2021-11-21
|
### Documentation
|
||||||
|
|
||||||
|
- Update changelog ([b71033](https://github.com/tembo-pages/tembo-core/commit/b710338a73add7ed93af1f76f3b9272e30ce41de))
|
||||||
|
|
||||||
|
## [v1.0.0](https://github.com/tembo-pages/tembo-core/commits/v1.0.0) - 2021-11-21
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
@@ -22,12 +32,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Initial commit ([fb7fec](https://github.com/tembo-pages/tembo-core/commit/fb7fec7ea619318b0e0830c0f9260335c0d4e173))
|
- Initial commit ([fb7fec](https://github.com/tembo-pages/tembo-core/commit/fb7fec7ea619318b0e0830c0f9260335c0d4e173))
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Update duties.py ([562de6](https://github.com/tembo-pages/tembo-core/commit/562de606c4846ad37d32822260121892c353e7ca))
|
|
||||||
- Prepare release 1.0.0 ([eed47d](https://github.com/tembo-pages/tembo-core/commit/eed47d34b9a0b79f48b2fbe0ad77f43dc42f6027))
|
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|
||||||
- Update panaetius to 2.3.3 ([e5d2b2](https://github.com/tembo-pages/tembo-core/commit/e5d2b28252b9d7962a8d49d4da37b9f9c4f6d514))
|
- Update panaetius to 2.3.3 ([e5d2b2](https://github.com/tembo-pages/tembo-core/commit/e5d2b28252b9d7962a8d49d4da37b9f9c4f6d514))
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
# https://tera.netlify.app/docs/#introduction
|
# https://tera.netlify.app/docs/#introduction
|
||||||
body = """
|
body = """
|
||||||
{% if version %}\
|
{% if version %}\
|
||||||
## [{{ version | trim_start_matches(pat="v") }}](https://github.com/tembo-pages/tembo-core/commits/{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
|
## [{{ version }}](https://github.com/tembo-pages/tembo-core/commits/{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||||
{% if previous.version %}\
|
{% if previous.version %}\
|
||||||
<small>[Compare with {{ previous.version }}](https://github.com/tembo-pages/tembo-core/compare/v{{ version }}...{{ previous.version }})</small>
|
<small>[Compare with {{ previous.version }}](https://github.com/tembo-pages/tembo-core/compare/{{ previous.version }}...{{ version }})</small>
|
||||||
{% endif %}\
|
{% endif %}\
|
||||||
{% else %}\
|
{% else %}\
|
||||||
## [unreleased]
|
## [unreleased]
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
```
|
```
|
||||||
--8<-- "LICENSE.md"
|
--8<-- "LICENSE"
|
||||||
```
|
```
|
||||||
|
|||||||
29
duties.py
29
duties.py
@@ -13,6 +13,7 @@ from urllib.request import urlopen
|
|||||||
from duty import duty
|
from duty import duty
|
||||||
|
|
||||||
PACKAGE_NAME = "tembo"
|
PACKAGE_NAME = "tembo"
|
||||||
|
REPO_URL = "https://github.com/tembo-pages/tembo-core"
|
||||||
|
|
||||||
|
|
||||||
@duty(post=["export"])
|
@duty(post=["export"])
|
||||||
@@ -322,25 +323,37 @@ def check_dependencies(ctx):
|
|||||||
pty=True,
|
pty=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@duty
|
@duty
|
||||||
def changelog(ctx, planned_release: Optional[str] = None):
|
def changelog(ctx, planned_release: Optional[str] = None, previous_release: Optional[str] = None):
|
||||||
"""
|
"""
|
||||||
Generate a changelog with git-cliff.
|
Generate a changelog with git-cliff.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
ctx: The context instance (passed automatically).
|
ctx: The context instance (passed automatically).
|
||||||
planned_release (str, optional): The planned release version. Example: v1.0.2
|
planned_release (str, optional): The planned release version. Example: v1.0.2
|
||||||
|
previous_release (str, optional): The previous release version. Example: v1.0.1
|
||||||
"""
|
"""
|
||||||
if planned_release is not None:
|
generated_changelog: str = ctx.run(["git", "cliff", "-u", "-t", planned_release, "-s", "header"])[:-1]
|
||||||
changelog = ctx.run(["git", "cliff", "--tag", planned_release])
|
if previous_release is not None:
|
||||||
else:
|
generated_changelog: list = generated_changelog.splitlines()
|
||||||
changelog = ctx.run(["git", "cliff"])
|
generated_changelog.insert(
|
||||||
|
1,
|
||||||
|
f"<small>[Compare with {previous_release}]({REPO_URL}/compare/{previous_release}..{planned_release})</small>",
|
||||||
|
)
|
||||||
|
generated_changelog: str = "\n".join([line for line in generated_changelog]) + "\n"
|
||||||
|
new_changelog = []
|
||||||
|
|
||||||
changelog_file = pathlib.Path(".") / "CHANGELOG.md"
|
changelog_file = pathlib.Path(".") / "CHANGELOG.md"
|
||||||
|
with changelog_file.open("r", encoding="utf-8") as changelog_contents:
|
||||||
|
all_lines = changelog_contents.readlines()
|
||||||
|
for line_string in all_lines:
|
||||||
|
regex_string = re.search(r"(<!-- marker -->)", line_string)
|
||||||
|
new_changelog.append(line_string)
|
||||||
|
if isinstance(regex_string, re.Match):
|
||||||
|
new_changelog.append(generated_changelog)
|
||||||
with changelog_file.open("w", encoding="utf-8") as changelog_contents:
|
with changelog_file.open("w", encoding="utf-8") as changelog_contents:
|
||||||
changelog_contents.write(changelog)
|
changelog_contents.writelines(new_changelog)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def rm_tree(directory: pathlib.Path):
|
def rm_tree(directory: pathlib.Path):
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "tembo"
|
name = "tembo"
|
||||||
description = "A simple folder organiser for your work notes."
|
description = "A simple folder organiser for your work notes."
|
||||||
version = "1.0.1"
|
version = "1.0.2"
|
||||||
license = "ISC"
|
license = "ISC"
|
||||||
authors = ["dtomlinson <dtomlinson@panaetius.co.uk>"]
|
authors = ["dtomlinson <dtomlinson@panaetius.co.uk>"]
|
||||||
readme = "./README.md"
|
readme = "./README.md"
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -18,7 +18,7 @@ entry_points = \
|
|||||||
|
|
||||||
setup_kwargs = {
|
setup_kwargs = {
|
||||||
'name': 'tembo',
|
'name': 'tembo',
|
||||||
'version': '1.0.1',
|
'version': '1.0.2',
|
||||||
'description': 'A simple folder organiser for your work notes.',
|
'description': 'A simple folder organiser for your work notes.',
|
||||||
'long_description': '# Tembo\n\n<img\n src="https://raw.githubusercontent.com/tembo-pages/tembo-core/main/assets/tembo_logo.png"\n width="200px"\n/>\n\nA simple folder organiser for your work notes.\n\n\n\n\n\n\n\n## config.yml\n\n```yaml\n# time tokens: https://strftime.org\ntembo:\n base_path: ~/tembo\n # template_path: ~/tembo/templates\n scopes:\n - name: scratchpad\n example: tembo new scratchpad\n path: "scratchpad/{d:%B_%Y}"\n filename: "{d:%B_%W}"\n extension: md\n template_filename: scratchpad.md.tpl\n - name: wtodo\n example: tembo new wtodo | directory is month_year, filename is month_week-of-year\n path: "wtodo/{d:%B_%Y}"\n filename: "week_{d:%W}"\n extension: todo\n template_filename: weekly.todo.tpl\n - name: meeting\n example: tembo new meeting $meeting_title\n path: "meetings/{d:%B_%y}"\n filename: "{d:%a_%d_%m_%y}-{input0}"\n extension: md\n template_filename: meeting.md.tpl\n - name: knowledge\n example: tembo new knowledge $project $filename\n path: "knowledge/{input0}"\n filename: "{input1}"\n extension: md\n template_filename: knowledge.md.tpl\n logging:\n level: INFO\n path: ~/tembo/.logs\n```\n\n## templates\n\n###\xa0knowledge\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\n# {input0} - {input1}.md\n```\n\n### meeting\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\n# {d:%A %d %B %Y} - {input0}\n\n## People\n\nHead:\n\nAttendees:\n\n## Actions\n\n\n## Notes\n\n```\n\n### scratchpad\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\n# Scratchpad - Week {d:%W} - {d:%B-%y}\n```\n\n### wtodo\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\nWeekly TODO | Week {d:%W} {d:%B}-{d:%Y}\n\nWork:\n\nDocumentation:\n```\n',
|
'long_description': '# Tembo\n\n<img\n src="https://raw.githubusercontent.com/tembo-pages/tembo-core/main/assets/tembo_logo.png"\n width="200px"\n/>\n\nA simple folder organiser for your work notes.\n\n\n\n\n\n\n\n## config.yml\n\n```yaml\n# time tokens: https://strftime.org\ntembo:\n base_path: ~/tembo\n # template_path: ~/tembo/templates\n scopes:\n - name: scratchpad\n example: tembo new scratchpad\n path: "scratchpad/{d:%B_%Y}"\n filename: "{d:%B_%W}"\n extension: md\n template_filename: scratchpad.md.tpl\n - name: wtodo\n example: tembo new wtodo | directory is month_year, filename is month_week-of-year\n path: "wtodo/{d:%B_%Y}"\n filename: "week_{d:%W}"\n extension: todo\n template_filename: weekly.todo.tpl\n - name: meeting\n example: tembo new meeting $meeting_title\n path: "meetings/{d:%B_%y}"\n filename: "{d:%a_%d_%m_%y}-{input0}"\n extension: md\n template_filename: meeting.md.tpl\n - name: knowledge\n example: tembo new knowledge $project $filename\n path: "knowledge/{input0}"\n filename: "{input1}"\n extension: md\n template_filename: knowledge.md.tpl\n logging:\n level: INFO\n path: ~/tembo/.logs\n```\n\n## templates\n\n###\xa0knowledge\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\n# {input0} - {input1}.md\n```\n\n### meeting\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\n# {d:%A %d %B %Y} - {input0}\n\n## People\n\nHead:\n\nAttendees:\n\n## Actions\n\n\n## Notes\n\n```\n\n### scratchpad\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\n# Scratchpad - Week {d:%W} - {d:%B-%y}\n```\n\n### wtodo\n\n```\n---\ncreated: {d:%d-%m-%Y}\n---\n\nWeekly TODO | Week {d:%W} {d:%B}-{d:%Y}\n\nWork:\n\nDocumentation:\n```\n',
|
||||||
'author': 'dtomlinson',
|
'author': 'dtomlinson',
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
"""Module containing the version of tembo."""
|
"""Module containing the version of tembo."""
|
||||||
|
|
||||||
__version__ = "1.0.1"
|
__version__ = "1.0.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user