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

@ -5,40 +5,43 @@ block_cipher = None
a = Analysis( a = Analysis(
['relay/__main__.py'], ['relay/__main__.py'],
pathex=[], pathex=[],
binaries=[], binaries=[],
datas=[], datas=[
hiddenimports=[], ('relay/database', 'relay/database')
hookspath=[], ],
hooksconfig={}, hiddenimports=[],
runtime_hooks=[], hookspath=[],
excludes=[], hooksconfig={},
win_no_prefer_redirects=False, runtime_hooks=[],
win_private_assemblies=False, excludes=[],
cipher=block_cipher, win_no_prefer_redirects=False,
noarchive=False, win_private_assemblies=False,
cipher=block_cipher,
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(
pyz, pyz,
a.scripts, a.scripts,
a.binaries, a.binaries,
a.zipfiles, a.zipfiles,
a.datas, a.datas,
[], [],
name='activityrelay', name='activityrelay',
debug=False, debug=False,
bootloader_ignore_signals=False, bootloader_ignore_signals=False,
strip=False, strip=False,
upx=True, upx=True,
upx_exclude=[], upx_exclude=[],
runtime_tmpdir=None, runtime_tmpdir=None,
console=True, console=True,
disable_windowed_traceback=False, disable_windowed_traceback=False,
argv_emulation=False, argv_emulation=False,
target_arch=None, target_arch=None,
codesign_identity=None, codesign_identity=None,
entitlements_file=None, entitlements_file=None,
) )

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 =