Commit c2442ed1 authored by Juraj Sloboda's avatar Juraj Sloboda Committed by Matej Feder

Add setup.py

parent b7701c2b
......@@ -3,3 +3,4 @@
.idea
__pycache__
*.swp
*.egg-info
pydtn~=1.0.0
pydtn_rest~=1.0.0
......@@ -4,41 +4,41 @@ version: "2"
services:
pyDTN-1:
image: pydtn
build:
context: pyDTN
image: python:3
hostname: pyDTN-1
ports:
- "8081:8081"
tty: true
restart: always
volumes:
- ../pydtn:/pydtn
- ../pydtn_rest:/pydtn_rest
- ../demo_app:/demo_app
environment:
- PYTHONPATH=/pydtn:/pydtn_rest:/demo_app
command: --node dtn://pyDTN-1.dtn --port 2001 --http-port 8081 --upcn-host 172.25.1.21 --upcn-port 4556
- ..:/src
command: >
/src/docker/pydtn_run.sh
--node dtn://pyDTN-1.dtn
--port 2001
--http-port 8081
--upcn-host 172.25.1.21
--upcn-port 4556
networks:
dtnnet1:
ipv4_address: 172.25.1.11
pyDTN-2:
image: pydtn
build:
context: pyDTN
image: python:3
hostname: pyDTN-2
ports:
- "8082:8082"
tty: true
restart: always
volumes:
- ../pydtn:/pydtn
- ../pydtn_rest:/pydtn_rest
- ../demo_app:/demo_app
environment:
- PYTHONPATH=/pydtn:/pydtn_rest:/demo_app
command: --node dtn://pyDTN-2.dtn --port 2002 --http-port 8082 --upcn-host 172.25.2.21 --upcn-port 4556
- ..:/src
command: >
/src/docker/pydtn_run.sh
--node dtn://pyDTN-2.dtn
--port 2002
--http-port 8082
--upcn-host 172.25.2.21
--upcn-port 4556
networks:
dtnnet2:
ipv4_address: 172.25.2.11
......
# Basic Python 3 image
FROM python:3
# Update aptitude with new repo
RUN apt-get update
RUN apt-get install -y python3-pip joe tcpdump
RUN pip install cbor~=1.0.0 cbor2~=4.1.2 asyncio~=3.4.3 aiohttp~=3.5.4
ENTRYPOINT ["python", "-m", "demo_app.main"]
#!/usr/bin/env sh
pip install --editable /src/pydtn
pip install --editable /src/pydtn_rest
python /src/demo_app/main.py "$@"
from setuptools import setup, find_packages
install_requires = [
'cbor>=1.0.0',
'cbor2>=4.1.2',
'asyncio>=3.4.3',
]
setup(
name='pydtn',
version='1.0.0',
description='Python Delay-Tolerant Networking Agent',
url='https://git.ifne.eu/space-public/pyDTN/',
python_requires='>=3.7.3',
packages=find_packages(),
install_requires=install_requires,
)
pydtn~=1.0.0
aiohttp~=3.5.4
from setuptools import setup, find_packages
install_requires = [
'pydtn>=1.0.0',
'aiohttp>=3.5.4',
]
setup(
name='pydtn_rest',
version='1.0.0',
description='Python Delay-Tolerant Networking REST server',
url='https://git.ifne.eu/space-public/pyDTN/',
python_requires='>=3.7.3',
packages=find_packages(),
install_requires=install_requires,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment