Skip to content

Commit 0e407f6

Browse files
committed
Bump version to 1.0.0, fix publishing
1 parent 12b4ea4 commit 0e407f6

File tree

6 files changed

+9
-18
lines changed

6 files changed

+9
-18
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
id-token: write
4242
environment:
4343
name: pypi
44-
url: https://pypi.org/p/apify-client
44+
url: https://pypi.org/p/apify-shared
4545

4646
steps:
4747
- name: Checkout repository

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Changelog
22

3-
[0.1.0](../../releases/tag/v0.1.0) - 2023-07-21
3+
[1.0.0](../../releases/tag/v1.0.0) - 2023-07-25
4+
5+
Initial release of the package.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ We use `flake8` for linting, `mypy` for type checking and `pytest` for unit test
3232

3333
## Release process
3434

35-
Publishing new versions to [PyPI](https://pypi.org/project/apify-client) happens automatically through GitHub Actions.
35+
Publishing new versions to [PyPI](https://pypi.org/project/apify-shared) happens automatically through GitHub Actions.
3636

3737
On each commit to the `master` branch, a new beta release is published, taking the version number from `pyproject.toml`
3838
and automatically incrementing the beta version suffix by 1 from the last beta release published to PyPI.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2022 Apify Technologies s.r.o.
189+
Copyright 2023 Apify Technologies s.r.o.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ license = {text = "Apache Software License"}
1818
name = "apify_shared"
1919
readme = "README.md"
2020
requires-python = ">=3.8"
21-
version = "0.1.0"
21+
version = "1.0.0"
2222

2323
[project.optional-dependencies]
2424
dev = [

scripts/utils.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pathlib
2-
import re
32

43
PACKAGE_NAME = 'apify_shared'
54
REPO_ROOT = pathlib.Path(__file__).parent.resolve() / '..'
@@ -28,22 +27,12 @@ def set_current_package_version(version: str) -> None:
2827
for line in pyproject_toml_file:
2928
if line.startswith('version = '):
3029
version_string_found = True
31-
line = f'version = "{version}"'
30+
line = f'version = "{version}"\n'
3231
updated_pyproject_toml_file_lines.append(line)
3332

3433
if not version_string_found:
3534
raise RuntimeError('Unable to find version string.')
3635

3736
pyproject_toml_file.seek(0)
38-
pyproject_toml_file.write('\n'.join(updated_pyproject_toml_file_lines))
37+
pyproject_toml_file.write(''.join(updated_pyproject_toml_file_lines))
3938
pyproject_toml_file.truncate()
40-
41-
42-
# Generate convert a docstring from a sync resource client method
43-
# into a doctring for its async resource client analogue
44-
def sync_to_async_docstring(docstring: str) -> str:
45-
substitutions = [(r'Client', r'ClientAsync')]
46-
res = docstring
47-
for (pattern, replacement) in substitutions:
48-
res = re.sub(pattern, replacement, res, flags=re.M)
49-
return res

0 commit comments

Comments
 (0)