Skip to content

Commit 633afb3

Browse files
committed
Basic configuration of poetry
1 parent c82300f commit 633afb3

File tree

6 files changed

+2394
-14
lines changed

6 files changed

+2394
-14
lines changed

odtp/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import click
1111
import typer
1212

13-
from odtp import __version__
13+
#from odtp import __version__
1414

1515
app = typer.Typer(add_completion=False)
1616
db = typer.Typer()

odtp/run.py

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import logging
22
import os
33
import subprocess
4-
import subprocess
5-
import subprocess
6-
import subprocess
7-
import subprocess
84
# Send to the docker as env
95
# Step id for logging
106
# Output id for uploading the data

poetry.lock

+2,349
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[tool.poetry]
2+
name = "odtp"
3+
version = "0.2.0"
4+
description = "A tool to deploy and manage open digital twins"
5+
authors = ["caviri <[email protected]>"]
6+
license = "AGPL 3.0"
7+
readme = "README.md"
8+
9+
[tool.poetry.dependencies]
10+
python = "^3.11"
11+
pydantic = "2.5.2"
12+
typer = "0.9.0"
13+
pymongo = "3.12.0"
14+
python-dotenv = "^1.0.0"
15+
boto3 = "^1.33.13"
16+
barfi = "^0.7.0"
17+
streamlit = "^1.29.0"
18+
st-pages = "^0.4.5"
19+
streamlit-card = "^1.0.0"
20+
pygwalker = "^0.3.17"
21+
streamlit-aggrid = "^0.3.4.post3"
22+
23+
[tool.poetry.group.dev.dependencies]
24+
pytest = "^7.2.1"
25+
26+
[build-system]
27+
requires = ["poetry-core"]
28+
build-backend = "poetry.core.masonry.api"
29+
30+
[tool.poetry.scripts]
31+
odtp = "odtp.cli:app"

requirements.txt

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# For GUI
2-
streamlit
3-
streamlit-aggrid
4-
st_pages
5-
barfi
6-
boto3
7-
pymongo
8-
pygwalker
9-
streamlit-card
2+
streamlit==1.29.0
3+
streamlit-aggrid==0.3.4.post3
4+
st_pages==0.4.5
5+
barfi==0.7.0
6+
boto3==1.33.13
7+
pygwalker==0.3.17
8+
streamlit-card==1.0.0
109

1110
#For CLI
1211
pydantic==2.5.2
1312
typer==0.9.0
1413
pymongo==3.12.0
15-
python-dotenv
14+
python-dotenv==1.0.0

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@
2323
'License :: OSI Approved :: GLP 3 License',
2424
'Operating System :: OS Independent',
2525
],
26+
entry_points={
27+
'console_scripts': [
28+
'odtp=odtp.cli:app',
29+
],
30+
},
2631
python_requires='==3.11.5',
2732
)

0 commit comments

Comments
 (0)