Skip to content

Commit f716163

Browse files
Pypi build (#14)
* Start package for pypi * Add publish.yml * Specify poetry version * Update version
1 parent e8829e7 commit f716163

File tree

5 files changed

+166
-2
lines changed

5 files changed

+166
-2
lines changed

.github/workflows/publish.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to PyPi
2+
on: workflow_dispatch
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
pypi-publish:
9+
name: Upload release to PyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/project/pyinstxtractor-ng/
14+
permissions:
15+
id-token: write
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python 3.12
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.12"
24+
25+
- name: Install Poetry
26+
uses: snok/install-poetry@v1
27+
with:
28+
version: 1.8.5
29+
30+
- name: Install dependencies
31+
run: poetry install --sync --no-interaction
32+
33+
- name: Package project
34+
run: poetry build
35+
36+
- name: Publish package distributions to PyPI
37+
uses: pypa/gh-action-pypi-publish@release/v1

poetry.lock

+104
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tool.poetry]
2+
name = "pyinstxtractor-ng"
3+
version = "2025.01.05"
4+
description = "PyInstaller Extractor Next Generation"
5+
authors = ["extremecoders-re"]
6+
license = "GPL-3.0-only"
7+
readme = "README.md"
8+
packages = [
9+
{ include = "pyinstxtractor-ng.py" }
10+
]
11+
12+
13+
[tool.poetry.dependencies]
14+
python = ">=3.8,<3.13"
15+
xdis = "6.1.3"
16+
pycryptodome = "3.17"
17+
18+
[tool.poetry.scripts]
19+
pyinstxtractor-ng = 'pyinstxtractor-ng:main'
20+
21+
[build-system]
22+
requires = ["poetry-core"]
23+
build-backend = "poetry.core.masonry.api"

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pyinstaller==5.10.1
2-
xdis==6.1.1
2+
xdis==6.1.3
33
PyCryptoDome==3.17

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
xdis==6.1.1
1+
xdis==6.1.3
22
PyCryptoDome==3.17

0 commit comments

Comments
 (0)