Skip to content

Commit fd1b351

Browse files
authored
Merge pull request #63 from NHSDigital/feature/eja-sandbox-deployment
adding poetry set up
2 parents 466cb92 + 21e6ad3 commit fd1b351

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.github/workflows/publish_sandbox.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
with:
2828
node-version: '20'
2929

30+
- name: Install Poetry
31+
run: curl -sSL https://install.python-poetry.org | python3 -
32+
3033
- name: Install Python and Node dependencies
3134
run: |
3235
make install
@@ -50,7 +53,7 @@ jobs:
5053
5154
- name: Deploy sandbox spec to Proxygen
5255
run: |
53-
proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml
56+
proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml --no-confirm
5457
5558
- name: Build and publish sandbox Docker image
5659
run: |

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ install-node:
1414
npm install --legacy-peer-deps
1515

1616
#Condensed Target to run all targets above.
17-
install: install-node install-python .git/hooks/pre-commit
17+
install: install-node install-python
18+
19+
make-hooks: .git/hooks/pre-commit
1820

1921
#Run the npm linting script (specified in package.json). Used to check the syntax and formatting of files.
2022
lint:
@@ -156,6 +158,11 @@ convert-postman: # Create Postman collection from OAS spec
156158
portman -l /app/eligibility-signposting-api.yaml -o /app/postman/collection.json
157159
echo >> $(POSTMAN_DIR)/collection.json
158160
rm $(POSTMAN_DIR)/eligibility-signposting-api.yaml
161+
162+
build-and-publish-sandbox-image: # Build and publish the sandbox Docker image
163+
$(MAKE) -C sandbox build-and-publish-sandbox-image
164+
165+
159166
# ==============================================================================
160167

161168
${VERBOSE}.SILENT: \

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
#TODO add authors
77
]
88
readme = "README.md"
9-
requires-python = ">=3.13"
9+
requires-python = ">=3.11"
1010
repository = "https://github.com/NHSDigital/eligibility-signposting-api-specification"
1111
homepage = "https://digital.nhs.uk/developer/api-catalogue"
1212
keywords = ["healthcare", "uk", "nhs", "vaccination", "api"] #TODO add additional keywords
@@ -17,7 +17,7 @@ requires = ["poetry-core>=2.0.0,<3.0.0"]
1717
build-backend = "poetry.core.masonry.api"
1818

1919
[tool.poetry.dependencies]
20-
python = "^3.13"
20+
python = "^3.11"
2121
yq = "^3.2.3"
2222

2323
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)