setup.py work

This commit is contained in:
Zsolt Ero
2024-01-03 14:37:18 +01:00
parent efaebb1b3c
commit 1eb838edd0
7 changed files with 32 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ from ssh_lib.nginx import certbot, nginx
from ssh_lib.pkg_base import pkg_base, pkg_upgrade
from ssh_lib.planetiler import planetiler
from ssh_lib.rclone import rclone
from ssh_lib.utils import add_user, enable_sudo, put, reboot, sudo_cmd
from ssh_lib.utils import add_user, enable_sudo, put, put_dir, reboot, sudo_cmd
def prepare_shared(c):
@@ -100,6 +100,8 @@ def prepare_http_host(c):
upload_https_host_files(c)
upload_certificates(c)
c.sudo('/data/ofm/venv/bin/pip install -e /data/ofm/http_host/bin')
def upload_https_host_files(c):
c.sudo(f'mkdir -p {HTTP_HOST_BIN}')

View File

@@ -9,6 +9,10 @@ python3 -m venv venv
source venv/bin/activate
pip install -U pip wheel setuptools
pip install -e .
pip install -e .
pip install -e scripts/http_host
pip install -e scripts/tile_gen

View File

@@ -1,7 +1,13 @@
from setuptools import setup
from setuptools import find_packages, setup
requirements = [
'click',
]
setup(
python_requires='>=3.10',
packages=['http_host_lib'],
install_requires=requirements,
packages=find_packages(),
)

View File

@@ -11,6 +11,5 @@ venv/bin/pip -V
venv/bin/pip install -U pip wheel setuptools
venv/bin/pip install click requests

13
scripts/tile_gen/setup.py Normal file
View File

@@ -0,0 +1,13 @@
from setuptools import find_packages, setup
requirements = [
'click',
]
setup(
python_requires='>=3.10',
install_requires=requirements,
packages=find_packages(),
)

View File

@@ -1,4 +1,4 @@
from setuptools import setup
from setuptools import find_packages, setup
requirements = [
@@ -6,12 +6,12 @@ requirements = [
'fabric',
'nginxfmt',
'python-dotenv',
'requests',
'ruff',
]
setup(
python_requires='>=3.10',
install_requires=requirements,
packages=['ssh_lib'],
packages=find_packages(),
)