Skip to content

Commit

Permalink
Pypi build (#14)
Browse files Browse the repository at this point in the history
* Start package for pypi

* Add publish.yml

* Specify poetry version

* Update version
  • Loading branch information
extremecoders-re authored Jan 5, 2025
1 parent e8829e7 commit f716163
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to PyPi
on: workflow_dispatch

permissions:
contents: read

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/pyinstxtractor-ng/
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.5

- name: Install dependencies
run: poetry install --sync --no-interaction

- name: Package project
run: poetry build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
104 changes: 104 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tool.poetry]
name = "pyinstxtractor-ng"
version = "2025.01.05"
description = "PyInstaller Extractor Next Generation"
authors = ["extremecoders-re"]
license = "GPL-3.0-only"
readme = "README.md"
packages = [
{ include = "pyinstxtractor-ng.py" }
]


[tool.poetry.dependencies]
python = ">=3.8,<3.13"
xdis = "6.1.3"
pycryptodome = "3.17"

[tool.poetry.scripts]
pyinstxtractor-ng = 'pyinstxtractor-ng:main'

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pyinstaller==5.10.1
xdis==6.1.1
xdis==6.1.3
PyCryptoDome==3.17
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
xdis==6.1.1
xdis==6.1.3
PyCryptoDome==3.17

0 comments on commit f716163

Please sign in to comment.