Skip to content

Commit dd76184

Browse files
Update poetry and pipenv examples (#34)
* Fix indentation on pipenv example. * Add line continuation on poetry example. * Update poetry run command example.
1 parent b6ebd55 commit dd76184

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

src/examples/pipenv_install_packages.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ usage:
44
version: 2.1
55
orbs:
66
cloudsmith-python: ft-circleci-orbs/[email protected]
7-
jobs:
8-
build:
9-
docker:
10-
- image: cimg/python:3.9
11-
steps:
12-
- checkout
13-
- run: python -m ensurepip --upgrade
14-
- cloudsmith-python/set_env_vars_for_pip:
15-
repository: your-repository-id
16-
- run: python -m pip install pipenv
17-
- run: pipenv install
7+
jobs:
8+
build:
9+
docker:
10+
- image: cimg/python:3.9
11+
steps:
12+
- checkout
13+
- run: python -m ensurepip --upgrade
14+
- cloudsmith-python/set_env_vars_for_pip:
15+
repository: your-repository-id
16+
- run: python -m pip install pipenv
17+
- run: pipenv install
1818

1919
workflows:
2020
main:

src/examples/poetry_install_packages.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >
33
The source URL in pyproject.toml must be set to https://packages.ft.com/basic/your-repository-id/python/simple/
44
and the corresponding cloudsmith-source-url parameter is an arbitrary label for the Cloudsmith Source URL.
55
usage:
6-
version: '2.1'
6+
version: 2.1
77
orbs:
88
cloudsmith-python: ft-circleci-orbs/[email protected]
99
jobs:
@@ -14,10 +14,13 @@ usage:
1414
- checkout
1515
- cloudsmith-python/set_env_vars_for_poetry:
1616
repository: your-repository-id
17-
- run: >-
18-
poetry config http-basic.cloudsmith-source-url $CLOUDSMITH_POETRY_USERNAME $CLOUDSMITH_POETRY_PASSWORD
19-
poetry add -q simplepkg
20-
poetry install
17+
- run:
18+
name: Install Poetry package
19+
command: |
20+
poetry config http-basic.cloudsmith-source-url \
21+
$CLOUDSMITH_POETRY_USERNAME $CLOUDSMITH_POETRY_PASSWORD
22+
poetry add -q simplepkg
23+
poetry install
2124
2225
workflows:
2326
main:

src/examples/upload_package_using_poetry.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >
33
For uploads, the source URL in pyproject.toml must be set to https://python.cloudsmith.io/financial-times/your-repository-id/
44
and the corresponding parameter cloudsmith-source-url is an arbitrary label for the Cloudsmith Source URL.
55
usage:
6-
version: '2.1'
6+
version: 2.1
77
orbs:
88
cloudsmith-python: ft-circleci-orbs/[email protected]
99
jobs:
@@ -17,7 +17,8 @@ usage:
1717
- run:
1818
name: Create Poetry package and publish package
1919
command: |
20-
poetry config http-basic.cloudsmith-source-url $CLOUDSMITH_POETRY_USERNAME $CLOUDSMITH_POETRY_PASSWORD
20+
poetry config http-basic.cloudsmith-source-url \
21+
$CLOUDSMITH_POETRY_USERNAME $CLOUDSMITH_POETRY_PASSWORD
2122
poetry build
2223
poetry publish -r cloudsmith-source-url
2324

0 commit comments

Comments
 (0)