fix python packaging

This commit is contained in:
Izalia Mae 2024-01-22 06:30:28 -05:00
parent 5f6aef1871
commit 8806348f95
3 changed files with 47 additions and 38 deletions

1
MANIFEST.in Normal file
View file

@ -0,0 +1 @@
include database/statements.sql

View file

@ -8,7 +8,9 @@ a = Analysis(
['relay/__main__.py'], ['relay/__main__.py'],
pathex=[], pathex=[],
binaries=[], binaries=[],
datas=[], datas=[
('relay/database', 'relay/database')
],
hiddenimports=[], hiddenimports=[],
hookspath=[], hookspath=[],
hooksconfig={}, hooksconfig={},
@ -19,6 +21,7 @@ a = Analysis(
cipher=block_cipher, cipher=block_cipher,
noarchive=False, noarchive=False,
) )
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE( exe = EXE(

View file

@ -10,26 +10,31 @@ license_file = LICENSE
classifiers = classifiers =
Environment :: Console Environment :: Console
License :: OSI Approved :: AGPLv3 License License :: OSI Approved :: AGPLv3 License
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
project_urls = project_urls =
Source = https://git.pleroma.social/pleroma/relay Source = https://git.pleroma.social/pleroma/relay
Tracker = https://git.pleroma.social/pleroma/relay/-/issues Tracker = https://git.pleroma.social/pleroma/relay/-/issues
[options] [options]
zip_safe = False zip_safe = False
packages = find: packages = relay
include_package_data = true
install_requires = file: requirements.txt install_requires = file: requirements.txt
python_requires = >=3.8 python_requires = >=3.8
[options.extras_require] [options.extras_require]
dev = dev =
flake8 = 3.1.0 flake8 == 3.1.0
pyinstaller = 6.3.0 pyinstaller == 6.3.0
pylint = 3.0 pylint == 3.0
[options.package_data]
relay =
database/statements.sql
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =