Skip to content

Commit 4398221

Browse files
fix: declare lxml as a runtime dependency (v1.6.1)
contentstack_utils.utils imports lxml.etree at module load time, but install_requires has been empty since initial release. Declare lxml with environment markers: >=6.1.0 on Python 3.8+ (aligned with requirements.txt), >=4.9.0,<5 on 3.6–3.7. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4a951dd commit 4398221

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v1.6.1 (2026-07-09)
4+
5+
### Bug fix: Declare runtime dependency on lxml
6+
7+
- Added `lxml` to `install_requires` with environment markers: `>=6.1.0` on
8+
Python 3.8+ (matching dev `requirements.txt`), `>=4.9.0,<5` on 3.6–3.7.
9+
`contentstack_utils.utils` imports `lxml.etree` at module load time, but
10+
previous releases shipped with an empty `install_requires`, so
11+
`pip install contentstack-utils` did not install lxml.
12+
313
## v1.6.0 (2026-06-22)
414

515
### New feature: Multi-region endpoint resolution

contentstack_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
__title__ = 'contentstack_utils'
4040
__author__ = 'contentstack'
4141
__status__ = 'debug'
42-
__version__ = '1.6.0'
42+
__version__ = '1.6.1'
4343
__endpoint__ = 'cdn.contentstack.io'
4444
__contact__ = 'support@contentstack.com'

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ def run(self):
3434
long_description_content_type="text/markdown",
3535
url="https://github.com/contentstack/contentstack-utils-python",
3636
license='MIT',
37-
version='1.6.0',
37+
version='1.6.1',
3838
install_requires=[
39-
39+
# lxml 6.x requires Python 3.8+; keep 4.x for 3.6–3.7 (python_requires>=3.6).
40+
"lxml>=4.9.0,<5; python_version<'3.8'",
41+
"lxml>=6.1.0; python_version>='3.8'",
4042
],
4143
setup_requires=['pytest-runner'],
4244
tests_require=['pytest==4.4.1'],

0 commit comments

Comments
 (0)