Skip to content

Commit 8cb79f9

Browse files
committed
Update release action
1 parent 23aab36 commit 8cb79f9

File tree

6 files changed

+76
-100
lines changed

6 files changed

+76
-100
lines changed

.github/workflows/release-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
run: python -m pip install poetry
108108

109109
- name: Install dependencies
110-
run: poetry install --extras "unstable"
110+
run: poetry install --with unstable
111111

112112
- name: Build package
113113
run: poetry build
@@ -133,6 +133,6 @@ jobs:
133133
path: dist/
134134

135135
- name: Publish to PyPI
136-
uses: pypa/gh-action-pypi-publish@release/v1
136+
uses: pypa/gh-action-pypi-publish@release/v1.12
137137
with:
138138
skip-existing: true

.github/workflows/test-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run: python -m pip install poetry
5757

5858
- name: Install dependencies
59-
run: poetry install --with test --extras "unstable"
59+
run: poetry install --with test,unstable
6060

6161
- name: Build package
6262
run: poetry build
@@ -108,7 +108,7 @@ jobs:
108108

109109
- name: Publish to Test PyPI
110110
if: ${{ github.event_name == 'push' }}
111-
uses: pypa/gh-action-pypi-publish@release/v1
111+
uses: pypa/gh-action-pypi-publish@release/v1.12
112112
with:
113113
skip-existing: true
114114
repository-url: https://test.pypi.org/legacy/

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ USE_DOCKER ?=
1717

1818
prepare_docs:
1919
@echo "Preparing documentation."
20-
poetry install --with docs --extras "unstable"
20+
poetry install --with docs,unstable
2121
poetry run python $(DOCS_SRC_DIR)/generate_documentation.py
2222
mkdir -p $(DOCS_DIST_DIR)/logos
2323
mkdir -p $(DOCS_DIST_DIR)/img

documentation/mkdocs/install.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,6 @@ poetry bundle venv /destination/path/
152152
This is a bit more convoluted and it is similar to how you would install `misp-modules` on an offline instance.
153153

154154
Just follow those instructions but replace the package `misp-modules` with `-r requirements.txt`.
155-
156-
Before doing so you need to generate the `requirements.txt` file. Due to the fact we are still supporting Python 3.8 and that Poetry still has some limitations (soon to be resolved) you need to need to replace the line `python = ">=3.8.*,<3.13"` inside `pyproject.toml` with your exact version (just run `python --version`).
157-
158-
The following `sed` command does everything for you.
159-
160-
~~~~bash
161-
sed -i "s/^python = .*/python = \"$(python -c 'import platform; print(platform.python_version())')\"/" pyproject.toml
162-
~~~~
163-
164155
Then, run the following commands to generate your very own `requirements.txt`.
165156

166157
~~~~bash

0 commit comments

Comments
 (0)