Skip to content

Commit 9bcd748

Browse files
Merge pull request #85 from fingerprintjs/chore/revert-release
Fix publish workflow
2 parents a65b871 + 58f4c23 commit 9bcd748

File tree

10 files changed

+125
-136
lines changed

10 files changed

+125
-136
lines changed

.changeset/pre.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
"initialVersions": {
55
"fingerprint-pro-server-api-python-sdk": "7.0.1"
66
},
7-
"changesets": [
8-
"orange-taxis-fetch"
9-
]
7+
"changesets": []
108
}

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
release:
44
types:
55
- published
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
required: true
10+
type: string
11+
description: Tag name to release
612

713
jobs:
814
publish:
@@ -16,6 +22,15 @@ jobs:
1622
steps:
1723
- name: 'Checkout repository'
1824
uses: actions/checkout@v4
25+
if: github.event_name == 'release'
26+
with:
27+
ref: ${{ github.event.release.tag_name }}
28+
29+
- name: 'Checkout repository'
30+
uses: actions/checkout@v4
31+
if: github.event_name == 'workflow_dispatch'
32+
with:
33+
ref: ${{ github.event.inputs.tag }}
1934

2035
- name: 'Install Python'
2136
uses: actions/setup-python@v5

CHANGELOG.md

Lines changed: 98 additions & 124 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The Fingerprint Server Python SDK is an easy way to interact with the Fingerprin
2626
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
2727

2828
- API version: 3
29-
- Package version: 7.1.0-rc.0
29+
- Package version: 7.0.1
3030
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
3131

3232
## Requirements

fingerprint_pro_server_api_sdk/api/fingerprint_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def delete_visitor_data_with_http_info(self, visitor_id: str, **kwargs): # noqa
109109
if 'visitor_id' in params:
110110
path_params['visitor_id'] = params['visitor_id'] # noqa: E501
111111

112-
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.1.0-rc.0')]
112+
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.1')]
113113

114114
header_params = {}
115115

@@ -219,7 +219,7 @@ def get_event_with_http_info(self, request_id: str, **kwargs): # noqa: E501
219219
if 'request_id' in params:
220220
path_params['request_id'] = params['request_id'] # noqa: E501
221221

222-
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.1.0-rc.0')]
222+
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.1')]
223223

224224
header_params = {}
225225

@@ -338,7 +338,7 @@ def get_visits_with_http_info(self, visitor_id: str, **kwargs): # noqa: E501
338338
if 'visitor_id' in params:
339339
path_params['visitor_id'] = params['visitor_id'] # noqa: E501
340340

341-
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.1.0-rc.0')]
341+
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.1')]
342342
if 'request_id' in params:
343343
query_params.append(('request_id', params['request_id'])) # noqa: E501
344344
if 'linked_id' in params:
@@ -458,7 +458,7 @@ def update_event_with_http_info(self, body: EventUpdateRequest, request_id: str,
458458
if 'request_id' in params:
459459
path_params['request_id'] = params['request_id'] # noqa: E501
460460

461-
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.1.0-rc.0')]
461+
query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.1')]
462462

463463
header_params = {}
464464

fingerprint_pro_server_api_sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, configuration: Optional[Configuration] = None, header_name: O
7979
self.default_headers[header_name] = header_value
8080
self.cookie = cookie
8181
# Set default User-Agent.
82-
self.user_agent = 'Swagger-Codegen/7.1.0-rc.0/python'
82+
self.user_agent = 'Swagger-Codegen/7.0.1/python'
8383

8484
def __del__(self):
8585
self.pool.close()

fingerprint_pro_server_api_sdk/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,5 @@ def to_debug_report(self):
210210
"OS: {env}\n"\
211211
"Python Version: {pyversion}\n"\
212212
"Version of the API: 3\n"\
213-
"SDK Package Version: 7.1.0-rc.0".\
213+
"SDK Package Version: 7.0.1".\
214214
format(env=sys.platform, pyversion=sys.version)

generate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ platform=$(uname)
4848
(
4949
if [ "$platform" = "Darwin" ]; then
5050
sed -i '' "s/^VERSION = '[^']*'/VERSION = '${VERSION}'/" "./test/test_fingerprint_api.py"
51+
sed -i '' "s/^version = [^']*/version = ${VERSION}/" "./setup.cfg"
5152
else
5253
sed -i "s/^VERSION = '[^']*'/VERSION = '${VERSION}'/" "./test/test_fingerprint_api.py"
54+
sed -i "s/^version = [^']*/version = ${VERSION}/" "./setup.cfg"
5355
fi
5456
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fingerprint-pro-server-api-python-sdk",
3-
"version": "7.1.0-rc.0",
3+
"version": "7.0.1",
44
"private": true,
55
"devDependencies": {
66
"@changesets/cli": "^2.27.8",

test/test_fingerprint_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
API_KEY = 'private_key'
2929

30-
VERSION = '7.1.0-rc.0'
30+
VERSION = '7.0.1'
3131

3232

3333
class MockPoolManager(object):

0 commit comments

Comments
 (0)