Skip to content

Commit 0b79e15

Browse files
Allow python 3.14 (#354)
1 parent 74d9713 commit 0b79e15

File tree

10 files changed

+668
-582
lines changed

10 files changed

+668
-582
lines changed

.github/workflows/build_executable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ jobs:
6565
uses: actions/cache@v3
6666
with:
6767
path: ~/.local
68-
key: poetry-${{ matrix.os }}-1 # increment to reset cache
68+
key: poetry-${{ matrix.os }}-2 # increment to reset cache
6969

7070
- name: Setup Poetry
7171
if: steps.cached-poetry.outputs.cache-hit != 'true'
7272
uses: snok/install-poetry@v1
7373
with:
74-
version: 1.8.3
74+
version: 2.2.1
7575

7676
- name: Add Poetry to PATH
7777
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
uses: actions/cache@v4
3838
with:
3939
path: ~/.local
40-
key: poetry-ubuntu-0 # increment to reset cache
40+
key: poetry-ubuntu-1 # increment to reset cache
4141

4242
- name: Setup Poetry
4343
if: steps.cached_poetry.outputs.cache-hit != 'true'
4444
uses: snok/install-poetry@v1
4545
with:
46-
version: 1.8.3
46+
version: 2.2.1
4747

4848
- name: Add Poetry to PATH
4949
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.github/workflows/pre_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
uses: actions/cache@v3
4343
with:
4444
path: ~/.local
45-
key: poetry-ubuntu-0 # increment to reset cache
45+
key: poetry-ubuntu-1 # increment to reset cache
4646

4747
- name: Setup Poetry
4848
if: steps.cached-poetry.outputs.cache-hit != 'true'
4949
uses: snok/install-poetry@v1
5050
with:
51-
version: 1.8.3
51+
version: 2.2.1
5252

5353
- name: Add Poetry to PATH
5454
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ jobs:
4141
uses: actions/cache@v3
4242
with:
4343
path: ~/.local
44-
key: poetry-ubuntu-0 # increment to reset cache
44+
key: poetry-ubuntu-1 # increment to reset cache
4545

4646
- name: Setup Poetry
4747
if: steps.cached-poetry.outputs.cache-hit != 'true'
4848
uses: snok/install-poetry@v1
4949
with:
50-
version: 1.8.3
50+
version: 2.2.1
5151

5252
- name: Add Poetry to PATH
5353
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.github/workflows/ruff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
uses: actions/cache@v3
3131
with:
3232
path: ~/.local
33-
key: poetry-ubuntu-0 # increment to reset cache
33+
key: poetry-ubuntu-1 # increment to reset cache
3434

3535
- name: Setup Poetry
3636
if: steps.cached-poetry.outputs.cache-hit != 'true'
3737
uses: snok/install-poetry@v1
3838
with:
39-
version: 1.8.3
39+
version: 2.2.1
4040

4141
- name: Add Poetry to PATH
4242
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ jobs:
3535
uses: actions/cache@v3
3636
with:
3737
path: ~/.local
38-
key: poetry-ubuntu-0 # increment to reset cache
38+
key: poetry-ubuntu-1 # increment to reset cache
3939

4040
- name: Setup Poetry
4141
if: steps.cached-poetry.outputs.cache-hit != 'true'
4242
uses: snok/install-poetry@v1
4343
with:
44-
version: 1.8.3
44+
version: 2.2.1
4545

4646
- name: Add Poetry to PATH
4747
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.github/workflows/tests_full.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ macos-latest, ubuntu-latest, windows-latest ]
16-
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
16+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
1717

1818
runs-on: ${{matrix.os}}
1919

@@ -50,13 +50,13 @@ jobs:
5050
uses: actions/cache@v3
5151
with:
5252
path: ~/.local
53-
key: poetry-${{ matrix.os }}-${{ matrix.python-version }}-2 # increment to reset cache
53+
key: poetry-${{ matrix.os }}-${{ matrix.python-version }}-3 # increment to reset cache
5454

5555
- name: Setup Poetry
5656
if: steps.cached-poetry.outputs.cache-hit != 'true'
5757
uses: snok/install-poetry@v1
5858
with:
59-
version: 1.8.3
59+
version: 2.2.1
6060

6161
- name: Add Poetry to PATH
6262
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /usr/cycode/app
33
RUN apk add git=2.47.3-r0
44

55
FROM base AS builder
6-
ENV POETRY_VERSION=1.8.3
6+
ENV POETRY_VERSION=2.2.1
77

88
# deps are required to build cffi
99
RUN apk add --no-cache --virtual .build-deps gcc=14.2.0-r4 libffi-dev=3.4.7-r0 musl-dev=1.2.5-r9 && \

poetry.lock

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

pyproject.toml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
[tool.poetry]
1+
[project]
22
name = "cycode"
3-
version = "0.0.0" # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
43
description = "Boost security in your dev lifecycle via SAST, SCA, Secrets & IaC scanning."
5-
keywords=["secret-scan", "cycode", "devops", "token", "secret", "security", "cycode", "code"]
6-
authors = ["Cycode <[email protected]>"]
4+
keywords = ["secret-scan", "cycode", "devops", "token", "secret", "security", "code"]
5+
authors = [{name = "Cycode", email = "[email protected]"}]
76
license = "MIT"
8-
repository = "https://github.com/cycodehq/cycode-cli"
7+
requires-python = ">=3.9"
98
readme = "README.md"
109
classifiers = [
1110
"Development Status :: 5 - Production/Stable",
1211
"Environment :: Console",
13-
"License :: OSI Approved :: MIT License",
1412
"Natural Language :: English",
1513
"Operating System :: OS Independent",
1614
"Programming Language :: Python",
@@ -20,13 +18,21 @@ classifiers = [
2018
"Programming Language :: Python :: 3.11",
2119
"Programming Language :: Python :: 3.12",
2220
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.14",
2322
]
23+
dynamic = ["dependencies", "version"]
2424

25-
[tool.poetry.scripts]
25+
[project.scripts]
2626
cycode = "cycode.cli.app:app"
2727

28+
[project.urls]
29+
repository = "https://github.com/cycodehq/cycode-cli"
30+
31+
[tool.poetry]
32+
requires-poetry = ">=2.0"
33+
version = "0.0.0" # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
34+
2835
[tool.poetry.dependencies]
29-
python = ">=3.9,<3.14"
3036
click = ">=8.1.0,<8.2.0"
3137
colorama = ">=0.4.3,<0.5.0"
3238
pyyaml = ">=6.0,<7.0"
@@ -142,5 +148,5 @@ ban-relative-imports = "all"
142148
quote-style = "single"
143149

144150
[build-system]
145-
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
151+
requires = ["poetry-core>=2.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
146152
build-backend = "poetry_dynamic_versioning.backend"

0 commit comments

Comments
 (0)