changes-semver 6.0.3__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.3/LICENSE +21 -0
- changes_semver-6.0.3/PKG-INFO +56 -0
- changes_semver-6.0.3/README.md +45 -0
- changes_semver-6.0.3/changes_semver/__init__.py +23 -0
- changes_semver-6.0.3/changes_semver/__main__.py +13 -0
- changes_semver-6.0.3/changes_semver/changes.py +886 -0
- changes_semver-6.0.3/changes_semver/cli.py +80 -0
- changes_semver-6.0.3/changes_semver/templates/multiple.markdown +9 -0
- changes_semver-6.0.3/changes_semver/templates/single.markdown +9 -0
- changes_semver-6.0.3/changes_semver.egg-info/PKG-INFO +56 -0
- changes_semver-6.0.3/changes_semver.egg-info/SOURCES.txt +20 -0
- changes_semver-6.0.3/changes_semver.egg-info/dependency_links.txt +1 -0
- changes_semver-6.0.3/changes_semver.egg-info/entry_points.txt +2 -0
- changes_semver-6.0.3/changes_semver.egg-info/requires.txt +2 -0
- changes_semver-6.0.3/changes_semver.egg-info/top_level.txt +1 -0
- changes_semver-6.0.3/pyproject.toml +22 -0
- changes_semver-6.0.3/setup.cfg +4 -0
- changes_semver-6.0.3/setup.py +28 -0
- changes_semver-6.0.3/tests/test_cli.py +1064 -0
- changes_semver-6.0.3/tests/test_common.py +73 -0
- changes_semver-6.0.3/tests/test_history.py +114 -0
- changes_semver-6.0.3/tests/test_version.py +197 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-2024 Jason Morley
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: changes-semver
|
|
3
|
+
Version: 6.0.3
|
|
4
|
+
Author-email: Jason Morley <hello@jbmorley.co.uk>
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: jinja2
|
|
9
|
+
Requires-Dist: pyyaml
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
|
|
12
|
+
# Changes
|
|
13
|
+
|
|
14
|
+
[](https://github.com/jbmorley/changes/actions/workflows/test.yaml)
|
|
15
|
+
|
|
16
|
+
Lightweight and (hopefully) unopinionated tool for working with [Conventional Commits](https://www.conventionalcommits.org/) and [Semantic Versioning](https://semver.org).
|
|
17
|
+
|
|
18
|
+
## Overview
|
|
19
|
+
|
|
20
|
+
Many of the SemVer tools out there force very specific workflows that I found hard to adopt in my own projects. Changes attempts to provide a collection of tools that fit into your own project lifecycle.
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
git clone git@github.com:jbmorley/changes.git
|
|
26
|
+
cd changes
|
|
27
|
+
pipenv install
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
changes --help
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
You can also find out details of specific sub-commands by passing the `--help` flag directly to those commands. For example,
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
changes release --help
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
### Tests
|
|
45
|
+
|
|
46
|
+
Run tests locally using the `test.sh` script:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
./scripts/test.sh
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
You can run a specific test by specifying the test class on the command line:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
./scripts/test.sh test_cli.CLITestCase.test_version_multiple_changes_yield_single_increment
|
|
56
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Changes
|
|
2
|
+
|
|
3
|
+
[](https://github.com/jbmorley/changes/actions/workflows/test.yaml)
|
|
4
|
+
|
|
5
|
+
Lightweight and (hopefully) unopinionated tool for working with [Conventional Commits](https://www.conventionalcommits.org/) and [Semantic Versioning](https://semver.org).
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
Many of the SemVer tools out there force very specific workflows that I found hard to adopt in my own projects. Changes attempts to provide a collection of tools that fit into your own project lifecycle.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
git clone git@github.com:jbmorley/changes.git
|
|
15
|
+
cd changes
|
|
16
|
+
pipenv install
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
changes --help
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
You can also find out details of specific sub-commands by passing the `--help` flag directly to those commands. For example,
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
changes release --help
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
### Tests
|
|
34
|
+
|
|
35
|
+
Run tests locally using the `test.sh` script:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
./scripts/test.sh
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
You can run a specific test by specifying the test class on the command line:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
./scripts/test.sh test_cli.CLITestCase.test_version_multiple_changes_yield_single_increment
|
|
45
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2021-2024 Jason Morley
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
from . import *
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
if not __package__:
|
|
5
|
+
# Make CLI runnable from source tree with
|
|
6
|
+
# python src/package
|
|
7
|
+
package_source_path = os.path.dirname(os.path.dirname(__file__))
|
|
8
|
+
sys.path.insert(0, package_source_path)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
if __name__ == "__main__":
|
|
12
|
+
from changes_semver.changes import main
|
|
13
|
+
main()
|