Add pyproject.toml

This commit is contained in:
Joeri Exelmans 2023-03-01 19:03:15 +01:00
parent 8e6a90ef01
commit b2d7c5b4b6
4 changed files with 35 additions and 1 deletions

View file

@ -1 +1,5 @@
#xopp2py
Python interface to .xopp (Xournal++) files.
The only dependency is Python 3. (developed with Python 3.10)

9
default.nix Normal file
View file

@ -0,0 +1,9 @@
with import <nixpkgs> {};
with pkgs.python3Packages;
buildPythonPackage {
name = "xopp2py";
src = ./.;
format = "pyproject"; # tell Nix to use pyproject.toml
propagatedBuildInputs = [ hatchling ];
}

21
pyproject.toml Normal file
View file

@ -0,0 +1,21 @@
[project]
name = "xopp2py"
description = "A Python interface to the Xournal++ file format"
version = "1.0.0"
authors = [
{ name="Joeri Exelmans", email="joeri.exelmans@uantwerpen.be" },
]
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.urls]
"Homepage" = "https://msdl.uantwerpen.be/git/jexelmans/xopp2py"
"Bug Tracker" = "https://msdl.uantwerpen.be/git/jexelmans/xopp2py/issues"

View file

@ -8,5 +8,5 @@ if __name__ == "__main__":
argparser.add_argument('filename')
args = argparser.parse_args() # exits on error
from .parser import parseFile
from parser import parseFile
print(parseFile(args.filename))