2323
2424 test-set_env_vars_for_pip :
2525 docker :
26- - image : cimg/python:3.9
26+ - image : cimg/python:3.13
2727 resource_class : small
2828 steps :
2929 - checkout
4646
4747 test-pip_install_package_example :
4848 docker :
49- - image : cimg/python:3.9
49+ - image : cimg/python:3.13
5050 steps :
5151 - checkout
5252 - cloudsmith-python/set_env_vars_for_pip :
5555
5656 test-pip_install_requirements_example :
5757 docker :
58- - image : cimg/python:3.9
58+ - image : cimg/python:3.13
5959 steps :
6060 - checkout
6161 - run : echo "simplepkg==0.0.1" > requirements.txt
6565
6666 test-pipenv_install_package_example :
6767 docker :
68- - image : cimg/python:3.9
68+ - image : cimg/python:3.13
6969 steps :
7070 - checkout
7171 - run : python -m ensurepip --upgrade
@@ -83,13 +83,13 @@ jobs:
8383 [packages]
8484 simplepkg = "0.4.3"
8585 [requires]
86- python_version = "3.9 "
86+ python_version = "3.13 "
8787 EOT
8888 - run : pipenv install
8989
9090 test-set_env_vars_for_poetry :
9191 docker :
92- - image : cimg/python:3.9
92+ - image : cimg/python:3.13
9393 resource_class : small
9494 steps :
9595 - checkout
@@ -112,10 +112,18 @@ jobs:
112112
113113 test-upload_package_using_poetry :
114114 docker :
115- - image : cimg/python:3.9
115+ - image : cimg/python:3.13
116116 resource_class : small
117117 steps :
118118 - checkout
119+ - run :
120+ name : Install Poetry using official installer
121+ command : |
122+ curl -sSL https://install.python-poetry.org | python3 -
123+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> $BASH_ENV
124+ source $BASH_ENV
125+ poetry --version
126+ poetry config --list
119127 - cloudsmith-python/set_env_vars_for_poetry :
120128 repository : circleci-orb-testing
121129 - run :
@@ -124,16 +132,25 @@ jobs:
124132 command : |
125133 poetry new poetry-package
126134 cd poetry-package
127- poetry source add --priority=default cloudsmith-source-url https://python.cloudsmith.io/financial-times/circleci-orb-testing/
135+ # Configure the repository for publishing (not just as a source)
136+ poetry config repositories.cloudsmith-source-url https://python.cloudsmith.io/financial-times/circleci-orb-testing/
128137 poetry config http-basic.cloudsmith-source-url $CLOUDSMITH_POETRY_USERNAME $CLOUDSMITH_POETRY_PASSWORD
129138 poetry build
130139 poetry publish -r cloudsmith-source-url
131140
132141 test-poetry_install_packages_example :
133142 docker :
134- - image : cimg/python:3.9
143+ - image : cimg/python:3.13
135144 steps :
136145 - checkout
146+ - run :
147+ name : Install Poetry using official installer
148+ command : |
149+ curl -sSL https://install.python-poetry.org | python3 -
150+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> $BASH_ENV
151+ source $BASH_ENV
152+ poetry --version
153+ poetry config --list
137154 - cloudsmith-python/set_env_vars_for_poetry :
138155 repository : circleci-orb-testing
139156 - run :
@@ -142,15 +159,16 @@ jobs:
142159 command : |
143160 poetry new poetry-package
144161 cd poetry-package
145- poetry source add --priority=default cloudsmith-source-url https://packages.ft.com/basic/circleci-orb-testing/python/simple/
162+ # Configure the repository for publishing (not just as a source)
163+ poetry config repositories.cloudsmith-source-url https://python.cloudsmith.io/financial-times/circleci-orb-testing/
146164 poetry config http-basic.cloudsmith-source-url $CLOUDSMITH_POETRY_USERNAME $CLOUDSMITH_POETRY_PASSWORD
147165 poetry add -q simplepkg
148166 poetry install
149167 poetry show
150168
151169 test-configure_pip_example :
152170 docker :
153- - image : cimg/python:3.9
171+ - image : cimg/python:3.13
154172 steps :
155173 - checkout
156174 - run : echo "simplepkg==0.4.3" > requirements.txt
@@ -161,7 +179,7 @@ jobs:
161179
162180 test-set_env_vars_for_twine :
163181 docker :
164- - image : cimg/python:3.9
182+ - image : cimg/python:3.13
165183 resource_class : small
166184 steps :
167185 - checkout
@@ -189,7 +207,7 @@ jobs:
189207
190208 test-upload_package_using_twine :
191209 docker :
192- - image : cimg/python:3.9
210+ - image : cimg/python:3.13
193211 resource_class : small
194212 steps :
195213 - checkout
@@ -218,7 +236,7 @@ jobs:
218236
219237 test-upload_package_using_cli :
220238 docker :
221- - image : cimg/python:3.9
239+ - image : cimg/python:3.13
222240 resource_class : small
223241 steps :
224242 - checkout
0 commit comments