actually fix python packaging this time

This commit is contained in:
Izalia Mae 2024-01-22 06:39:12 -05:00
parent 8806348f95
commit 9cc79aa79a
5 changed files with 7 additions and 5 deletions

View file

@ -1 +1 @@
include database/statements.sql
include data/statements.sql

View file

@ -9,7 +9,7 @@ a = Analysis(
pathex=[],
binaries=[],
datas=[
('relay/database', 'relay/database')
('relay/data', 'relay/data')
],
hiddenimports=[],
hookspath=[],

View file

@ -30,7 +30,7 @@ def get_database(config: Config, migrate: Optional[bool] = True) -> tinysql.Data
connection_class = Connection
)
db.load_prepared_statements(pkgfiles("relay").joinpath("database", "statements.sql"))
db.load_prepared_statements(pkgfiles("relay").joinpath("data", "statements.sql"))
if not migrate:
return db

View file

@ -21,7 +21,9 @@ project_urls =
[options]
zip_safe = False
packages = relay
packages =
relay
relay.database
include_package_data = true
install_requires = file: requirements.txt
python_requires = >=3.8
@ -34,7 +36,7 @@ dev =
[options.package_data]
relay =
database/statements.sql
data/statements.sql
[options.entry_points]
console_scripts =