Add non-Python assets to pyproj.toml

This commit is contained in:
Rebecca Breu 2024-05-07 21:20:18 +02:00
parent 4648fa9c91
commit 8a19a916a0
2 changed files with 6 additions and 1 deletions

View file

@ -38,6 +38,7 @@ class BeeAssets:
logger.debug(f'Assets path: {self.PATH}')
self.logo = QtGui.QIcon(os.path.join(self.PATH, 'logo.png'))
assert self.logo.isNull() is False
self.cursor_rotate = self.cursor_from_image(
'cursor_rotate.png', (20, 20))
self.cursor_flip_h = self.cursor_from_image(
@ -49,6 +50,7 @@ class BeeAssets:
app = QtWidgets.QApplication.instance()
scaling = app.primaryScreen().devicePixelRatio()
img = QtGui.QImage(os.path.join(self.PATH, filename))
assert img.isNull() is False
pixmap = QtGui.QPixmap.fromImage(img)
pixmap.setDevicePixelRatio(scaling)
return QtGui.QCursor(

View file

@ -1,10 +1,13 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["beeref*"]
[tool.setuptools.package-data]
"*" = ["*.html", "*.png"]
[project]
name = "BeeRef"
version = "0.3.4-dev"