tinysemver 1.3.2__tar.gz → 1.3.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.
- {tinysemver-1.3.2/tinysemver.egg-info → tinysemver-1.3.3}/PKG-INFO +20 -11
- {tinysemver-1.3.2 → tinysemver-1.3.3}/README.md +18 -9
- {tinysemver-1.3.2 → tinysemver-1.3.3}/pyproject.toml +2 -1
- {tinysemver-1.3.2 → tinysemver-1.3.3/tinysemver.egg-info}/PKG-INFO +20 -11
- {tinysemver-1.3.2 → tinysemver-1.3.3}/LICENSE +0 -0
- {tinysemver-1.3.2 → tinysemver-1.3.3}/setup.cfg +0 -0
- {tinysemver-1.3.2 → tinysemver-1.3.3}/tinysemver.egg-info/SOURCES.txt +0 -0
- {tinysemver-1.3.2 → tinysemver-1.3.3}/tinysemver.egg-info/dependency_links.txt +0 -0
- {tinysemver-1.3.2 → tinysemver-1.3.3}/tinysemver.egg-info/entry_points.txt +0 -0
- {tinysemver-1.3.2 → tinysemver-1.3.3}/tinysemver.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinysemver
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: Tiny Semantic Versioning (SemVer) library, that doesn't depend on 300K lines of JavaScript
|
|
5
|
-
Author-email: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>
|
|
5
|
+
Author-email: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>, Guillaume de Rouville <31691250+grouville@users.noreply.github.com>
|
|
6
6
|
License: Apache License
|
|
7
7
|
Version 2.0, January 2004
|
|
8
8
|
http://www.apache.org/licenses/
|
|
@@ -246,7 +246,7 @@ If you need more control over the default specification, here are more options y
|
|
|
246
246
|
$ tinysemver --verbose \
|
|
247
247
|
--major-verbs 'breaking,break,major' \
|
|
248
248
|
--minor-verbs 'feature,minor,add,new' \
|
|
249
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
249
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
250
250
|
--changelog-file 'CHANGELOG.md' \
|
|
251
251
|
--version-file 'VERSION' \
|
|
252
252
|
--update-version-in 'pyproject.toml' '^version = "(\d+\.\d+\.\d+)"' \
|
|
@@ -262,7 +262,7 @@ Here is an example of passing even more parameters for a project like `stringzil
|
|
|
262
262
|
$ tinysemver --verbose \
|
|
263
263
|
--major-verbs 'breaking,break,major' \
|
|
264
264
|
--minor-verbs 'feature,minor,add,new' \
|
|
265
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
265
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
266
266
|
--changelog-file 'CHANGELOG.md' \
|
|
267
267
|
--version-file 'VERSION' \
|
|
268
268
|
--update-version-in 'pyproject.toml' '^version = "(\d+\.\d+\.\d+)"' \
|
|
@@ -311,9 +311,7 @@ on:
|
|
|
311
311
|
branches: [ main ]
|
|
312
312
|
|
|
313
313
|
jobs:
|
|
314
|
-
|
|
315
|
-
# Add this condition to skip recursive releases
|
|
316
|
-
if: "!contains(github.event.head_commit.message, 'Release:')"
|
|
314
|
+
semver:
|
|
317
315
|
runs-on: ubuntu-latest
|
|
318
316
|
|
|
319
317
|
steps:
|
|
@@ -323,7 +321,7 @@ jobs:
|
|
|
323
321
|
# Your existing steps...
|
|
324
322
|
|
|
325
323
|
- name: Run TinySemVer
|
|
326
|
-
uses:
|
|
324
|
+
uses: ashvardanian/tinysemver@v1
|
|
327
325
|
with:
|
|
328
326
|
dry-run: 'true'
|
|
329
327
|
verbose: 'true'
|
|
@@ -338,6 +336,15 @@ jobs:
|
|
|
338
336
|
git-user-email: 'actions@github.com'
|
|
339
337
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
340
338
|
create-release: 'true'
|
|
339
|
+
|
|
340
|
+
publish:
|
|
341
|
+
needs: semver
|
|
342
|
+
runs-on: ubuntu-latest
|
|
343
|
+
|
|
344
|
+
steps:
|
|
345
|
+
- uses: actions/checkout@v4
|
|
346
|
+
with:
|
|
347
|
+
ref: main # Take the most recent updated version
|
|
341
348
|
```
|
|
342
349
|
|
|
343
350
|
### Security Considerations for Protected Branches
|
|
@@ -347,7 +354,8 @@ If your default branch is protected with a "pull request before merging" rule:
|
|
|
347
354
|
1. A repository-scoped Personal Access Token (PAT) is required to push to the branch.
|
|
348
355
|
2. Set `persist-credentials: false` in the `actions/checkout` step.
|
|
349
356
|
|
|
350
|
-
|
|
357
|
+
Also keep in mind:
|
|
358
|
+
|
|
351
359
|
- The default `GITHUB_TOKEN` cannot be used with protected branches.
|
|
352
360
|
- Using a PAT instead of `GITHUB_TOKEN` poses security risks:
|
|
353
361
|
- Workflows from any branch can access secret variables.
|
|
@@ -357,7 +365,8 @@ If your default branch is protected with a "pull request before merging" rule:
|
|
|
357
365
|
- Prefer the `pull_request` workflow trigger, which limits permissions.
|
|
358
366
|
- Be cautious: users with write access could still potentially exploit workflows to expose the PAT.
|
|
359
367
|
|
|
360
|
-
|
|
368
|
+
> [!TIP]
|
|
369
|
+
> Always follow the principle of least privilege when setting up tokens and permissions.
|
|
361
370
|
|
|
362
371
|
For more information on CI configurations and pushing changes in GitHub Actions, see the [semantic-release GitHub Actions guide](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md#pushing-packagejson-changes-to-a-master-branch).
|
|
363
372
|
|
|
@@ -489,7 +498,7 @@ $ wget https://github.com/unum-cloud/usearch/raw/main/include/usearch/index.hpp
|
|
|
489
498
|
$ tinysemver --dry-run --verbose \
|
|
490
499
|
--major-verbs 'breaking,break,major' \
|
|
491
500
|
--minor-verbs 'feature,minor,add,new' \
|
|
492
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
501
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
493
502
|
--version-file 'example/VERSION' \
|
|
494
503
|
--changelog-file 'example/CHANGELOG.md' \
|
|
495
504
|
--update-version-in 'example/CITATION.cff' '^version: (\d+\.\d+\.\d+)' \
|
|
@@ -20,7 +20,7 @@ If you need more control over the default specification, here are more options y
|
|
|
20
20
|
$ tinysemver --verbose \
|
|
21
21
|
--major-verbs 'breaking,break,major' \
|
|
22
22
|
--minor-verbs 'feature,minor,add,new' \
|
|
23
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
23
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
24
24
|
--changelog-file 'CHANGELOG.md' \
|
|
25
25
|
--version-file 'VERSION' \
|
|
26
26
|
--update-version-in 'pyproject.toml' '^version = "(\d+\.\d+\.\d+)"' \
|
|
@@ -36,7 +36,7 @@ Here is an example of passing even more parameters for a project like `stringzil
|
|
|
36
36
|
$ tinysemver --verbose \
|
|
37
37
|
--major-verbs 'breaking,break,major' \
|
|
38
38
|
--minor-verbs 'feature,minor,add,new' \
|
|
39
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
39
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
40
40
|
--changelog-file 'CHANGELOG.md' \
|
|
41
41
|
--version-file 'VERSION' \
|
|
42
42
|
--update-version-in 'pyproject.toml' '^version = "(\d+\.\d+\.\d+)"' \
|
|
@@ -85,9 +85,7 @@ on:
|
|
|
85
85
|
branches: [ main ]
|
|
86
86
|
|
|
87
87
|
jobs:
|
|
88
|
-
|
|
89
|
-
# Add this condition to skip recursive releases
|
|
90
|
-
if: "!contains(github.event.head_commit.message, 'Release:')"
|
|
88
|
+
semver:
|
|
91
89
|
runs-on: ubuntu-latest
|
|
92
90
|
|
|
93
91
|
steps:
|
|
@@ -97,7 +95,7 @@ jobs:
|
|
|
97
95
|
# Your existing steps...
|
|
98
96
|
|
|
99
97
|
- name: Run TinySemVer
|
|
100
|
-
uses:
|
|
98
|
+
uses: ashvardanian/tinysemver@v1
|
|
101
99
|
with:
|
|
102
100
|
dry-run: 'true'
|
|
103
101
|
verbose: 'true'
|
|
@@ -112,6 +110,15 @@ jobs:
|
|
|
112
110
|
git-user-email: 'actions@github.com'
|
|
113
111
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
114
112
|
create-release: 'true'
|
|
113
|
+
|
|
114
|
+
publish:
|
|
115
|
+
needs: semver
|
|
116
|
+
runs-on: ubuntu-latest
|
|
117
|
+
|
|
118
|
+
steps:
|
|
119
|
+
- uses: actions/checkout@v4
|
|
120
|
+
with:
|
|
121
|
+
ref: main # Take the most recent updated version
|
|
115
122
|
```
|
|
116
123
|
|
|
117
124
|
### Security Considerations for Protected Branches
|
|
@@ -121,7 +128,8 @@ If your default branch is protected with a "pull request before merging" rule:
|
|
|
121
128
|
1. A repository-scoped Personal Access Token (PAT) is required to push to the branch.
|
|
122
129
|
2. Set `persist-credentials: false` in the `actions/checkout` step.
|
|
123
130
|
|
|
124
|
-
|
|
131
|
+
Also keep in mind:
|
|
132
|
+
|
|
125
133
|
- The default `GITHUB_TOKEN` cannot be used with protected branches.
|
|
126
134
|
- Using a PAT instead of `GITHUB_TOKEN` poses security risks:
|
|
127
135
|
- Workflows from any branch can access secret variables.
|
|
@@ -131,7 +139,8 @@ If your default branch is protected with a "pull request before merging" rule:
|
|
|
131
139
|
- Prefer the `pull_request` workflow trigger, which limits permissions.
|
|
132
140
|
- Be cautious: users with write access could still potentially exploit workflows to expose the PAT.
|
|
133
141
|
|
|
134
|
-
|
|
142
|
+
> [!TIP]
|
|
143
|
+
> Always follow the principle of least privilege when setting up tokens and permissions.
|
|
135
144
|
|
|
136
145
|
For more information on CI configurations and pushing changes in GitHub Actions, see the [semantic-release GitHub Actions guide](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md#pushing-packagejson-changes-to-a-master-branch).
|
|
137
146
|
|
|
@@ -263,7 +272,7 @@ $ wget https://github.com/unum-cloud/usearch/raw/main/include/usearch/index.hpp
|
|
|
263
272
|
$ tinysemver --dry-run --verbose \
|
|
264
273
|
--major-verbs 'breaking,break,major' \
|
|
265
274
|
--minor-verbs 'feature,minor,add,new' \
|
|
266
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
275
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
267
276
|
--version-file 'example/VERSION' \
|
|
268
277
|
--changelog-file 'example/CHANGELOG.md' \
|
|
269
278
|
--update-version-in 'example/CITATION.cff' '^version: (\d+\.\d+\.\d+)' \
|
|
@@ -4,12 +4,13 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tinysemver"
|
|
7
|
-
version = "1.3.
|
|
7
|
+
version = "1.3.3"
|
|
8
8
|
description = "Tiny Semantic Versioning (SemVer) library, that doesn't depend on 300K lines of JavaScript"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { file = "LICENSE" }
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "Ash Vardanian", email = "1983160+ashvardanian@users.noreply.github.com" },
|
|
13
|
+
{ name = "Guillaume de Rouville", email = "31691250+grouville@users.noreply.github.com" },
|
|
13
14
|
]
|
|
14
15
|
classifiers = [
|
|
15
16
|
"Development Status :: 4 - Beta",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinysemver
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: Tiny Semantic Versioning (SemVer) library, that doesn't depend on 300K lines of JavaScript
|
|
5
|
-
Author-email: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>
|
|
5
|
+
Author-email: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>, Guillaume de Rouville <31691250+grouville@users.noreply.github.com>
|
|
6
6
|
License: Apache License
|
|
7
7
|
Version 2.0, January 2004
|
|
8
8
|
http://www.apache.org/licenses/
|
|
@@ -246,7 +246,7 @@ If you need more control over the default specification, here are more options y
|
|
|
246
246
|
$ tinysemver --verbose \
|
|
247
247
|
--major-verbs 'breaking,break,major' \
|
|
248
248
|
--minor-verbs 'feature,minor,add,new' \
|
|
249
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
249
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
250
250
|
--changelog-file 'CHANGELOG.md' \
|
|
251
251
|
--version-file 'VERSION' \
|
|
252
252
|
--update-version-in 'pyproject.toml' '^version = "(\d+\.\d+\.\d+)"' \
|
|
@@ -262,7 +262,7 @@ Here is an example of passing even more parameters for a project like `stringzil
|
|
|
262
262
|
$ tinysemver --verbose \
|
|
263
263
|
--major-verbs 'breaking,break,major' \
|
|
264
264
|
--minor-verbs 'feature,minor,add,new' \
|
|
265
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
265
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
266
266
|
--changelog-file 'CHANGELOG.md' \
|
|
267
267
|
--version-file 'VERSION' \
|
|
268
268
|
--update-version-in 'pyproject.toml' '^version = "(\d+\.\d+\.\d+)"' \
|
|
@@ -311,9 +311,7 @@ on:
|
|
|
311
311
|
branches: [ main ]
|
|
312
312
|
|
|
313
313
|
jobs:
|
|
314
|
-
|
|
315
|
-
# Add this condition to skip recursive releases
|
|
316
|
-
if: "!contains(github.event.head_commit.message, 'Release:')"
|
|
314
|
+
semver:
|
|
317
315
|
runs-on: ubuntu-latest
|
|
318
316
|
|
|
319
317
|
steps:
|
|
@@ -323,7 +321,7 @@ jobs:
|
|
|
323
321
|
# Your existing steps...
|
|
324
322
|
|
|
325
323
|
- name: Run TinySemVer
|
|
326
|
-
uses:
|
|
324
|
+
uses: ashvardanian/tinysemver@v1
|
|
327
325
|
with:
|
|
328
326
|
dry-run: 'true'
|
|
329
327
|
verbose: 'true'
|
|
@@ -338,6 +336,15 @@ jobs:
|
|
|
338
336
|
git-user-email: 'actions@github.com'
|
|
339
337
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
340
338
|
create-release: 'true'
|
|
339
|
+
|
|
340
|
+
publish:
|
|
341
|
+
needs: semver
|
|
342
|
+
runs-on: ubuntu-latest
|
|
343
|
+
|
|
344
|
+
steps:
|
|
345
|
+
- uses: actions/checkout@v4
|
|
346
|
+
with:
|
|
347
|
+
ref: main # Take the most recent updated version
|
|
341
348
|
```
|
|
342
349
|
|
|
343
350
|
### Security Considerations for Protected Branches
|
|
@@ -347,7 +354,8 @@ If your default branch is protected with a "pull request before merging" rule:
|
|
|
347
354
|
1. A repository-scoped Personal Access Token (PAT) is required to push to the branch.
|
|
348
355
|
2. Set `persist-credentials: false` in the `actions/checkout` step.
|
|
349
356
|
|
|
350
|
-
|
|
357
|
+
Also keep in mind:
|
|
358
|
+
|
|
351
359
|
- The default `GITHUB_TOKEN` cannot be used with protected branches.
|
|
352
360
|
- Using a PAT instead of `GITHUB_TOKEN` poses security risks:
|
|
353
361
|
- Workflows from any branch can access secret variables.
|
|
@@ -357,7 +365,8 @@ If your default branch is protected with a "pull request before merging" rule:
|
|
|
357
365
|
- Prefer the `pull_request` workflow trigger, which limits permissions.
|
|
358
366
|
- Be cautious: users with write access could still potentially exploit workflows to expose the PAT.
|
|
359
367
|
|
|
360
|
-
|
|
368
|
+
> [!TIP]
|
|
369
|
+
> Always follow the principle of least privilege when setting up tokens and permissions.
|
|
361
370
|
|
|
362
371
|
For more information on CI configurations and pushing changes in GitHub Actions, see the [semantic-release GitHub Actions guide](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md#pushing-packagejson-changes-to-a-master-branch).
|
|
363
372
|
|
|
@@ -489,7 +498,7 @@ $ wget https://github.com/unum-cloud/usearch/raw/main/include/usearch/index.hpp
|
|
|
489
498
|
$ tinysemver --dry-run --verbose \
|
|
490
499
|
--major-verbs 'breaking,break,major' \
|
|
491
500
|
--minor-verbs 'feature,minor,add,new' \
|
|
492
|
-
--patch-verbs 'fix,patch,bug,improve' \
|
|
501
|
+
--patch-verbs 'fix,patch,bug,improve,docs' \
|
|
493
502
|
--version-file 'example/VERSION' \
|
|
494
503
|
--changelog-file 'example/CHANGELOG.md' \
|
|
495
504
|
--update-version-in 'example/CITATION.cff' '^version: (\d+\.\d+\.\d+)' \
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|