Skip to content

Commit

Permalink
add pyproject.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyuli1204 committed Dec 7, 2023
1 parent 33f2ddc commit 6e0b038
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 32 deletions.
1 change: 1 addition & 0 deletions python/ionpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

__version__ = "0.3.5"
from .Port import Port
from .Param import Param
from .Node import Node
Expand Down
35 changes: 35 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[project]
name = 'ionpy'
dynamic = ["version"]
authors = [
{ name="Takuro Iizuka", email="[email protected]" }
]
description = "Python Binding for ion-kit"
readme = "README.md"
requires-python = ">=3.8"
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python"
]

[project.urls]
Documentation = "https://sensing-dev.github.io/doc/"
Repository = "https://github.com/fixstars/ion-kit"
Changelog = "https://sensing-dev.github.io/doc/blog/index.html"

[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
addopts = "-ra -q"
testpaths = [
"tests",
]

[tool.setuptools]
packages = ["ionpy"]

[tool.setuptools.dynamic]
version = {attr = "ionpy.__version__"}

30 changes: 0 additions & 30 deletions python/setup.py

This file was deleted.

1 change: 1 addition & 0 deletions python/tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def test_all():

builder = Builder()
builder.set_target(target='host')
# make sure path includes libion-bb-test.so
builder.with_bb_module(path='libion-bb-test.so')
# builder.with_bb_module(path='ion-bb-test.dll') # for Windows

Expand Down
4 changes: 2 additions & 2 deletions python/tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def test_pipeline():
t = Type(code_=TypeCode.Float, bits_=32, lanes_=1)
width = Param(key='width', val=str(w))
height = Param(key='height', val=str(h))
urls = Param(key="urls",val="https://optipng.sourceforge.net/pngtech/img/lena.png;https://upload.wikimedia.org/wikipedia/commons/0/05/Cat.png")
urls = Param(key="urls",val="http://optipng.sourceforge.net/pngtech/img/lena.png;http://upload.wikimedia.org/wikipedia/commons/0/05/Cat.png")

builder = Builder()
builder.set_target(target='host')

# make sure path includes libion-bb.so
builder.with_bb_module(path='libion-bb.so')

node = builder.add('image_io_cameraN').set_param(params=[width, height, urls])
Expand Down

0 comments on commit 6e0b038

Please sign in to comment.