Skip to content

Commit fb5291c

Browse files
authored
Stop publishing private dev packages to AWS (#276)
1 parent 4d8214c commit fb5291c

File tree

6 files changed

+96
-305
lines changed

6 files changed

+96
-305
lines changed

.circleci/config.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -270,21 +270,6 @@ jobs:
270270
root: .
271271
paths:
272272
- dist/
273-
release-aws:
274-
executor: default_image
275-
steps:
276-
- checkout
277-
- attach_workspace:
278-
at: .
279-
- aws-cli/setup:
280-
role_arn: $AWS_OIDC_ARN
281-
- run:
282-
name: Release
283-
command: |
284-
uv tool install keyring --with keyrings.codeartifact
285-
export UV_PUBLISH_PASSWORD="$(aws codeartifact get-authorization-token --domain codegen --domain-owner 922078275900 --region us-east-1 --query authorizationToken --output text)"
286-
export UV_PUBLISH_USERNAME=aws
287-
uv publish
288273
release-pypi:
289274
executor: default_image
290275
steps:
@@ -321,15 +306,6 @@ workflows:
321306
filters:
322307
tags:
323308
only: /^v.*/
324-
- release-aws:
325-
filters:
326-
tags:
327-
only: /^v.*/
328-
context:
329-
- AWS
330-
requires:
331-
- linux-wheels
332-
- osx-wheels
333309
- release-pypi:
334310
filters:
335311
tags:

.github/workflows/release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ jobs:
7171
path: dist
7272
merge-multiple: true
7373
pattern: wheels-*
74-
- name: Release to AWS codeartifact
75-
run: |
76-
export UV_PUBLISH_PASSWORD="$(aws codeartifact get-authorization-token --domain codegen --domain-owner 922078275900 --region us-east-1 --query authorizationToken --output text)"
77-
export UV_PUBLISH_USERNAME=aws
78-
uv publish
79-
# - name: Release to pypi
80-
# if: startsWith(github.ref, 'refs/tags/')
81-
# run: |
82-
# uv publish --trusted-publishing always --publish-url https://upload.pypi.org/legacy/ --keyring-provider disabled
8374
- name: Make github release
8475
uses: softprops/action-gh-release@v2
8576
if: startsWith(github.ref, 'refs/tags/')

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ FROM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim AS base_uv
44
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
55
ENV GITHUB_WORKSPACE=/workspace
66
LABEL com.circleci.preserve-entrypoint=true
7-
# RUN uv tool install keyring --with keyrings.codeartifact
87
## Change the working directory to the `codegen-sdk` directory
98
FROM base_uv AS install-tools
109
RUN apt-get update && apt-get install -y build-essential curl git

hatch.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ matrix.tool.scripts = [
2020
[version]
2121
source = "vcs"
2222

23-
[envs.hatch-build.env-vars]
24-
UV_EXTRA_INDEX_URL = "https://[email protected]/pypi/codegen/simple/"
25-
2623
[build.targets.wheel.hooks.cython]
2724
dependencies = [
2825
"hatch-cython @ git+https://github.com/codegen-sh/hatch-cython.git",

pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ keywords = [
9696
"codebase transformation",
9797
"refactoring",
9898
"code generation",
99-
"code generation",
100-
"codebase analysis",
101-
"codebase transformation",
102-
"refactoring",
10399
]
104100
[project.scripts]
105101
codegen = "codegen.cli.cli:main"
@@ -125,7 +121,6 @@ dev-dependencies = [
125121
"austin-python>=1.7.1",
126122
"autoflake>=2.3.1",
127123
# "nuitka>=2.4.8",
128-
"keyrings-codeartifact>=1.3.3",
129124
"typer>=0.12.5",
130125
"pre-commit-uv>=4.1.4",
131126
"austin-dist>=3.7.0",
@@ -143,9 +138,8 @@ dev-dependencies = [
143138
"pytest-benchmark[histogram]>=5.1.0",
144139
"loguru>=0.7.3",
145140
]
146-
keyring-provider = "subprocess"
147-
#extra-index-url = ["https://[email protected]/pypi/codegen/simple/"]
148-
publish-url = "https://codegen-922078275900.d.codeartifact.us-east-1.amazonaws.com/pypi/codegen/"
141+
#skeyring-provider = "subprocess"
142+
149143
[tool.uv.workspace]
150144
members = []
151145

0 commit comments

Comments
 (0)