Skip to content

Commit

Permalink
nuitka
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhozic committed Jun 30, 2023
1 parent f3ad548 commit 399fc0e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
42 changes: 25 additions & 17 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,43 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package
name: Publish to PyPi

on:
release:
types: [published]

workflow_dispatch:

jobs:
deploy:
build:
runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, 3.10]

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python3 -m build
- name: Build wheel
run: |
python -m build --wheel
- name: Build source
if: ${{matrix.python-version == 3.8}} and ${{matrix.os == ubuntu-latest}}
run: |
python -m build --sdist
- name: Publish package
uses: pypa/gh-action-pypi-publish@f5622bde02b04381239da3573277701ceca8f6a0
with:
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ requires = [
"setuptools>=62.6,<66",
"setuptools-scm>=6.2,<8",
"wheel",
"nuitka",
]
build-backend = "setuptools.build_meta"

build-backend = "nuitka.distutils.Build"


[project]
name = "discord-advert-framework"
Expand Down

0 comments on commit 399fc0e

Please sign in to comment.