Skip to content

Commit 92793cf

Browse files
authored
Merge pull request #157 from ezhov-evgeny/master
Master 3.14.7
2 parents c2f7f85 + 1e461de commit 92793cf

File tree

7 files changed

+18
-53
lines changed

7 files changed

+18
-53
lines changed

.github/workflows/release-tag.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
ref: ${{ github.event.pull_request.merge_commit_sha }}
2222
fetch-depth: 0
2323

24-
- name: Get version from setup.py
24+
- name: Get version from pyproject.toml
2525
id: version
2626
run: |
27-
V=$(grep -E '^version\s*=\s*"' setup.py | sed -n 's/.*"\([^"]*\)".*/\1/p')
27+
V=$(grep -E '^version\s*=\s*"' pyproject.toml | sed -n 's/.*"\([^"]*\)".*/\1/p')
2828
if [[ -z "$V" ]]; then
29-
echo "Could not read version from setup.py"
29+
echo "Could not read version from pyproject.toml"
3030
exit 1
3131
fi
3232
echo "version=$V" >> "$GITHUB_OUTPUT"

.github/workflows/release-version-bump.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# When a branch named release/X.Y.Z is pushed, set version = "X.Y.Z" in setup.py and commit.
1+
# When a branch named release/X.Y.Z is pushed, set version = "X.Y.Z" in pyproject.toml and commit.
22
# Branch name must match release/X.Y.Z (e.g. release/3.14.7). Creates one commit if version changed.
33

44
name: Release version bump
@@ -31,21 +31,21 @@ jobs:
3131
exit 1
3232
fi
3333
34-
- name: Update version in setup.py
34+
- name: Update version in pyproject.toml
3535
run: |
3636
VERSION="${{ steps.version.outputs.version }}"
37-
sed -i 's/^version = ".*"/version = "'"$VERSION"'"/' setup.py
38-
grep -q '^version = "'"$VERSION"'"' setup.py || (echo "Failed to update setup.py"; exit 1)
37+
sed -i 's/^version = ".*"/version = "'"$VERSION"'"/' pyproject.toml
38+
grep -q '^version = "'"$VERSION"'"' pyproject.toml || (echo "Failed to update pyproject.toml"; exit 1)
3939
4040
- name: Commit and push if changed
4141
run: |
4242
git config user.name "github-actions[bot]"
4343
git config user.email "github-actions[bot]@users.noreply.github.com"
44-
if git diff --quiet setup.py; then
44+
if git diff --quiet pyproject.toml; then
4545
echo "Version already set, nothing to commit"
4646
exit 0
4747
fi
48-
git add setup.py
48+
git add pyproject.toml
4949
git commit -m "chore: set version to ${{ steps.version.outputs.version }} [skip ci]"
5050
git push
5151
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,6 @@ Please use this check list before creating PR:
353353

354354
### Releasing
355355

356-
Releases follow a git-flow style: create branch `release/X.Y.Z` from `develop`, update version in `setup.py`, merge into `master`, then create and push tag `vX.Y.Z`. GitHub Actions publishes to PyPI on tag push.
356+
Releases follow a git-flow style: create branch `release/X.Y.Z` from `develop`, update version in `pyproject.toml`, merge into `master`, then create and push tag `vX.Y.Z`. GitHub Actions publishes to PyPI on tag push.
357357

358358
**Required:** In the repository **Settings → Secrets and variables → Actions**, add a secret `PYPI_API_TOKEN` with a PyPI API token (create at [pypi.org/manage/account/token/](https://pypi.org/manage/account/token/)). Alternatively, configure [Trusted Publishing](https://docs.pypi.org/trusted-publishers/) on PyPI and remove the `password` input from `.github/workflows/publish.yml`.

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Release Notes
99
* Fixed `KeyError` when HTTP response is missing `Content-Length` header by https://github.com/xmaples
1010
* Fixed indentation in client response handling (#89) by https://github.com/yeus
1111
* Do not catch `ResponseErrorCode` so server errors propagate to callers by https://github.com/james-pcdr
12-
* CI/CD: migrated to GitHub Actions (#134); added `requirements.txt` and `pyproject.toml`; linter fixes; coverage reporting; use Ubuntu 22.04 for legacy Python 3.7 tests by https://github.com/ezhov-evgeny
12+
* CI/CD: migrated to GitHub Actions (#134) by https://github.com/ezhov-evgeny
1313

1414
**Version 3.14.6**
1515

publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Clean old dists
22
rm -r dist
33

4-
# Create new packege
5-
python setup.py sdist
4+
# Create package (sdist and wheel)
5+
python -m build
66

77
# Upload to pypi
88
twine upload dist/*

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "webdavclient3"
7-
version = "3.14.6"
7+
version = "3.14.7"
88
description = "WebDAV client, based on original package https://github.com/designerror/webdav-client-python but uses requests instead of PyCURL"
99
readme = "README.md"
10-
license = { text = "MIT License" }
10+
license = "MIT"
1111
authors = [
1212
{ name = "Evgeny Ezhov", email = "ezhov.evgeny@gmail.com" }
1313
]
@@ -18,7 +18,6 @@ keywords = [
1818
classifiers = [
1919
"Environment :: Console",
2020
"Environment :: Web Environment",
21-
"License :: OSI Approved :: MIT License",
2221
"Operating System :: MacOS",
2322
"Operating System :: Microsoft",
2423
"Operating System :: Unix",
@@ -47,5 +46,8 @@ dev = ["pytest", "coverage", "ruff"]
4746
Homepage = "https://github.com/ezhov-evgeny/webdav-client-python-3"
4847
Repository = "https://github.com/ezhov-evgeny/webdav-client-python-3"
4948

49+
[tool.setuptools]
50+
script-files = ["wdc"]
51+
5052
[tool.setuptools.packages.find]
5153
exclude = ["tests*"]

setup.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)