Skip to content

Commit

Permalink
Merge pull request #85 from fingerprintjs/chore/revert-release
Browse files Browse the repository at this point in the history
Fix publish workflow
  • Loading branch information
TheUnderScorer authored Oct 14, 2024
2 parents a65b871 + 58f4c23 commit 9bcd748
Show file tree
Hide file tree
Showing 10 changed files with 125 additions and 136 deletions.
4 changes: 1 addition & 3 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
"initialVersions": {
"fingerprint-pro-server-api-python-sdk": "7.0.1"
},
"changesets": [
"orange-taxis-fetch"
]
"changesets": []
}
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
release:
types:
- published
workflow_dispatch:
inputs:
tag:
required: true
type: string
description: Tag name to release

jobs:
publish:
Expand All @@ -16,6 +22,15 @@ jobs:
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
if: github.event_name == 'release'
with:
ref: ${{ github.event.release.tag_name }}

- name: 'Checkout repository'
uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
with:
ref: ${{ github.event.inputs.tag }}

- name: 'Install Python'
uses: actions/setup-python@v5
Expand Down
222 changes: 98 additions & 124 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The Fingerprint Server Python SDK is an easy way to interact with the Fingerprin
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

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

## Requirements
Expand Down
8 changes: 4 additions & 4 deletions fingerprint_pro_server_api_sdk/api/fingerprint_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def delete_visitor_data_with_http_info(self, visitor_id: str, **kwargs): # noqa
if 'visitor_id' in params:
path_params['visitor_id'] = params['visitor_id'] # noqa: E501

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

header_params = {}

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

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

header_params = {}

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

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

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

header_params = {}

Expand Down
2 changes: 1 addition & 1 deletion fingerprint_pro_server_api_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, configuration: Optional[Configuration] = None, header_name: O
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/7.1.0-rc.0/python'
self.user_agent = 'Swagger-Codegen/7.0.1/python'

def __del__(self):
self.pool.close()
Expand Down
2 changes: 1 addition & 1 deletion fingerprint_pro_server_api_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 3\n"\
"SDK Package Version: 7.1.0-rc.0".\
"SDK Package Version: 7.0.1".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 2 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ platform=$(uname)
(
if [ "$platform" = "Darwin" ]; then
sed -i '' "s/^VERSION = '[^']*'/VERSION = '${VERSION}'/" "./test/test_fingerprint_api.py"
sed -i '' "s/^version = [^']*/version = ${VERSION}/" "./setup.cfg"
else
sed -i "s/^VERSION = '[^']*'/VERSION = '${VERSION}'/" "./test/test_fingerprint_api.py"
sed -i "s/^version = [^']*/version = ${VERSION}/" "./setup.cfg"
fi
)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fingerprint-pro-server-api-python-sdk",
"version": "7.1.0-rc.0",
"version": "7.0.1",
"private": true,
"devDependencies": {
"@changesets/cli": "^2.27.8",
Expand Down
2 changes: 1 addition & 1 deletion test/test_fingerprint_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

API_KEY = 'private_key'

VERSION = '7.1.0-rc.0'
VERSION = '7.0.1'


class MockPoolManager(object):
Expand Down

0 comments on commit 9bcd748

Please sign in to comment.