Skip to content

Commit a0e8e31

Browse files
Merge pull request #111 from contentstack/development
Staging
2 parents 0402b58 + c1e4a30 commit a0e8e31

File tree

10 files changed

+795
-9
lines changed

10 files changed

+795
-9
lines changed

.talismanrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,4 +387,10 @@ fileignoreconfig:
387387
checksum: a1d4824626aea510cd80c9b1920ede40cdc374ee9a81169811ca7980a9b67b32
388388
- filename: tests/unit/variants/test_variants.py
389389
checksum: 866f8b27d41694d0b2a7273c842b2b2b25cab6dac5919edb7d4d658bc0aa20cb
390+
- filename: tests/unit/contentstack/test_contentstack_integration.py
391+
checksum: 02ba865a776ce83afb7cab6c08965ba512f696bd1daa0e39489f68ceff21ba2b
392+
- filename: tests/unit/contentstack/test_contentstack_utils.py
393+
checksum: 344aa9e4b3ec399c581a507eceff63ff6faf56ad938475e5f4865f6cb590df68
394+
- filename: tests/unit/contentstack/test_contentstack.py
395+
checksum: 98503cbd96cb546a19aed037a6ca28ef54fcea312efcd9bac1171e43760f6e86
390396
version: "1.0"

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# CHANGELOG
22

33
## Content Management SDK For Python
4+
---
5+
## v1.6.0
6+
7+
#### Date: 01 September 2025
8+
9+
- AWS AU region support.
10+
411
---
512
## v1.5.0
613

contentstack_management/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
__author__ = 'dev-ex'
7979
__status__ = 'debug'
8080
__region__ = 'na'
81-
__version__ = '1.5.0'
81+
__version__ = '1.6.0'
8282
__host__ = 'api.contentstack.io'
8383
__protocol__ = 'https://'
8484
__api_version__ = 'v3'

contentstack_management/contentstack.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
class Region(Enum):
1212
US = "us"
1313
EU = "eu"
14+
AU = "au"
1415
AZURE_EU = "azure-eu"
1516
AZURE_NA = "azure-na"
1617
GCP_NA = "gcp-na"
18+
GCP_EU = "gcp-eu"
1719

1820

1921
def user_agents(headers=None):
@@ -43,7 +45,7 @@ def __init__(self, host: str = 'api.contentstack.io', scheme: str = 'https://',
4345
if headers is None:
4446
headers = {}
4547
if early_access is not None:
46-
early_access_str = ', '.join(self.early_access)
48+
early_access_str = ', '.join(early_access)
4749
headers['x-header-ea'] = early_access_str
4850

4951
if authtoken is not None:

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
python-dotenv~=1.0.0
2-
setuptools==80.3.1
3-
requests~=2.32.3
4-
pylint
5-
bson>=0.5.9
6-
requests-toolbelt>=1.0.0
1+
python-dotenv>=1.0.0,<2.0.0
2+
setuptools>=80.0.0
3+
requests>=2.32.0,<3.0.0
4+
pylint>=2.0.0
5+
bson>=0.5.9,<1.0.0
6+
requests-toolbelt>=1.0.0,<2.0.0

tests/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
from .unit.stack.test_stack import StacksUnitTests
2828
from .unit.users.test_users import UserUnitTests
2929
from .unit.entry.test_entry import EntryUnitTests
30+
from .unit.contentstack.test_contentstack import ContentstackRegionUnitTests
31+
from .unit.contentstack.test_contentstack_integration import ContentstackIntegrationTests
32+
from .unit.contentstack.test_contentstack_utils import ContentstackUtilsTests
3033

3134

3235
def all_tests():
@@ -42,6 +45,9 @@ def all_tests():
4245
test_module_user_mock = TestLoader().loadTestsFromTestCase(UserMockTests)
4346
test_module_entry_unittest = TestLoader().loadTestsFromTestCase(EntryUnitTests)
4447
test_module_alias_unittest = TestLoader().loadTestsFromTestCase(AliasesUnitTests)
48+
test_module_contentstack_region_unit = TestLoader().loadTestsFromTestCase(ContentstackRegionUnitTests)
49+
test_module_contentstack_integration = TestLoader().loadTestsFromTestCase(ContentstackIntegrationTests)
50+
test_module_contentstack_utils = TestLoader().loadTestsFromTestCase(ContentstackUtilsTests)
4551

4652

4753
TestSuite([
@@ -55,6 +61,9 @@ def all_tests():
5561
test_module_stacks_api,
5662
test_module_stacks_unit,
5763
test_module_entry_unittest,
58-
test_module_alias_unittest
64+
test_module_alias_unittest,
65+
test_module_contentstack_region_unit,
66+
test_module_contentstack_integration,
67+
test_module_contentstack_utils
5968

6069
])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Unit tests for contentstack module

0 commit comments

Comments
 (0)