File tree 5 files changed +92
-1
lines changed
5 files changed +92
-1
lines changed Original file line number Diff line number Diff line change 51
51
- name : Test uninstall
52
52
run : |
53
53
python3 -m pip uninstall -y reverse_argparse
54
+
55
+ commits :
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - name : Conventional Commits
59
+
60
+ with :
61
+ types : " build|chore|ci|docs|feat|fix|perf|style|refactor|test"
Original file line number Diff line number Diff line change
1
+ name : Semantic Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ concurrency : release
12
+ permissions :
13
+ id-token : write
14
+ contents : write
15
+
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ with :
19
+ fetch-depth : 0
20
+ token : ${{ secrets.GH_TOKEN }}
21
+
22
+ - name : Python Semantic Release
23
+ uses : python-semantic-release/python-semantic-release@master
24
+ with :
25
+ github_token : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ classifiers = [
50
50
" Topic :: Software Development :: Debuggers" ,
51
51
" Topic :: Software Development :: Documentation" ,
52
52
" Topic :: Software Development :: User Interfaces" ,
53
- " Typing :: Typed"
53
+ " Typing :: Typed" ,
54
54
]
55
55
56
56
@@ -66,3 +66,31 @@ python = ">=3.8"
66
66
[tool .poetry .dev-dependencies ]
67
67
# At some point, convert from the various requirements.txt files to this
68
68
# list of Poetry development dependencies.
69
+
70
+
71
+ [tool .semantic_release ]
72
+ commit_message = """
73
+ {version}
74
+
75
+ Automatically generated by python-semantic-release."""
76
+ version_variables = [
77
+ " doc/source/conf.py:version" ,
78
+ ]
79
+ version_toml = [
80
+ " pyproject.toml:tool.poetry.version" ,
81
+ ]
82
+
83
+
84
+ [tool .semantic_release .branches .master ]
85
+ match = " master"
86
+
87
+
88
+ [tool .semantic_release .changelog ]
89
+ exclude_commit_patterns = [
90
+ " Merge pull request" ,
91
+ ]
92
+
93
+
94
+ [tool .semantic_release .commit_author ]
95
+ env = " GIT_COMMIT_AUTHOR"
96
+ default = " semantic-release <semantic-release>"
Original file line number Diff line number Diff line change 7
7
from .reverse_argparse import ReverseArgumentParser , quote_arg_if_necessary
8
8
9
9
__all__ = ["ReverseArgumentParser" , "quote_arg_if_necessary" ]
10
+ __version__ = "1.0.0"
Original file line number Diff line number Diff line change
1
+ # CHANGELOG
2
+
3
+
4
+ {% if context .history .unreleased | length > 0 %}
5
+ ## Unreleased
6
+ {% for type_ , commits in context .history .unreleased | dictsort %}
7
+ ### {{ type_ | capitalize if type_ != "ci" else "Continuous Integration "}}
8
+ {% for commit in commits -%}
9
+ {% - set summary = commit .message .rstrip ().splitlines ()[0] -%}
10
+ {% - set details = commit .message .rstrip ().splitlines ()[2:] -%}
11
+ * {{ summary }} ([`{{ commit.hexsha[:7] }}`]({{ commit.hexsha | commit_hash_url }}))
12
+ {% if details %}
13
+ {% for line in details %}{% if line .strip () %} {{ line }}{% endif %}
14
+ {% endfor %}{% endif %}{% endfor -%}
15
+ {% endfor %}
16
+ {% endif %}
17
+
18
+ {% for version , release in context .history .released .items () -%}
19
+ ## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
20
+ {% for type_ , commits in release ["elements" ] | dictsort %}
21
+ ### {{ type_ | capitalize if type_ != "ci" else "Continuous Integration "}}
22
+ {% for commit in commits -%}
23
+ {% - set summary = commit .message .rstrip ().splitlines ()[0] -%}
24
+ {% - set details = commit .message .rstrip ().splitlines ()[2:] -%}
25
+ * {{ summary }} ([`{{ commit.hexsha[:7] }}`]({{ commit.hexsha | commit_hash_url }}))
26
+ {% if details %}
27
+ {% for line in details %}{% if line .strip () %} {{ line }}{% endif %}
28
+ {% endfor %}{% endif -%}
29
+ {% endfor %}{% endfor %}{% endfor %}
You can’t perform that action at this time.
0 commit comments