Skip to content

Commit fb40d96

Browse files
Rename orb python (#29)
* Initial rename commit. * Rename upload_python_package cmd.
1 parent c7053b4 commit fb40d96

File tree

13 files changed

+29
-204
lines changed

13 files changed

+29
-204
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ workflows:
2121
- shellcheck/check:
2222
filters: *filters
2323
- orb-tools/publish:
24-
orb_name: ft-circleci-orbs/cloudsmith-circleci
24+
orb_name: ft-circleci-orbs/cloudsmith-python
2525
vcs_type: << pipeline.project.type >>
2626
requires:
2727
- orb-tools/lint
@@ -35,6 +35,6 @@ workflows:
3535
- orb-tools/continue:
3636
pipeline_number: << pipeline.number >>
3737
vcs_type: << pipeline.project.type >>
38-
orb_name: cloudsmith-circleci
38+
orb_name: cloudsmith-python
3939
requires: [orb-tools/publish]
4040
filters: *filters

.circleci/test-deploy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ orbs:
44
# Reference your orb's jobs and commands below as they will exist when built.
55
orb-tools: circleci/[email protected]
66
# The orb definition is intentionally not included here. It will be injected into the pipeline.
7-
cloudsmith-circleci: {}
7+
cloudsmith-python: {}
88

99
# Use this tag to ensure test jobs always run,
1010
# even though the downstream publish job will only run on release tags.
@@ -27,7 +27,7 @@ jobs:
2727
resource_class: small
2828
steps:
2929
- checkout
30-
- cloudsmith-circleci/set_env_vars_for_pip:
30+
- cloudsmith-python/set_env_vars_for_pip:
3131
repository: "circleci-orb-testing"
3232
- run:
3333
name: Assert environment variables have been set
@@ -49,7 +49,7 @@ jobs:
4949
- image: cimg/python:3.9
5050
steps:
5151
- checkout
52-
- cloudsmith-circleci/set_env_vars_for_pip:
52+
- cloudsmith-python/set_env_vars_for_pip:
5353
repository: "circleci-orb-testing"
5454
- run: python -m pip install simplepkg==0.0.1 --index-url "$CLOUDSMITH_PIP_INDEX_URL"
5555

@@ -59,7 +59,7 @@ jobs:
5959
steps:
6060
- checkout
6161
- run: echo "simplepkg==0.0.1" > requirements.txt
62-
- cloudsmith-circleci/set_env_vars_for_pip:
62+
- cloudsmith-python/set_env_vars_for_pip:
6363
repository: "circleci-orb-testing"
6464
- run: python -m pip install -r requirements.txt --index-url "$CLOUDSMITH_PIP_INDEX_URL"
6565

@@ -69,7 +69,7 @@ jobs:
6969
steps:
7070
- checkout
7171
- run: echo "simplepkg==0.0.1" > requirements.txt
72-
- cloudsmith-circleci/set_env_vars_for_pip:
72+
- cloudsmith-python/set_env_vars_for_pip:
7373
repository: "circleci-orb-testing"
7474
- run: python -m pip config set global.index-url "$CLOUDSMITH_PIP_INDEX_URL"
7575
- run: python -m pip install -r requirements.txt
@@ -80,7 +80,7 @@ jobs:
8080
resource_class: small
8181
steps:
8282
- checkout
83-
- cloudsmith-circleci/set_env_vars_for_twine:
83+
- cloudsmith-python/set_env_vars_for_twine:
8484
repository: "circleci-orb-testing"
8585
- run:
8686
name: Assert environment variables have been set
@@ -119,7 +119,7 @@ jobs:
119119
name: Install twine
120120
command: |
121121
python -m pip install twine --upgrade --user
122-
- cloudsmith-circleci/set_env_vars_for_twine:
122+
- cloudsmith-python/set_env_vars_for_twine:
123123
repository: "circleci-orb-testing"
124124
- run:
125125
name: twine upload package to Cloudsmith
@@ -144,7 +144,7 @@ jobs:
144144
python -m pip install build --upgrade --user
145145
python -m build
146146
working_directory: .circleci/simplepkg-py
147-
- cloudsmith-circleci/upload_python_package:
147+
- cloudsmith-python/upload_package:
148148
repository: "circleci-orb-testing"
149149
dist_dir: .circleci/simplepkg-py/dist
150150

@@ -180,7 +180,7 @@ workflows:
180180
- orb-tools/pack:
181181
filters: *release-filters
182182
- orb-tools/publish:
183-
orb_name: financial-times/cloudsmith-circleci
183+
orb_name: financial-times/cloudsmith-python
184184
vcs_type: << pipeline.project.type >>
185185
pub_type: production
186186
# Ensure this job requires all test jobs and the pack job.

.github/settings.yml

Lines changed: 0 additions & 143 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Cloudsmith CircleCI Orb
1+
# Cloudsmith Python Orb
22

3-
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/ft-circleci-orbs/cloudsmith-circleci-orb/tree/main.svg?style=svg&circle-token=66e39b994c3e883286179e5683fdfe6d3c9926d8)](https://dl.circleci.com/status-badge/redirect/gh/ft-circleci-orbs/cloudsmith-circleci-orb/tree/main) [![GitHub License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/ft-circleci-orbs/cloudsmith-circleci-orb/master/LICENSE)
3+
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/ft-circleci-orbs/cloudsmith-python-orb/tree/main.svg?style=svg&circle-token=66e39b994c3e883286179e5683fdfe6d3c9926d8)](https://dl.circleci.com/status-badge/redirect/gh/ft-circleci-orbs/cloudsmith-python-orb/tree/main) [![GitHub License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/ft-circleci-orbs/cloudsmith-python-orb/main/LICENSE)
44

5-
A CircleCI orb to assist with downloading from and publishing packages to Cloudsmith.
5+
A CircleCI orb to assist with downloading python packages from and publishing python packages to Cloudsmith.
66

77
---
88

@@ -22,12 +22,7 @@ packages using the Cloudsmith CLI.
2222

2323
## Documentation
2424

25-
Please see the [documention on the CircleCI orb registry](https://circleci.com/developer/orbs/orb/ft-circleci-orbs/cloudsmith-circleci).
26-
27-
28-
### Supported Package Management Tools
29-
30-
**Python:** pip
25+
Please see the [documention on the CircleCI orb registry](https://circleci.com/developer/orbs/orb/ft-circleci-orbs/cloudsmith-python).
3126

3227
---
3328

src/@orb.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ orbs:
44
cloudsmith-oidc: ft-circleci-orbs/[email protected]
55

66
description: |
7-
Install packages from and publish packages to Cloudsmith using short-lived OIDC credentials.
7+
Install python packages from and publish python packages to Cloudsmith using short-lived OIDC credentials.
88
Note, all commands require the following environment variables to be set:
99
- CLOUDSMITH_ORGANISATION : The identity/slug of the Cloudsmith organisation to use when authenticating with OIDC. Defaults to "financial-times" if not set.
1010
- CLOUDSMITH_SERVICE_ACCOUNT : The identity/slug of the Cloudsmith service account to use when authenticating with OIDC.
1111
These are used to authenticate with Cloudsmith using OIDC and can be found in the Cloudsmith UI - https://cloudsmith.io/.
1212
1313
display:
14-
home_url: "https://github.com/ft-circleci-orbs/cloudsmith-circleci-orb"
15-
source_url: "https://github.com/ft-circleci-orbs/cloudsmith-circleci-orb"
14+
home_url: "https://github.com/ft-circleci-orbs/cloudsmith-python-orb"
15+
source_url: "https://github.com/ft-circleci-orbs/cloudsmith-python-orb"

src/README.md

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ steps:
2929
cloudsmith --version
3030
- run:
3131
name: Cloudsmith - Upload python package file(s)
32-
command: <<include(scripts/upload_python_package.sh)>>
32+
command: <<include(scripts/upload_package.sh)>>
3333
environment:
3434
CLOUDSMITH_REPOSITORY: <<parameters.repository>>
3535
DIST_DIR: <<parameters.dist_dir>>

src/examples/configure_pip_index_url.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ description: >
33
usage:
44
version: 2.1
55
orbs:
6-
ft-cloudsmith: ft-circleci-orbs/cloudsmith-circleci@1.2.3
6+
cloudsmith-python: ft-circleci-orbs/cloudsmith-python@1.0.0
77
jobs:
88
build:
99
docker:
1010
- image: cimg/python:3.9
1111
steps:
1212
- checkout
1313
- run: python -m ensurepip --upgrade
14-
- ft-cloudsmith/set_env_vars_for_pip:
14+
- cloudsmith-python/set_env_vars_for_pip:
1515
repository: "your-repository-id"
1616
- run: python -m pip config set global.index-url "$CLOUDSMITH_PIP_INDEX_URL"
1717
- run: python -m pip install -r requirements.txt

src/examples/pip_install_package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ description: >
33
usage:
44
version: 2.1
55
orbs:
6-
ft-cloudsmith: ft-circleci-orbs/cloudsmith-circleci@1.2.3
6+
cloudsmith-python: ft-circleci-orbs/cloudsmith-python@1.0.0
77
jobs:
88
build:
99
docker:
1010
- image: cimg/python:3.9
1111
steps:
1212
- checkout
1313
- run: python -m ensurepip --upgrade
14-
- ft-cloudsmith/set_env_vars_for_pip:
14+
- cloudsmith-python/set_env_vars_for_pip:
1515
repository: "your-repository-id"
1616
- run: python -m pip install your-package==0.0.0 --index-url "$CLOUDSMITH_PIP_INDEX_URL"
1717
workflows:

src/examples/pip_install_requirements.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ description: >
33
usage:
44
version: 2.1
55
orbs:
6-
ft-cloudsmith: ft-circleci-orbs/cloudsmith-circleci@1.2.3
6+
cloudsmith-python: ft-circleci-orbs/cloudsmith-python@1.0.0
77
jobs:
88
build:
99
docker:
1010
- image: cimg/python:3.9
1111
steps:
1212
- checkout
1313
- run: python -m ensurepip --upgrade
14-
- ft-cloudsmith/set_env_vars_for_pip:
14+
- cloudsmith-python/set_env_vars_for_pip:
1515
repository: "your-repository-id"
1616
- run: python -m pip install -r requirements.txt --index-url "$CLOUDSMITH_PIP_INDEX_URL"
1717
workflows:

0 commit comments

Comments
 (0)