initial project setup
This commit is contained in:
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*.egg
|
||||
*.egg-info/
|
||||
dist/
|
||||
build/
|
||||
*.env
|
||||
.env
|
||||
1
genai_gateway/__init__.py
Normal file
1
genai_gateway/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# package initializer
|
||||
5
genai_gateway/main.py
Normal file
5
genai_gateway/main.py
Normal file
@@ -0,0 +1,5 @@
|
||||
def main():
|
||||
print("Hello, world!")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
3
pyproject.toml
Normal file
3
pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=42", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
# Add your project dependencies here
|
||||
15
setup.py
Normal file
15
setup.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name="genai_gateway",
|
||||
version="0.1.0",
|
||||
packages=find_packages(),
|
||||
install_requires=[
|
||||
# Add your dependencies here, e.g. "requests"
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"myproject=myproject.main:main"
|
||||
]
|
||||
},
|
||||
)
|
||||
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
6
tests/test_main.py
Normal file
6
tests/test_main.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from myproject.main import main
|
||||
|
||||
def test_main(capsys):
|
||||
main()
|
||||
captured = capsys.readouterr()
|
||||
assert "Hello, world!" in captured.out
|
||||
Reference in New Issue
Block a user