Skip to content

Commit 40c811d

Browse files
authored
Merge pull request #303 from uploadcare/chore/prepare-v6.1
Prepare v6.1
2 parents d2700b5 + b39c5ef commit 40c811d

File tree

10 files changed

+31
-20
lines changed

10 files changed

+31
-20
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
virtualenvs-create: true
2121
virtualenvs-in-project: false
2222
- name: Install Dependencies
23-
run: poetry install
23+
run: poetry install --with dev
2424
- name: Set PyPI token
2525
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
2626
- name: Publish package

.github/workflows/test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
virtualenvs-in-project: false
3333
- name: Install dependencies
3434
run: |
35-
poetry install
35+
poetry install --with dev
3636
- name: Run linters
3737
run: make lint
3838

@@ -59,7 +59,7 @@ jobs:
5959
virtualenvs-in-project: false
6060
- name: Install dependencies
6161
run: |
62-
poetry install
62+
poetry install --with dev
6363
- name: Test with pytest
6464
run: |
6565
make test-functional
@@ -92,7 +92,7 @@ jobs:
9292
virtualenvs-in-project: false
9393
- name: install dependencies
9494
run: |
95-
poetry install
95+
poetry install --with dev
9696
- name: install specific django version
9797
run: |
9898
poetry run pip install django~=${{ matrix.django-version }}
@@ -133,7 +133,7 @@ jobs:
133133
virtualenvs-in-project: false
134134
- name: install dependencies
135135
run: |
136-
poetry install
136+
poetry install --with dev
137137
- name: install specific django version
138138
run: |
139139
poetry run pip install django~=${{ matrix.django-version }}
@@ -164,7 +164,7 @@ jobs:
164164
virtualenvs-in-project: false
165165
- name: install dependencies
166166
run: |
167-
poetry install
167+
poetry install --with dev
168168
- name: install specific django version
169169
run: |
170170
poetry run pip install django~=${{ matrix.django-version }}
@@ -192,7 +192,11 @@ jobs:
192192
virtualenvs-in-project: false
193193
- name: Install dependencies
194194
run: |
195-
poetry install
195+
poetry install --with dev
196196
- name: Test with pytest
197197
run: |
198198
make test-integration
199+
env:
200+
UPLOADCARE_PUBLIC_KEY: ${{ secrets.UPLOADCARE_PUBLIC_KEY }}
201+
UPLOADCARE_SECRET_KEY: ${{ secrets.UPLOADCARE_SECRET_KEY }}
202+

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a
66
Changelog](https://keepachangelog.com/en/1.0.0/), and this project
77
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [6.1.0](https://github.com/uploadcare/pyuploadcare/compare/v6.0.0...v6.1.0) - 2025-02-15
10+
11+
- Bumped the `httpx` dependency to `0.28.1` [#301](https://github.com/uploadcare/pyuploadcare/pull/301)
12+
913
## [6.0.0](https://github.com/uploadcare/pyuploadcare/compare/v5.1.0...v6.0.0) - 2024-09-19
1014

1115
### Changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Uploadcare, Inc
3+
Copyright (c) 2025 Uploadcare, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/conf.py

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

4949
# General information about the project.
5050
project = "PyUploadcare"
51-
copyright = "2011-2024, Uploadcare Inc"
51+
copyright = "2011-2025, Uploadcare Inc"
5252

5353
# The version info for the project you're documenting, acts as replacement for
5454
# |version| and |release|, also used in various other places throughout the

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyuploadcare"
3-
version = "6.0.0"
3+
version = "6.1.0"
44
description = "Python library for Uploadcare.com"
55
authors = ["Uploadcare Inc <[email protected]>"]
66
readme = "README.md"
@@ -36,7 +36,10 @@ Django = {version = ">=2.2", optional = true}
3636
[tool.poetry.extras]
3737
django = ["Django"]
3838

39-
[tool.poetry.dev-dependencies]
39+
[tool.poetry.group.dev]
40+
optional = true
41+
42+
[tool.poetry.group.dev.dependencies]
4043
pytest = "^7.4"
4144
black = "^24.3.0"
4245
isort = "^5.13.2"

pyuploadcare/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# isort: skip_file
2-
__version__ = "6.0.0"
2+
__version__ = "6.1.0"
33

44
from pyuploadcare.resources.file import File # noqa: F401
55
from pyuploadcare.resources.file_group import FileGroup # noqa: F401

pyuploadcare/api/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class ApllicationDataDetails(Entity):
130130

131131
class ApplicationDataBase(Entity):
132132
data: Optional[Union[Dict[str, Any], ApllicationDataDetails]] = Field(
133-
default_factory=dict
133+
default_factory=lambda: {}
134134
)
135135
version: str
136136
datetime_created: datetime

tests/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def big_file(temp_directory):
5858

5959
@pytest.fixture(scope="session")
6060
def setup_settings():
61-
conf.pub_key = "demopublickey"
62-
conf.secret = "demosecretkey"
61+
conf.pub_key = os.environ.get("UPLOADCARE_PUBLIC_KEY", "demopublickey")
62+
conf.secret = os.environ.get("UPLOADCARE_SECRET_KEY", "demosecretkey")
6363
conf.api_version = "0.7"
6464
conf.api_base = "https://api.uploadcare.com/"
6565
conf.upload_base = "https://upload.uploadcare.com/"
@@ -88,9 +88,9 @@ def vcr_config():
8888
@pytest.fixture(scope="module")
8989
def uploadcare(setup_settings):
9090
uc = Uploadcare(
91-
public_key="demopublickey",
92-
secret_key="demosecretkey",
93-
api_version=conf.api_version,
91+
public_key=setup_settings.pub_key,
92+
secret_key=setup_settings.secret,
93+
api_version=setup_settings.api_version,
9494
multipart_min_file_size=setup_settings.multipart_min_file_size,
9595
multipart_chunk_size=setup_settings.multipart_chunk_size,
9696
)

tests/integration/ucare_cli/test_sync_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_sync_uuids(sync_path, uploadcare):
5858

5959
main(
6060
arg_namespace(
61-
f"--pub_key demopublickey --secret demosecretkey "
61+
f"--pub_key {uploadcare.public_key} --secret {uploadcare.secret_key} "
6262
f"sync --no-input {sync_path} --uuids {' '.join(uuids)}"
6363
)
6464
)
@@ -84,7 +84,7 @@ def test_sync_patterns(sync_path, uploadcare):
8484

8585
main(
8686
arg_namespace(
87-
"--pub_key demopublickey --secret demosecretkey "
87+
f"--pub_key {uploadcare.public_key} --secret {uploadcare.secret_key} "
8888
"sync --no-input {} --uuids {}".format(
8989
sync_path + "/${uuid}_${ext}", " ".join(uuids)
9090
)

0 commit comments

Comments
 (0)