forked from platypush/platypush
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:
parent
4d18345cda
commit
d0f65e84e0
1 changed files with 34 additions and 0 deletions
34
setup.py
34
setup.py
|
@ -6,6 +6,15 @@ import os
|
|||
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():
|
||||
for root, _, files in os.walk('platypush'):
|
||||
for file in files:
|
||||
|
@ -48,4 +57,29 @@ setup(
|
|||
packages=find_packages(exclude=['tests']),
|
||||
include_package_data=True,
|
||||
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()
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue