Skip to content

Commit eb94780

Browse files
authored
Merge pull request #13 from fastapi-mvc/update_poetry
Update Poetry to 1.3.x
2 parents d946c03 + 2eb30cd commit eb94780

File tree

7 files changed

+13
-18
lines changed

7 files changed

+13
-18
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Generate poetry.lock
6565
if: steps.lock-cache.outputs.cache-hit != 'true'
6666
working-directory: ./example
67-
run: nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/04a75b2eecc0acf6239acf9dd04485ff8d14f425.tar.gz -p poetry --run "poetry lock --no-update"
67+
run: nix-shell -p poetry --run "poetry lock --no-update"
6868
- name: Set short commit SHA
6969
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
7070
- name: Push generated test project

template/Dockerfile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV PYTHONUNBUFFERED=1 \
1414
POETRY_HOME="/opt/poetry" \
1515
POETRY_VIRTUALENVS_IN_PROJECT=true \
1616
POETRY_NO_INTERACTION=1 \
17-
POETRY_VERSION=1.2.0 \
17+
POETRY_VERSION=1.3.2 \
1818
POETRY_INSTALL_OPTS="--no-interaction --without dev --no-root" \
1919
PYSETUP_PATH="/pysetup" \
2020
VENV_PATH="/pysetup/.venv"

template/Makefile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SHELL=/usr/bin/env bash -o pipefail -o errexit
1212
TAG ?= $(shell cat TAG)
1313
POETRY_HOME ?= ${HOME}/.local/share/pypoetry
1414
POETRY_BINARY ?= ${POETRY_HOME}/venv/bin/poetry
15-
POETRY_VERSION ?= 1.2.0
15+
POETRY_VERSION ?= 1.3.2
1616

1717
help: ## Display this help
1818
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

template/build/install.sh.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ fi
2929

3030
POETRY_HOME="${POETRY_HOME:=${HOME}/.local/share/pypoetry}"
3131
POETRY_BINARY="${POETRY_BINARY:=${POETRY_HOME}/venv/bin/poetry}"
32-
POETRY_VERSION="${POETRY_VERSION:=1.2.0}"
32+
POETRY_VERSION="${POETRY_VERSION:=1.3.2}"
3333
if ! command -v "$POETRY_BINARY" &> /dev/null; then
3434
echo "[install] Poetry is not installed. Begin download and install."
35-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/1.2.0/install-poetry.py | POETRY_HOME=$POETRY_HOME POETRY_VERSION=$POETRY_VERSION $PYTHON -
35+
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/1.3.2/install-poetry.py | POETRY_HOME=$POETRY_HOME POETRY_VERSION=$POETRY_VERSION $PYTHON -
3636
fi
3737

3838
POETRY_INSTALL_OPTS="${POETRY_INSTALL_OPTS:="--no-interaction"}"

template/{% if nix %}flake.lock{% endif %}.jinja

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
},
3333
"nixpkgs": {
3434
"locked": {
35-
"lastModified": 1670461440,
36-
"narHash": "sha256-jy1LB8HOMKGJEGXgzFRLDU1CBGL0/LlkolgnqIsF0D8=",
35+
"lastModified": 1675681488,
36+
"narHash": "sha256-0E/oYpixC+joFk7UrY60TwZcdthzP2BXmJwne3Ni8ZI=",
3737
"owner": "NixOS",
3838
"repo": "nixpkgs",
39-
"rev": "04a75b2eecc0acf6239acf9dd04485ff8d14f425",
39+
"rev": "13fdd3945d8a2da5e4afe35d8a629193a9680911",
4040
"type": "github"
4141
},
4242
"original": {
@@ -54,16 +54,16 @@
5454
]
5555
},
5656
"locked": {
57-
"lastModified": 1670390991,
58-
"narHash": "sha256-+7Ix9k1Mg/argNWOox32P5AiUhMKW+OEJjzHXGKNNjc=",
57+
"lastModified": 1670681815,
58+
"narHash": "sha256-znag7V2HRi9w78hSoTx2snIrPmVJy7O5h6Klqz8aZ00=",
5959
"owner": "nix-community",
6060
"repo": "poetry2nix",
61-
"rev": "dbbf4c83e02c3a25d9d87041386a4981fe699661",
61+
"rev": "bb7f4e1d046c5f19fda8bebb638d5d5bc07573d9",
6262
"type": "github"
6363
},
6464
"original": {
6565
"owner": "nix-community",
66-
"ref": "1.38.0",
66+
"ref": "1.39.1",
6767
"repo": "poetry2nix",
6868
"type": "github"
6969
}

template/{% if nix %}flake.nix{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
77
flake-utils.url = "github:numtide/flake-utils";
88
poetry2nix = {
9-
url = "github:nix-community/poetry2nix?ref=1.38.0";
9+
url = "github:nix-community/poetry2nix?ref=1.39.1";
1010
inputs.nixpkgs.follows = "nixpkgs";
1111
};
1212
};

template/{% if nix %}overlay.nix{% endif %}.jinja

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ final: prev: {
1717
buildInputs = old.buildInputs or [ ] ++ [ py-final.setuptools ];
1818
});
1919

20-
packaging = py-prev.packaging.overridePythonAttrs (old: {
21-
buildInputs = old.buildInputs or [ ] ++ [ py-final.flit-core ];
22-
});
23-
2420
pathspec = py-prev.pathspec.overridePythonAttrs (old: {
2521
buildInputs = old.buildInputs or [ ] ++ [ py-final.flit-core ];
2622
});
@@ -35,7 +31,6 @@ final: prev: {
3531
py-final.hatchling
3632
py-final.build
3733
py-final.setuptools-scm
38-
py-final.setuptools
3934
];
4035
});
4136

0 commit comments

Comments
 (0)