mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-10 02:17:59 +00:00
actually fix python packaging this time
This commit is contained in:
parent
8806348f95
commit
9cc79aa79a
|
@ -1 +1 @@
|
||||||
include database/statements.sql
|
include data/statements.sql
|
||||||
|
|
|
@ -9,7 +9,7 @@ a = Analysis(
|
||||||
pathex=[],
|
pathex=[],
|
||||||
binaries=[],
|
binaries=[],
|
||||||
datas=[
|
datas=[
|
||||||
('relay/database', 'relay/database')
|
('relay/data', 'relay/data')
|
||||||
],
|
],
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Reference in a new issue