File tree 13 files changed +919
-71
lines changed
13 files changed +919
-71
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" :
" https://unpkg.com/@changesets/[email protected] /schema.json" ,
3
+ "changelog" : [
4
+ " @fingerprintjs/changesets-changelog-format" ,
5
+ {
6
+ "repo" : " fingerprintjs/fingerprint-pro-server-api-python-sdk"
7
+ }
8
+ ],
9
+ "commit" : false ,
10
+ "fixed" : [],
11
+ "linked" : [],
12
+ "access" : " restricted" ,
13
+ "baseBranch" : " main" ,
14
+ "updateInternalDependencies" : " patch" ,
15
+ "ignore" : [],
16
+ "privatePackages" : {
17
+ "version" : true ,
18
+ "tag" : true
19
+ }
20
+ }
Original file line number Diff line number Diff line change 8
8
analyze-commits :
9
9
name : Generate docs and coverage report
10
10
uses : fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1
11
+ with :
12
+ previewNotes : false
13
+
14
+ preview-changeset :
15
+ name : Preview changeset
16
+ uses : fingerprintjs/dx-team-toolkit/.github/workflows/preview-changeset-release.yml@v1
17
+ with :
18
+ pr-title : ${{ github.event.pull_request.title }}
Original file line number Diff line number Diff line change
1
+ name : ' Publish'
2
+ on :
3
+ release :
4
+ types :
5
+ - published
6
+
7
+ jobs :
8
+ publish :
9
+ name : ' Publish to PyPI'
10
+ runs-on : ubuntu-latest
11
+ environment :
12
+ name : pypi
13
+ url : https://pypi.org/p/fingerprint-pro-server-api-sdk
14
+ permissions :
15
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
16
+ steps :
17
+ - name : ' Checkout repository'
18
+ uses : actions/checkout@v4
19
+
20
+ - name : ' Install Python'
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version : ' 3.12'
24
+
25
+ - name : ' Build'
26
+ run : |
27
+ python -m pip install --upgrade pip
28
+ pip install -r requirements.txt
29
+ pip install wheel
30
+ pip install twine
31
+
32
+ - name : Publish package distributions to PyPI
33
+ uses : pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b
34
+
35
+
Original file line number Diff line number Diff line change 6
6
- dev
7
7
8
8
jobs :
9
- release-server-sdk-python :
10
- name : ' Publish new version '
11
- uses : fingerprintjs/dx-team-toolkit/.github/workflows/release-server- sdk.yml@v1
9
+ release :
10
+ name : ' Release project '
11
+ uses : fingerprintjs/dx-team-toolkit/.github/workflows/release-sdk-changesets .yml@v1
12
12
with :
13
13
appId : ${{ vars.APP_ID }}
14
+ version-command : bash ./changeset-version.sh
15
+ publish-command : bash ./changeset-publish.sh
14
16
language : python
15
17
language-version : ' 3.12'
16
- semantic-release-extra-plugins : |
17
-
18
18
prepare-command : |
19
19
python -m pip install --upgrade pip
20
20
pip install -r requirements.txt
21
21
pip install wheel
22
22
pip install twine
23
23
secrets :
24
24
APP_PRIVATE_KEY : ${{ secrets.APP_PRIVATE_KEY }}
25
- PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -70,3 +70,4 @@ target/
70
70
.DS_Store
71
71
72
72
.env
73
+ node_modules /**
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Fingerprint Pro Server Python SDK
2
+
1
3
## [ 7.0.1] ( https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/compare/v7.0.0...v7.0.1 ) (2024-08-22)
2
4
3
5
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ bash ./generate.sh && pnpm exec changeset publish
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ pnpm exec changeset version && bash ./generate.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- VERSION=' 7.0.1 '
3
+ VERSION=$( jq -r ' .version ' package.json )
4
4
5
5
while getopts " v:" arg; do
6
6
case $arg in
@@ -11,10 +11,10 @@ while getopts "v:" arg; do
11
11
done
12
12
13
13
# Make prerelease version compatible with PEP 440
14
- if [[ $VERSION =~ (.* -dev \. )([0-9]+) ]]; then
14
+ if [[ $VERSION =~ (.* -test \. )([0-9]+) ]]; then
15
15
BASE_VERSION=${BASH_REMATCH[1]}
16
16
DEV_NUMBER=${BASH_REMATCH[2]}
17
- VERSION=" ${BASE_VERSION% -dev .} .dev ${DEV_NUMBER} "
17
+ VERSION=" ${BASE_VERSION% -rc .} .rc ${DEV_NUMBER} "
18
18
fi
19
19
20
20
# jar was downloaded from here https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.34/
@@ -47,10 +47,8 @@ platform=$(uname)
47
47
# Replace version in other files
48
48
(
49
49
if [ " $platform " = " Darwin" ]; then
50
- sed -i ' ' " s/^VERSION='[^']*'/VERSION='${VERSION} '/" " ./generate.sh"
51
50
sed -i ' ' " s/^VERSION = '[^']*'/VERSION = '${VERSION} '/" " ./test/test_fingerprint_api.py"
52
51
else
53
- sed -i " s/^VERSION='[^']*'/VERSION='${VERSION} '/" " ./generate.sh"
54
52
sed -i " s/^VERSION = '[^']*'/VERSION = '${VERSION} '/" " ./test/test_fingerprint_api.py"
55
53
fi
56
54
)
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " fingerprint-pro-server-api-python-sdk" ,
3
+ "version" : " 7.0.1" ,
4
+ "private" : true ,
5
+ "devDependencies" : {
6
+ "@changesets/cli" : " ^2.27.8" ,
7
+ "@fingerprintjs/changesets-changelog-format" : " ^0.2.0"
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments