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=[], pathex=[],
binaries=[], binaries=[],
datas=[ datas=[
('relay/database', 'relay/database') ('relay/data', 'relay/data')
], ],
hiddenimports=[], hiddenimports=[],
hookspath=[], hookspath=[],

View file

@ -30,7 +30,7 @@ def get_database(config: Config, migrate: Optional[bool] = True) -> tinysql.Data
connection_class = Connection 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: if not migrate:
return db return db

View file

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