mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-21 22: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=[],
|
||||
binaries=[],
|
||||
datas=[
|
||||
('relay/database', 'relay/database')
|
||||
('relay/data', 'relay/data')
|
||||
],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue