changes-semver 6.0.6__tar.gz → 6.0.7__tar.gz
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.
- {changes_semver-6.0.6 → changes_semver-6.0.7}/PKG-INFO +22 -2
- {changes_semver-6.0.6 → changes_semver-6.0.7}/README.md +21 -1
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver/changes.py +1 -4
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver.egg-info/PKG-INFO +22 -2
- {changes_semver-6.0.6 → changes_semver-6.0.7}/tests/test_cli.py +1 -2
- {changes_semver-6.0.6 → changes_semver-6.0.7}/LICENSE +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver/__init__.py +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver/__main__.py +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver/templates/multiple.markdown +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver/templates/single.markdown +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver.egg-info/SOURCES.txt +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver.egg-info/dependency_links.txt +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver.egg-info/entry_points.txt +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver.egg-info/requires.txt +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/changes_semver.egg-info/top_level.txt +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/pyproject.toml +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/setup.cfg +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/setup.py +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/tests/test_common.py +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/tests/test_history.py +0 -0
- {changes_semver-6.0.6 → changes_semver-6.0.7}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: changes-semver
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.7
|
|
4
4
|
Author-email: Jason Morley <hello@jbmorley.co.uk>
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -10,7 +10,7 @@ Requires-Dist: jinja2
|
|
|
10
10
|
Requires-Dist: pyyaml
|
|
11
11
|
Dynamic: license-file
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# Changes
|
|
14
14
|
|
|
15
15
|
[](https://github.com/jbmorley/changes/actions/workflows/build.yaml)
|
|
16
16
|
|
|
@@ -86,6 +86,26 @@ Or see the details of specific sub-commands by passing the `--help` flag directl
|
|
|
86
86
|
changes release --help
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
+
### Alternative Histories
|
|
90
|
+
|
|
91
|
+
Sometimes you might need to provide your own list of changes for specific releases—this can be helpful if you forgot to adhere to Conventional Commits or, perhaps, you want to provide a custom list of changes for your initial release. Changes supports this, allowing you to replace the list of changes for any release specified a simple YAML file:
|
|
92
|
+
|
|
93
|
+
1. Create a YAML file containing the releases you want to change. For example,
|
|
94
|
+
```yaml
|
|
95
|
+
"1.0.0":
|
|
96
|
+
- "feat: Initial release"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
2. Pass this alternative history file to any changes command:
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
changes notes --history history.yaml
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
> [!NOTE]
|
|
106
|
+
>
|
|
107
|
+
> Changes replaces all the changes in the named releases with those listed in the YAML file; you will need to manually include any change you want listed for releases you override.
|
|
108
|
+
|
|
89
109
|
## Development
|
|
90
110
|
|
|
91
111
|
### Setup
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changes
|
|
2
2
|
|
|
3
3
|
[](https://github.com/jbmorley/changes/actions/workflows/build.yaml)
|
|
4
4
|
|
|
@@ -74,6 +74,26 @@ Or see the details of specific sub-commands by passing the `--help` flag directl
|
|
|
74
74
|
changes release --help
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
### Alternative Histories
|
|
78
|
+
|
|
79
|
+
Sometimes you might need to provide your own list of changes for specific releases—this can be helpful if you forgot to adhere to Conventional Commits or, perhaps, you want to provide a custom list of changes for your initial release. Changes supports this, allowing you to replace the list of changes for any release specified a simple YAML file:
|
|
80
|
+
|
|
81
|
+
1. Create a YAML file containing the releases you want to change. For example,
|
|
82
|
+
```yaml
|
|
83
|
+
"1.0.0":
|
|
84
|
+
- "feat: Initial release"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
2. Pass this alternative history file to any changes command:
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
changes notes --history history.yaml
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
> [!NOTE]
|
|
94
|
+
>
|
|
95
|
+
> Changes replaces all the changes in the named releases with those listed in the YAML file; you will need to manually include any change you want listed for releases you override.
|
|
96
|
+
|
|
77
97
|
## Development
|
|
78
98
|
|
|
79
99
|
### Setup
|
|
@@ -401,9 +401,6 @@ class Release(object):
|
|
|
401
401
|
def is_initial_development(self):
|
|
402
402
|
return self.version.is_initial_development
|
|
403
403
|
|
|
404
|
-
def merge(self, release):
|
|
405
|
-
self.changes.extend(release.changes)
|
|
406
|
-
|
|
407
404
|
@property
|
|
408
405
|
def sections(self):
|
|
409
406
|
return group_changes(self.changes)
|
|
@@ -510,7 +507,7 @@ class History(object):
|
|
|
510
507
|
if self.history is not None:
|
|
511
508
|
for version, release in load_history(path=self.history, prefix=self.scope).items():
|
|
512
509
|
try:
|
|
513
|
-
releases_by_version[version].
|
|
510
|
+
releases_by_version[version].changes = release.changes
|
|
514
511
|
except KeyError:
|
|
515
512
|
releases_by_version[version] = release
|
|
516
513
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: changes-semver
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.7
|
|
4
4
|
Author-email: Jason Morley <hello@jbmorley.co.uk>
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -10,7 +10,7 @@ Requires-Dist: jinja2
|
|
|
10
10
|
Requires-Dist: pyyaml
|
|
11
11
|
Dynamic: license-file
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# Changes
|
|
14
14
|
|
|
15
15
|
[](https://github.com/jbmorley/changes/actions/workflows/build.yaml)
|
|
16
16
|
|
|
@@ -86,6 +86,26 @@ Or see the details of specific sub-commands by passing the `--help` flag directl
|
|
|
86
86
|
changes release --help
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
+
### Alternative Histories
|
|
90
|
+
|
|
91
|
+
Sometimes you might need to provide your own list of changes for specific releases—this can be helpful if you forgot to adhere to Conventional Commits or, perhaps, you want to provide a custom list of changes for your initial release. Changes supports this, allowing you to replace the list of changes for any release specified a simple YAML file:
|
|
92
|
+
|
|
93
|
+
1. Create a YAML file containing the releases you want to change. For example,
|
|
94
|
+
```yaml
|
|
95
|
+
"1.0.0":
|
|
96
|
+
- "feat: Initial release"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
2. Pass this alternative history file to any changes command:
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
changes notes --history history.yaml
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
> [!NOTE]
|
|
106
|
+
>
|
|
107
|
+
> Changes replaces all the changes in the named releases with those listed in the YAML file; you will need to manually include any change you want listed for releases you override.
|
|
108
|
+
|
|
89
109
|
## Development
|
|
90
110
|
|
|
91
111
|
### Setup
|
|
@@ -990,7 +990,7 @@ fi
|
|
|
990
990
|
- Foo
|
|
991
991
|
""")
|
|
992
992
|
|
|
993
|
-
def
|
|
993
|
+
def test_notes_additional_history_overrides_changes(self):
|
|
994
994
|
with Repository() as repository:
|
|
995
995
|
repository.perform([
|
|
996
996
|
EmptyCommit("initial commit"),
|
|
@@ -1011,7 +1011,6 @@ fi
|
|
|
1011
1011
|
|
|
1012
1012
|
- Baz
|
|
1013
1013
|
- Bar
|
|
1014
|
-
- New and exciting
|
|
1015
1014
|
|
|
1016
1015
|
**Fixes**
|
|
1017
1016
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|