worklog-opsdevnz 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- worklog_opsdevnz/__init__.py +8 -0
- worklog_opsdevnz/cli.py +68 -0
- worklog_opsdevnz/config.py +71 -0
- worklog_opsdevnz/paths.py +28 -0
- worklog_opsdevnz/template.py +46 -0
- worklog_opsdevnz-0.1.0.dist-info/METADATA +127 -0
- worklog_opsdevnz-0.1.0.dist-info/RECORD +11 -0
- worklog_opsdevnz-0.1.0.dist-info/WHEEL +5 -0
- worklog_opsdevnz-0.1.0.dist-info/entry_points.txt +2 -0
- worklog_opsdevnz-0.1.0.dist-info/licenses/LICENSE +90 -0
- worklog_opsdevnz-0.1.0.dist-info/top_level.txt +1 -0
worklog_opsdevnz/cli.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""CLI entry point for worklog-opsdevnz."""
|
|
2
|
+
|
|
3
|
+
import shutil
|
|
4
|
+
import subprocess
|
|
5
|
+
from datetime import date
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
import click
|
|
9
|
+
|
|
10
|
+
from worklog_opsdevnz import __version__
|
|
11
|
+
from worklog_opsdevnz.config import get_config
|
|
12
|
+
from worklog_opsdevnz.paths import resolve_path
|
|
13
|
+
from worklog_opsdevnz.template import generate_content
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@click.command()
|
|
17
|
+
@click.version_option(version=__version__, prog_name="worklog-opsdevnz")
|
|
18
|
+
@click.option(
|
|
19
|
+
"-e",
|
|
20
|
+
"--editor",
|
|
21
|
+
default=None,
|
|
22
|
+
help="Override the editor command (default: $VISUAL or $EDITOR).",
|
|
23
|
+
)
|
|
24
|
+
def main(editor: str | None) -> None:
|
|
25
|
+
"""Create or open today's worklog entry."""
|
|
26
|
+
entry_date = date.today()
|
|
27
|
+
|
|
28
|
+
config = get_config()
|
|
29
|
+
target = resolve_path(config, entry_date)
|
|
30
|
+
target.parent.mkdir(parents=True, exist_ok=True)
|
|
31
|
+
|
|
32
|
+
if target.exists():
|
|
33
|
+
print(f"Opening existing worklog: {target}")
|
|
34
|
+
else:
|
|
35
|
+
content = generate_content(config, entry_date.isoformat())
|
|
36
|
+
target.write_text(content)
|
|
37
|
+
print(f"Created: {target}")
|
|
38
|
+
|
|
39
|
+
_open_editor(target, editor)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _open_editor(path: str | Path, override: str | None = None) -> None:
|
|
43
|
+
"""Open the file in the configured editor, or print the path."""
|
|
44
|
+
editor = _resolve_editor(override)
|
|
45
|
+
if editor:
|
|
46
|
+
editor_cmd = shutil.which(editor)
|
|
47
|
+
if editor_cmd:
|
|
48
|
+
# fmt: off
|
|
49
|
+
subprocess.run([editor_cmd, str(path)])
|
|
50
|
+
# fmt: on
|
|
51
|
+
else:
|
|
52
|
+
print(f"Editor '{editor}' not found. Path: {path}")
|
|
53
|
+
else:
|
|
54
|
+
print(f"No editor configured. Path: {path}")
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _resolve_editor(override: str | None = None) -> str | None:
|
|
58
|
+
"""Resolve editor from CLI override, $VISUAL, or $EDITOR."""
|
|
59
|
+
import os
|
|
60
|
+
|
|
61
|
+
for candidate in (override, os.environ.get("VISUAL"), os.environ.get("EDITOR")):
|
|
62
|
+
if candidate:
|
|
63
|
+
return candidate
|
|
64
|
+
return None
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
if __name__ == "__main__":
|
|
68
|
+
main()
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Configuration discovery and loading for worklog-opsdevnz."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
import tomllib
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
DEFAULT_CONFIG: dict[str, Any] = {
|
|
10
|
+
"worklog_dir": "docs/worklog",
|
|
11
|
+
"structure": "year",
|
|
12
|
+
"suffix": "worklog",
|
|
13
|
+
"author": os.environ.get("USER", "unknown"),
|
|
14
|
+
"default_tags": ["internal", "log"],
|
|
15
|
+
"sections": [
|
|
16
|
+
{"title": "Focus for Today", "content": ""},
|
|
17
|
+
{"title": "Completed", "content": ""},
|
|
18
|
+
{"title": "Notes & Reflections", "content": ""},
|
|
19
|
+
{"title": "Related", "content": ""},
|
|
20
|
+
{"title": "Next", "content": ""},
|
|
21
|
+
],
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def find_config(start: Path | None = None) -> Path | None:
|
|
26
|
+
"""Search for worklog.toml or worklog.yaml from start up to root."""
|
|
27
|
+
if start is None:
|
|
28
|
+
start = Path.cwd()
|
|
29
|
+
candidates = list(start.parents) + [start]
|
|
30
|
+
for candidate in candidates:
|
|
31
|
+
for name in ("worklog.toml", "worklog.yaml", "worklog.yml"):
|
|
32
|
+
path = candidate / name
|
|
33
|
+
if path.exists():
|
|
34
|
+
return path
|
|
35
|
+
return None
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def load_config(path: Path) -> dict[str, Any]:
|
|
39
|
+
"""Load config from TOML or YAML file."""
|
|
40
|
+
if path.suffix == ".toml":
|
|
41
|
+
with open(path, "rb") as f:
|
|
42
|
+
return tomllib.load(f)
|
|
43
|
+
else:
|
|
44
|
+
try:
|
|
45
|
+
import yaml # type: ignore[import-untyped]
|
|
46
|
+
except ImportError:
|
|
47
|
+
print("Error: PyYAML required for .yaml config", file=sys.stderr)
|
|
48
|
+
sys.exit(1)
|
|
49
|
+
with open(path) as f:
|
|
50
|
+
return yaml.safe_load(f) or {}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def merge_config(
|
|
54
|
+
file_config: dict[str, Any], defaults: dict[str, Any]
|
|
55
|
+
) -> dict[str, Any]:
|
|
56
|
+
"""Merge file config over defaults."""
|
|
57
|
+
merged = dict(defaults)
|
|
58
|
+
merged.update(file_config)
|
|
59
|
+
return merged
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def get_config() -> dict[str, Any]:
|
|
63
|
+
"""Discover and load config, falling back to defaults."""
|
|
64
|
+
config_path = find_config()
|
|
65
|
+
if config_path:
|
|
66
|
+
merged = merge_config(load_config(config_path), DEFAULT_CONFIG)
|
|
67
|
+
worklog_dir = merged["worklog_dir"]
|
|
68
|
+
if not Path(worklog_dir).is_absolute():
|
|
69
|
+
merged["worklog_dir"] = str(config_path.parent / worklog_dir)
|
|
70
|
+
return merged
|
|
71
|
+
return dict(DEFAULT_CONFIG)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Path resolution for worklog files."""
|
|
2
|
+
|
|
3
|
+
from datetime import date
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def resolve_path(
|
|
9
|
+
config: dict[str, Any],
|
|
10
|
+
entry_date: date,
|
|
11
|
+
) -> Path:
|
|
12
|
+
"""Compute the target file path based on config structure."""
|
|
13
|
+
base = Path(config.get("worklog_dir", "docs/worklog"))
|
|
14
|
+
structure = config.get("structure", "year")
|
|
15
|
+
suffix = config.get("suffix", "worklog")
|
|
16
|
+
|
|
17
|
+
if structure == "flat":
|
|
18
|
+
filename = f"{entry_date.isoformat()}-{suffix}.md"
|
|
19
|
+
return base / filename
|
|
20
|
+
elif structure == "year-month":
|
|
21
|
+
year = entry_date.strftime("%Y")
|
|
22
|
+
month = entry_date.strftime("%m")
|
|
23
|
+
filename = f"{entry_date.strftime('%d-%m-%Y')}-{suffix}.md"
|
|
24
|
+
return base / year / month / filename
|
|
25
|
+
else: # "year" (default)
|
|
26
|
+
year = entry_date.strftime("%Y")
|
|
27
|
+
filename = f"{entry_date.strftime('%d-%m-%Y')}-{suffix}.md"
|
|
28
|
+
return base / year / filename
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Frontmatter and body generation for worklog entries."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def generate_frontmatter(
|
|
7
|
+
config: dict[str, Any],
|
|
8
|
+
iso_date: str,
|
|
9
|
+
) -> str:
|
|
10
|
+
"""Generate YAML frontmatter."""
|
|
11
|
+
title = f"Work Log - {iso_date}"
|
|
12
|
+
tags = "\n".join(f" - {t}" for t in config.get("default_tags", []))
|
|
13
|
+
author = config.get("author", "unknown")
|
|
14
|
+
|
|
15
|
+
return f"""---
|
|
16
|
+
title: "{title}"
|
|
17
|
+
date: {iso_date}
|
|
18
|
+
author: {author}
|
|
19
|
+
tags:
|
|
20
|
+
{tags}
|
|
21
|
+
draft: false
|
|
22
|
+
---
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def generate_body(config: dict[str, Any]) -> str:
|
|
27
|
+
"""Generate section headers from config."""
|
|
28
|
+
sections = config.get("sections", [])
|
|
29
|
+
lines = []
|
|
30
|
+
for section in sections:
|
|
31
|
+
title = section.get("title", "")
|
|
32
|
+
content = section.get("content", "")
|
|
33
|
+
lines.append(f"## {title}\n")
|
|
34
|
+
if content:
|
|
35
|
+
lines.append(f"{content}\n")
|
|
36
|
+
return "\n".join(lines)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def generate_content(
|
|
40
|
+
config: dict[str, Any],
|
|
41
|
+
iso_date: str,
|
|
42
|
+
) -> str:
|
|
43
|
+
"""Generate full worklog content."""
|
|
44
|
+
frontmatter = generate_frontmatter(config, iso_date)
|
|
45
|
+
body = generate_body(config)
|
|
46
|
+
return f"{frontmatter}\n{body}"
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: worklog-opsdevnz
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Configurable worklog management CLI for dated development logs
|
|
5
|
+
Author-email: "OpsDev.nz Collective" <john@opsdev.nz>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/startmeup-nz/worklog-opsdevnz
|
|
8
|
+
Project-URL: Documentation, https://opsdev.nz/modules/worklog-opsdevnz
|
|
9
|
+
Project-URL: Repository, https://github.com/startmeup-nz/worklog-opsdevnz.git
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/startmeup-nz/worklog-opsdevnz/issues
|
|
11
|
+
Keywords: worklog,documentation,daily-log,cli,markdown
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
20
|
+
Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: click>=8.0
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest-mock>=3.10; extra == "dev"
|
|
30
|
+
Requires-Dist: ruff>=0.4; extra == "dev"
|
|
31
|
+
Requires-Dist: mypy>=1.0; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# WorkLog OpsDev.NZ
|
|
35
|
+
|
|
36
|
+
**Status:** Development — see pyproject.toml for version
|
|
37
|
+
|
|
38
|
+
Configurable CLI tool for creating and managing dated development worklogs.
|
|
39
|
+
Generates Markdown entries with YAML frontmatter from per-project templates.
|
|
40
|
+
|
|
41
|
+
## Problem
|
|
42
|
+
|
|
43
|
+
Across multiple projects we kept reinventing the same pattern: a script that
|
|
44
|
+
creates a dated Markdown file from a template, with frontmatter for date,
|
|
45
|
+
author, tags, and draft status. Each implementation had slightly different
|
|
46
|
+
directory structures, section headers, and filenames. The core concept was
|
|
47
|
+
always the same.
|
|
48
|
+
|
|
49
|
+
## Solution
|
|
50
|
+
|
|
51
|
+
`worklog-opsdevnz` formalises this pattern into a single published module:
|
|
52
|
+
|
|
53
|
+
- **Per-project config** — `worklog.toml` controls directory structure, sections,
|
|
54
|
+
author, tags, and filename patterns
|
|
55
|
+
- **Three structure modes** — `flat`, `year`, or `year-month` directory layouts
|
|
56
|
+
- **YAML frontmatter** — date, title, author, tags, draft status
|
|
57
|
+
- **Configurable sections** — each project defines its own section headers
|
|
58
|
+
- **Editor integration** — opens new entries in `$VISUAL` / `$EDITOR`
|
|
59
|
+
- **List existing entries** — browse worklogs with `--list`
|
|
60
|
+
|
|
61
|
+
## Quick Start
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Create today's worklog
|
|
65
|
+
worklog-opsdevnz
|
|
66
|
+
|
|
67
|
+
# Create yesterday's worklog
|
|
68
|
+
worklog-opsdevnz --previous
|
|
69
|
+
|
|
70
|
+
# Override the editor for this run
|
|
71
|
+
worklog-opsdevnz --editor nvim
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Configuration
|
|
75
|
+
|
|
76
|
+
Each project gets a `worklog.toml` at its root:
|
|
77
|
+
|
|
78
|
+
```toml
|
|
79
|
+
worklog_dir = "docs/worklog"
|
|
80
|
+
structure = "year" # "flat", "year", or "year-month"
|
|
81
|
+
author = "Your Name"
|
|
82
|
+
default_tags = ["worklog", "log"]
|
|
83
|
+
|
|
84
|
+
[[sections]]
|
|
85
|
+
title = "Focus for Today"
|
|
86
|
+
|
|
87
|
+
[[sections]]
|
|
88
|
+
title = "Completed"
|
|
89
|
+
|
|
90
|
+
[[sections]]
|
|
91
|
+
title = "Notes"
|
|
92
|
+
|
|
93
|
+
[[sections]]
|
|
94
|
+
title = "Next"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Scope
|
|
98
|
+
|
|
99
|
+
**WorkLog DOES:**
|
|
100
|
+
- Create dated Markdown worklog entries with YAML frontmatter
|
|
101
|
+
- Per-project configuration via `worklog.toml`
|
|
102
|
+
- Open entries in configured editor (`$VISUAL` / `$EDITOR`)
|
|
103
|
+
- Three directory structure modes: flat, year, year-month
|
|
104
|
+
|
|
105
|
+
**WorkLog DOES NOT (out of scope for 0.0.2):**
|
|
106
|
+
- Zensical blog integration (see design doc)
|
|
107
|
+
- Auto-generated index pages
|
|
108
|
+
- Retro template support (planned for 0.1.0)
|
|
109
|
+
- Time tracking / timesheet aggregation
|
|
110
|
+
- `list`, `init`, or `create` subcommands (planned for 0.1.0)
|
|
111
|
+
|
|
112
|
+
## Requirements
|
|
113
|
+
|
|
114
|
+
- Python 3.12+
|
|
115
|
+
- See [pyproject.toml](pyproject.toml) for full dependencies
|
|
116
|
+
|
|
117
|
+
## Related
|
|
118
|
+
|
|
119
|
+
- [Functional Requirements](docs/specs/README.md)
|
|
120
|
+
- [Design Decisions](docs/design/README.md)
|
|
121
|
+
- [User Stories](docs/stories/README.md)
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
**Last Updated:** 2026-05-23
|
|
126
|
+
**Status:** Development (migrated to module template)
|
|
127
|
+
**Maintainer:** OpsDev.nz Collective
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
worklog_opsdevnz/__init__.py,sha256=I0a8AiVu_N2aha9ZIxCTTHrTrVf--pURLvtIej9hFU8,227
|
|
2
|
+
worklog_opsdevnz/cli.py,sha256=WB-lxWEt30EjiMKE1eOfcEy2NI3WmPbC7PvaMAttTo4,1899
|
|
3
|
+
worklog_opsdevnz/config.py,sha256=ny-PZXAZdeofmA6NM5BZidOJPhUPmZ4m79OgtYnb1Wo,2215
|
|
4
|
+
worklog_opsdevnz/paths.py,sha256=rsKAfeR_1RwvnPUaL0lxe-wSej_m2Z3dvSXNXmhgFQA,944
|
|
5
|
+
worklog_opsdevnz/template.py,sha256=qNkect11b3L5CmZURCQMpeWvI92GgisfWtpVDgoIfnA,1112
|
|
6
|
+
worklog_opsdevnz-0.1.0.dist-info/licenses/LICENSE,sha256=4_FAkzAt5058r8NSaCDaV-4-CRq2AnVS1iYdtt2uIkM,4555
|
|
7
|
+
worklog_opsdevnz-0.1.0.dist-info/METADATA,sha256=7F3GJB9oilIEpni0GJq1xL6gQMpjh85aGDSKH_jyaEw,4024
|
|
8
|
+
worklog_opsdevnz-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
9
|
+
worklog_opsdevnz-0.1.0.dist-info/entry_points.txt,sha256=PZADo4QtDyTeSkL6U13edCZap6CyCgW28qV42QHFsBs,63
|
|
10
|
+
worklog_opsdevnz-0.1.0.dist-info/top_level.txt,sha256=7JqIlXAq1DVyOW6T4AmjViKTZ5jsTcXtxruJg8tBfqY,17
|
|
11
|
+
worklog_opsdevnz-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
16
|
+
exercising permissions granted by this License.
|
|
17
|
+
|
|
18
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
19
|
+
including but not limited to software source code, documentation
|
|
20
|
+
source, and configuration files.
|
|
21
|
+
|
|
22
|
+
"Object" form shall mean any form resulting from mechanical
|
|
23
|
+
transformation or translation of a Source form, including but
|
|
24
|
+
not limited to compiled object code, generated documentation,
|
|
25
|
+
and conversions to other media types.
|
|
26
|
+
|
|
27
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
28
|
+
Object form, made available under the License, as indicated by a
|
|
29
|
+
copyright notice that is included in or attached to the work
|
|
30
|
+
(an example is provided in the Appendix below).
|
|
31
|
+
|
|
32
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
33
|
+
form, that is based on (or derived from) the Work and for which the
|
|
34
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
35
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
36
|
+
of this License, Derivative Works shall not include works that remain
|
|
37
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
38
|
+
the Work and Derivative Works thereof.
|
|
39
|
+
|
|
40
|
+
"Contribution" shall mean any work of authorship, including
|
|
41
|
+
the original version of the Work and any modifications or additions
|
|
42
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
43
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
44
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
45
|
+
the copyright owner.
|
|
46
|
+
|
|
47
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
48
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
49
|
+
subsequently incorporated within the Work.
|
|
50
|
+
|
|
51
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
52
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
53
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
54
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
55
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
56
|
+
Work and such Derivative Works in Source or Object form.
|
|
57
|
+
|
|
58
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
59
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
60
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
61
|
+
(except as stated in this section) patent license to make, have made,
|
|
62
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
63
|
+
where such license applies only to those patent claims licensable
|
|
64
|
+
by such Contributor that are necessarily infringed by their
|
|
65
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
66
|
+
with the Work to which such Contribution(s) was submitted.
|
|
67
|
+
|
|
68
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
69
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
70
|
+
modifications, and in Source or Object form, provided that You
|
|
71
|
+
meet the following conditions:
|
|
72
|
+
|
|
73
|
+
(a) You must give any other recipients of the Work or
|
|
74
|
+
Derivative Works a copy of this License; and
|
|
75
|
+
|
|
76
|
+
(b) You must cause any modified files to carry prominent notices
|
|
77
|
+
stating that You changed the files; and
|
|
78
|
+
|
|
79
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
80
|
+
that You distribute, all copyright, patent, trademark, and
|
|
81
|
+
attribution notices from the Source form of the Work,
|
|
82
|
+
excluding those notices that do not pertain to any part of
|
|
83
|
+
the Derivative Works; and
|
|
84
|
+
|
|
85
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
86
|
+
distribution, then any Derivative Works that You distribute must
|
|
87
|
+
include a readable copy of the attribution notices contained
|
|
88
|
+
within such NOTICE file.
|
|
89
|
+
|
|
90
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
worklog_opsdevnz
|