Skip to content

Commit 37fca68

Browse files
add api key
1 parent 4a5e96d commit 37fca68

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

.github/workflows/tidy3d-extras-python-client-integration-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ jobs:
116116
poetry run pip install gdstk --only-binary gdstk
117117
poetry install -E extras -E dev
118118
119+
- name: configure-tidy3d-api-key
120+
shell: bash
121+
env:
122+
TIDY3D_API_KEY: ${{ secrets.TIDY3D_API_KEY }}
123+
run: |
124+
poetry run tidy3d configure --apikey $TIDY3D_API_KEY
125+
119126
- name: run-doctests
120127
run: |
121128
poetry run pytest -rF --tb=short tidy3d

docs/development/docker.rst

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,11 +853,12 @@ CodeArtifact Authentication Issues
853853

854854
**Solution**: The officially supported path is Poetry with the ``poetry aws-login`` command.
855855

856-
For pip/uv users, you must self-support using AWS documentation:
856+
For pip/uv users, you must self-support using AWS documentation.
857+
858+
**Option 1 (for pip users):**
857859

858860
.. code-block:: bash
859861
860-
# Example for pip (not officially supported)
861862
aws sso login --profile flexcompute-pypi
862863
aws codeartifact login --tool pip \
863864
--repository pypi-releases \
@@ -866,6 +867,22 @@ For pip/uv users, you must self-support using AWS documentation:
866867
--region us-east-1 \
867868
--profile flexcompute-pypi
868869
870+
**Option 2 (not recommended):**
871+
872+
.. code-block:: bash
873+
874+
CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token \
875+
--domain flexcompute \
876+
--domain-owner 625554095313 \
877+
--query authorizationToken \
878+
--output text \
879+
--profile flexcompute-pypi`
880+
881+
pip config set site.extra-index-url \
882+
https://aws:$CODEARTIFACT_AUTH_TOKEN@flexcompute-625554095313.d.codeartifact.us-east-1.amazonaws.com/pypi/pypi-releases/simple/
883+
884+
Note: Tokens expire after 12 hours, requiring daily re-authentication.
885+
869886
Alternatively, use the Docker development environment.
870887

871888
**Problem**: ``poetry lock`` or ``poetry update`` hangs

0 commit comments

Comments
 (0)