Restored some sections of setup.py.

Otherwise the installation won't work properly on Debian oldstable (and
probably any Python installation that doesn't fully support
pyproject.toml yet).
This commit is contained in:
Fabio Manganiello 2024-07-27 16:22:14 +02:00
parent 4d18345cda
commit d0f65e84e0
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -6,6 +6,15 @@ import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
def path(fname=''):
return os.path.abspath(os.path.join(os.path.dirname(__file__), fname))
def readfile(fname):
with open(path(fname)) as f:
return f.read()
def scan_manifests(): def scan_manifests():
for root, _, files in os.walk('platypush'): for root, _, files in os.walk('platypush'):
for file in files: for file in files:
@ -48,4 +57,29 @@ setup(
packages=find_packages(exclude=['tests']), packages=find_packages(exclude=['tests']),
include_package_data=True, include_package_data=True,
extras_require=parse_manifests(), extras_require=parse_manifests(),
package_data={
'platypush': [
'migrations/alembic.ini',
'migrations/alembic/*',
'migrations/alembic/**/*',
'install/**',
'install/scripts/*',
'install/scripts/**/*',
'install/requirements/*',
'install/docker/*',
'components.json.gz',
],
},
entry_points={
'console_scripts': [
'platypush=platypush:main',
'platydock=platypush.platydock:main',
'platyvenv=platypush.platyvenv:main',
],
},
install_requires=[
line.split('#')[0].strip()
for line in readfile('requirements.txt').splitlines()
if line.strip().split('#')[0].strip()
],
) )