Skip to content

Commit c356998

Browse files
committed
chore: sed 's/gitolog/git-changelog/'
1 parent 87dc6d7 commit c356998

11 files changed

Lines changed: 139 additions & 48 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,34 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [0.1.1](https://gitlab.com/pawamoy/gitolog/tags/0.1.1) ([compare](https://gitlab.com/pawamoy/gitolog/compare/0.1.0...0.1.1))
7+
## [0.1.1](https://gitlab.com/pawamoy/git-changelog/tags/0.1.1) ([compare](https://gitlab.com/pawamoy/git-changelog/compare/0.1.0...0.1.1))
88

99
### Fixed
10-
- Fix build with MANIFEST.in, add license file ([013fb69](https://gitlab.com/pawamoy/gitolog/commit/013fb691826924d6f71b4159a8fa650e40324db3)).
10+
- Fix build with MANIFEST.in, add license file ([013fb69](https://gitlab.com/pawamoy/git-changelog/commit/013fb691826924d6f71b4159a8fa650e40324db3)).
1111

1212
### Misc
13-
- Improve readability ([5e590f6](https://gitlab.com/pawamoy/gitolog/commit/5e590f6ac62b23e608a507e08123efba3b0f7e0d)).
13+
- Improve readability ([5e590f6](https://gitlab.com/pawamoy/git-changelog/commit/5e590f6ac62b23e608a507e08123efba3b0f7e0d)).
1414

1515

16-
## [0.1.0](https://gitlab.com/pawamoy/gitolog/tags/0.1.0) ([compare](https://gitlab.com/pawamoy/gitolog/compare/83845fe8d7deb85a2e093fe68a4b6a48b6d8e446...0.1.0)) - 2018-06-27
16+
## [0.1.0](https://gitlab.com/pawamoy/git-changelog/tags/0.1.0) ([compare](https://gitlab.com/pawamoy/git-changelog/compare/83845fe8d7deb85a2e093fe68a4b6a48b6d8e446...0.1.0)) - 2018-06-27
1717

1818
### Added
19-
- Add github/gitlab regexes ([584fd73](https://gitlab.com/pawamoy/gitolog/commit/584fd73ec88ac51abbf8555d8f78b7144529e6b3)).
19+
- Add github/gitlab regexes ([584fd73](https://gitlab.com/pawamoy/git-changelog/commit/584fd73ec88ac51abbf8555d8f78b7144529e6b3)).
2020

2121
### Fixed
22-
- Fix patch bump ([8470e69](https://gitlab.com/pawamoy/gitolog/commit/8470e695128d9892296acdd31c404d85add68983)).
23-
- Fix refs parsing ([8c77cb7](https://gitlab.com/pawamoy/gitolog/commit/8c77cb736971473837384a8238c3c53886d77c75)).
22+
- Fix patch bump ([8470e69](https://gitlab.com/pawamoy/git-changelog/commit/8470e695128d9892296acdd31c404d85add68983)).
23+
- Fix refs parsing ([8c77cb7](https://gitlab.com/pawamoy/git-changelog/commit/8c77cb736971473837384a8238c3c53886d77c75)).
2424

2525
### Misc
26-
- Continue packaging (#6) ([a29af2c](https://gitlab.com/pawamoy/gitolog/commit/a29af2cf990edf950b55a46ebea164ab068c9aec)).
27-
- Finish packaging (#6) ([e92b492](https://gitlab.com/pawamoy/gitolog/commit/e92b4923a60d561c38150331dac9cd2e3ba6c130)).
28-
- Implement reference parsing ([a9b4a89](https://gitlab.com/pawamoy/gitolog/commit/a9b4a89cd2737056166feb7a46da971549f1ffed)).
29-
- Improve angular template, improve style/refs system ([5b87d48](https://gitlab.com/pawamoy/gitolog/commit/5b87d48acdf3aa0f5cc2731f48e372c4065d9f9b)).
30-
- Initial commit ([83845fe](https://gitlab.com/pawamoy/gitolog/commit/83845fe8d7deb85a2e093fe68a4b6a48b6d8e446)).
31-
- Package code (#6) ([1219eaf](https://gitlab.com/pawamoy/gitolog/commit/1219eafd02521f6f6ab942a02b7a7aee3d664143)).
32-
- Update changelog for version 0.1.0 ([14edcaf](https://gitlab.com/pawamoy/gitolog/commit/14edcaf078d02c42abf1692664c620c509df88a0)).
33-
- Update changelog for version 0.1.0 ([610633d](https://gitlab.com/pawamoy/gitolog/commit/610633da8a569e7f2966f1675a30aca651563e0b)).
34-
- Update changelog for version 0.1.0 ([2eaaa2e](https://gitlab.com/pawamoy/gitolog/commit/2eaaa2e76fc35d111517ecd0a15daf65e705723c)).
35-
- Work in progress ([27a60e8](https://gitlab.com/pawamoy/gitolog/commit/27a60e80e9a8308b88942311184346b1bfa4b0a8)).
26+
- Continue packaging (#6) ([a29af2c](https://gitlab.com/pawamoy/git-changelog/commit/a29af2cf990edf950b55a46ebea164ab068c9aec)).
27+
- Finish packaging (#6) ([e92b492](https://gitlab.com/pawamoy/git-changelog/commit/e92b4923a60d561c38150331dac9cd2e3ba6c130)).
28+
- Implement reference parsing ([a9b4a89](https://gitlab.com/pawamoy/git-changelog/commit/a9b4a89cd2737056166feb7a46da971549f1ffed)).
29+
- Improve angular template, improve style/refs system ([5b87d48](https://gitlab.com/pawamoy/git-changelog/commit/5b87d48acdf3aa0f5cc2731f48e372c4065d9f9b)).
30+
- Initial commit ([83845fe](https://gitlab.com/pawamoy/git-changelog/commit/83845fe8d7deb85a2e093fe68a4b6a48b6d8e446)).
31+
- Package code (#6) ([1219eaf](https://gitlab.com/pawamoy/git-changelog/commit/1219eafd02521f6f6ab942a02b7a7aee3d664143)).
32+
- Update changelog for version 0.1.0 ([14edcaf](https://gitlab.com/pawamoy/git-changelog/commit/14edcaf078d02c42abf1692664c620c509df88a0)).
33+
- Update changelog for version 0.1.0 ([610633d](https://gitlab.com/pawamoy/git-changelog/commit/610633da8a569e7f2966f1675a30aca651563e0b)).
34+
- Update changelog for version 0.1.0 ([2eaaa2e](https://gitlab.com/pawamoy/git-changelog/commit/2eaaa2e76fc35d111517ecd0a15daf65e705723c)).
35+
- Work in progress ([27a60e8](https://gitlab.com/pawamoy/git-changelog/commit/27a60e80e9a8308b88942311184346b1bfa4b0a8)).
3636

3737

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# gitolog
1+
# git-changelog
22
Automatic changelog generator. From git logs to change logs.
33

4-
- Installation: `sudo pip3 install gitolog`
4+
- Installation: `sudo pip3 install git-changelog`
55
- Features:
66
- [Jinja2][jinja2] templates!
77
You get full control over the rendering.
@@ -27,12 +27,12 @@ Automatic changelog generator. From git logs to change logs.
2727
## Command-line
2828

2929
```console
30-
$ gitolog --help
31-
usage: gitolog [-h] [-o OUTPUT] [-s {angular,atom,basic}]
32-
[-t {angular,keepachangelog}] [-v]
33-
REPOSITORY
30+
$ git-changelog --help
31+
usage: git-changelog [-h] [-o OUTPUT] [-s {angular,atom,basic}]
32+
[-t {angular,keepachangelog}] [-v]
33+
REPOSITORY
3434

35-
Command line tool for gitolog Python package.
35+
Command line tool for git-changelog Python package.
3636

3737
positional arguments:
3838
REPOSITORY The repository path, relative or absolute.
@@ -48,6 +48,7 @@ optional arguments:
4848
specify the path to a directory containing a file
4949
named "changelog.md".
5050
-v, --version Show the current version of the program and exit.
51+
5152
```
5253

5354
[jinja2]: http://jinja.pocoo.org/
@@ -60,10 +61,10 @@ optional arguments:
6061
[github-refs]: https://help.github.com/articles/autolinked-references-and-urls/
6162
[gitlab-refs]: https://docs.gitlab.com/ce/user/markdown.html#special-gitlab-references
6263

63-
[issue-1]: https://gitlab.com/pawamoy/gitolog/issues/1
64-
[issue-2]: https://gitlab.com/pawamoy/gitolog/issues/2
65-
[issue-3]: https://gitlab.com/pawamoy/gitolog/issues/3
66-
[issue-4]: https://gitlab.com/pawamoy/gitolog/issues/4
67-
[issue-5]: https://gitlab.com/pawamoy/gitolog/issues/5
68-
[issue-6]: https://gitlab.com/pawamoy/gitolog/issues/6
69-
[issue-7]: https://gitlab.com/pawamoy/gitolog/issues/7
64+
[issue-1]: https://gitlab.com/pawamoy/git-changelog/issues/1
65+
[issue-2]: https://gitlab.com/pawamoy/git-changelog/issues/2
66+
[issue-3]: https://gitlab.com/pawamoy/git-changelog/issues/3
67+
[issue-4]: https://gitlab.com/pawamoy/git-changelog/issues/4
68+
[issue-5]: https://gitlab.com/pawamoy/git-changelog/issues/5
69+
[issue-6]: https://gitlab.com/pawamoy/git-changelog/issues/6
70+
[issue-7]: https://gitlab.com/pawamoy/git-changelog/issues/7

docs/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pawamoy

scripts/check-docs-spelling.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
if poetry run sphinx-build -E -b spelling docs build/docs 2>/dev/null | sed 's/^/docs\//' | grep '\.rst:[0-9]'; then
3+
exit 1
4+
fi
5+
exit 0

scripts/gen-readme-data.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env python
2+
3+
import json
4+
# import argparse
5+
6+
from git_changelog.cli import get_parser
7+
8+
parser = get_parser()
9+
10+
output = {
11+
"main_usage": parser.format_help(),
12+
"commands": []
13+
}
14+
15+
# subparser_actions = [
16+
# action for action in parser._actions
17+
# if isinstance(action, argparse._SubParsersAction)
18+
# ]
19+
#
20+
# for subparser_action in subparser_actions:
21+
# for choice, subparser in subparser_action.choices.items():
22+
# output["commands"].append({
23+
# "name": choice,
24+
# "usage": subparser.format_help()
25+
# })
26+
27+
json_output = json.dumps(output)
28+
print(json_output)

scripts/templates/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# git-changelog
2+
Automatic changelog generator. From git logs to change logs.
3+
4+
- Installation: `sudo pip3 install git-changelog`
5+
- Features:
6+
- [Jinja2][jinja2] templates!
7+
You get full control over the rendering.
8+
Built-in [Keep a Changelog][keep-a-changelog] and [Angular][angular] templates
9+
(also see [Conventional Changelog][conventional-changelog]).
10+
- Commit styles/conventions parsing.
11+
Built-in [Angular][angular-style], [Atom][atom-style] and basic styles.
12+
- Git service/provider agnostic,
13+
plus references parsing (issues, commits, etc.).
14+
Built-in [GitHub][github-refs] and [Gitlab][gitlab-refs] support.
15+
- Understands [Semantic Versioning][semantic-versioning]:
16+
major/minor/patch for versions and commits.
17+
Guesses next version based on last commits.
18+
- Todo:
19+
- [Plugin architecture][issue-7],
20+
to support more commit styles and git services.
21+
- [Template context injection][issue-4],
22+
to furthermore customize how your changelog will be rendered.
23+
- [Easy access to "Breaking Changes"][issue-1] in the templates.
24+
- [Update changelog in-place][issue-2], paired with
25+
[commits/dates/versions range limitation ability][issue-3].
26+
27+
## Command-line
28+
29+
```console
30+
$ git-changelog --help
31+
{{ main_usage }}
32+
```
33+
34+
[jinja2]: http://jinja.pocoo.org/
35+
[keep-a-changelog]: http://keepachangelog.com/en/1.0.0/
36+
[angular]: https://github.com/angular/angular/blob/master/CHANGELOG.md
37+
[conventional-changelog]: https://github.com/conventional-changelog/conventional-changelog
38+
[semantic-versioning]: http://semver.org/spec/v2.0.0.html
39+
[atom-style]: https://github.com/atom/atom/blob/master/CONTRIBUTING.md#git-commit-messages
40+
[angular-style]: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit
41+
[github-refs]: https://help.github.com/articles/autolinked-references-and-urls/
42+
[gitlab-refs]: https://docs.gitlab.com/ce/user/markdown.html#special-gitlab-references
43+
44+
[issue-1]: https://gitlab.com/pawamoy/git-changelog/issues/1
45+
[issue-2]: https://gitlab.com/pawamoy/git-changelog/issues/2
46+
[issue-3]: https://gitlab.com/pawamoy/git-changelog/issues/3
47+
[issue-4]: https://gitlab.com/pawamoy/git-changelog/issues/4
48+
[issue-5]: https://gitlab.com/pawamoy/git-changelog/issues/5
49+
[issue-6]: https://gitlab.com/pawamoy/git-changelog/issues/6
50+
[issue-7]: https://gitlab.com/pawamoy/git-changelog/issues/7
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
cat docs/spelling_wordlist.txt > docs/tmpspell.txt
4+
grep '<w>' .idea/dictionaries/pawamoy.xml | sed -r 's/ *<w>(.*)<\/w>/\1/' >> docs/tmpspell.txt
5+
sort -u docs/tmpspell.txt > docs/spelling_wordlist.txt
6+
rm docs/tmpspell.txt

src/git_changelog/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Entrypoint module, in case you use `python -mgitolog`.
2+
Entrypoint module, in case you use `python -m git_changelog`.
33
44
Why does this file exist, and why __main__? For more info, read:
55
@@ -10,7 +10,7 @@
1010

1111
import sys
1212

13-
from gitolog.cli import main
13+
from git_changelog.cli import main
1414

1515
if __name__ == "__main__":
1616
main(sys.argv[1:])

src/git_changelog/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def __init__(self, repository, provider=None, style=None):
160160
try:
161161
style = self.STYLE[style]()
162162
except KeyError:
163-
print("gitolog: no such style available: %s, " "using default style" % style, file=sys.stderr)
163+
print("git-changelog: no such style available: %s, " "using default style" % style, file=sys.stderr)
164164
style = BasicStyle()
165165
elif style is None:
166166
style = BasicStyle()

src/git_changelog/cli.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
44
Why does this file exist, and why not put this in __main__?
55
6-
You might be tempted to import things from __main__ later,
7-
but that will cause problems: the code will get executed twice:
6+
You might be tempted to import things from __main__ later,
7+
but that will cause problems: the code will get executed twice:
88
9-
- When you run `python -mgitolog` python will execute
10-
``__main__.py`` as a script. That means there won't be any
11-
``gitolog.__main__`` in ``sys.modules``.
12-
- When you import __main__ it will get executed again (as a module) because
13-
there's no ``gitolog.__main__`` in ``sys.modules``.
9+
- When you run `python -m git_changelog` python will execute
10+
``__main__.py`` as a script. That means there won't be any
11+
``git_changelog.__main__`` in ``sys.modules``.
12+
- When you import __main__ it will get executed again (as a module) because
13+
there's no ``git_changelog.__main__`` in ``sys.modules``.
1414
15-
Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
15+
Also see http://click.pocoo.org/5/setuptools/#setuptools-integration.
1616
"""
1717

1818
from __future__ import print_function
1919

2020
import argparse
2121
import sys
2222

23-
from . import __version__, templates
23+
from . import templates
2424
from .build import Changelog
2525

2626
STYLES = ("angular", "atom", "basic")
@@ -33,7 +33,7 @@ def __contains__(self, item):
3333

3434
def get_parser():
3535
"""Return a parser for the command-line arguments."""
36-
parser = argparse.ArgumentParser(add_help=False, description="Command line tool for gitolog Python package.")
36+
parser = argparse.ArgumentParser(add_help=False, prog="git-changelog", description="Command line tool for git-changelog Python package.")
3737

3838
parser.add_argument("repository", metavar="REPOSITORY", help="The repository path, relative or absolute.")
3939

@@ -64,7 +64,7 @@ def get_parser():
6464
"-v",
6565
"--version",
6666
action="version",
67-
version="gitolog %s" % __version__,
67+
version="git-changelog 0.1.0",
6868
help="Show the current version of the program and exit.",
6969
)
7070
return parser
@@ -80,7 +80,7 @@ def main(args=None):
8080
try:
8181
template = templates.get_custom_template(path)
8282
except FileNotFoundError:
83-
print("gitolog: no such directory, " "or missing changelog.md: %s" % path, file=sys.stderr)
83+
print("git-changelog: no such directory, " "or missing changelog.md: %s" % path, file=sys.stderr)
8484
return 1
8585
else:
8686
template = templates.get_template(args.template)

0 commit comments

Comments
 (0)