Add pyproject.toml
This commit is contained in:
parent
8e6a90ef01
commit
b2d7c5b4b6
4 changed files with 35 additions and 1 deletions
|
|
@ -1 +1,5 @@
|
||||||
|
#xopp2py
|
||||||
|
|
||||||
Python interface to .xopp (Xournal++) files.
|
Python interface to .xopp (Xournal++) files.
|
||||||
|
|
||||||
|
The only dependency is Python 3. (developed with Python 3.10)
|
||||||
9
default.nix
Normal file
9
default.nix
Normal 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
21
pyproject.toml
Normal 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"
|
||||||
|
|
@ -8,5 +8,5 @@ if __name__ == "__main__":
|
||||||
argparser.add_argument('filename')
|
argparser.add_argument('filename')
|
||||||
args = argparser.parse_args() # exits on error
|
args = argparser.parse_args() # exits on error
|
||||||
|
|
||||||
from .parser import parseFile
|
from parser import parseFile
|
||||||
print(parseFile(args.filename))
|
print(parseFile(args.filename))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue