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

Add setup.py

parent b7701c2b
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
.idea .idea
__pycache__ __pycache__
*.swp *.swp
*.egg-info
pydtn~=1.0.0
pydtn_rest~=1.0.0
...@@ -4,41 +4,41 @@ version: "2" ...@@ -4,41 +4,41 @@ version: "2"
services: services:
pyDTN-1: pyDTN-1:
image: pydtn image: python:3
build:
context: pyDTN
hostname: pyDTN-1 hostname: pyDTN-1
ports: ports:
- "8081:8081" - "8081:8081"
tty: true tty: true
restart: always restart: always
volumes: volumes:
- ../pydtn:/pydtn - ..:/src
- ../pydtn_rest:/pydtn_rest command: >
- ../demo_app:/demo_app /src/docker/pydtn_run.sh
environment: --node dtn://pyDTN-1.dtn
- PYTHONPATH=/pydtn:/pydtn_rest:/demo_app --port 2001
command: --node dtn://pyDTN-1.dtn --port 2001 --http-port 8081 --upcn-host 172.25.1.21 --upcn-port 4556 --http-port 8081
--upcn-host 172.25.1.21
--upcn-port 4556
networks: networks:
dtnnet1: dtnnet1:
ipv4_address: 172.25.1.11 ipv4_address: 172.25.1.11
pyDTN-2: pyDTN-2:
image: pydtn image: python:3
build:
context: pyDTN
hostname: pyDTN-2 hostname: pyDTN-2
ports: ports:
- "8082:8082" - "8082:8082"
tty: true tty: true
restart: always restart: always
volumes: volumes:
- ../pydtn:/pydtn - ..:/src
- ../pydtn_rest:/pydtn_rest command: >
- ../demo_app:/demo_app /src/docker/pydtn_run.sh
environment: --node dtn://pyDTN-2.dtn
- PYTHONPATH=/pydtn:/pydtn_rest:/demo_app --port 2002
command: --node dtn://pyDTN-2.dtn --port 2002 --http-port 8082 --upcn-host 172.25.2.21 --upcn-port 4556 --http-port 8082
--upcn-host 172.25.2.21
--upcn-port 4556
networks: networks:
dtnnet2: dtnnet2:
ipv4_address: 172.25.2.11 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 "$@"
cbor~=1.0.0 cbor~=1.0.0
cbor2~=4.1.2 cbor2~=4.1.2
asyncio~=3.4.3 asyncio~=3.4.3
aiohttp~=3.5.4
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