mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
setup.py work
This commit is contained in:
@@ -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}')
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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(),
|
||||
)
|
||||
|
||||
@@ -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
13
scripts/tile_gen/setup.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
|
||||
requirements = [
|
||||
'click',
|
||||
]
|
||||
|
||||
|
||||
setup(
|
||||
python_requires='>=3.10',
|
||||
install_requires=requirements,
|
||||
packages=find_packages(),
|
||||
)
|
||||
0
scripts/tile_gen/tile_gen_lib/__init__.py
Normal file
0
scripts/tile_gen/tile_gen_lib/__init__.py
Normal file
6
setup.py
6
setup.py
@@ -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(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user