Skip to content

Commit

Permalink
Switch to pyproject.toml for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
averne committed Oct 6, 2024
1 parent c1b6016 commit db0e22c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
python-version: '3.x'

- run: pip install meson ninja jsonschema jinja2
- run: pip install meson ninja

- run: meson setup build

Expand Down Expand Up @@ -97,7 +97,6 @@ jobs:

- run: |
sudo apt install -y libgcrypt-dev
pip install -U setuptools
if: matrix.os == 'ubuntu-latest'
- run: python setup.py build
- run: python -m pip install .
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["setuptools>=74.1"]
build-backend = "setuptools.build_meta"

[project]
name = "fnx"
version = "1.1.2"
authors = [
{ name = "averne" },
]
description = "Library for parsing and reading Nintendo Switch file formats"
readme = {file = "README.txt", content-type = "text/markdown"}
requires-python = ">=3.10"
license = {file = "LICENSE"}

[[tool.setuptools.ext-modules]]
name = "fnxbinds"
sources = [
"bindings/bindings.cpp",
"lib/io.cpp",
"lib/keyset.cpp",
"lib/crypto.cpp",
"lib/pfs.cpp",
"lib/hfs.cpp",
"lib/romfs.cpp",
"lib/nca.cpp",
"lib/xci.cpp",
]
include-dirs = ["include"]
define-macros = [["USE_GCRYPT"]]
extra-compile-args = ["-std=gnu++20"]
libraries = ["gcrypt"]
24 changes: 0 additions & 24 deletions setup.py

This file was deleted.

0 comments on commit db0e22c

Please sign in to comment.