From 858ce77d8253a29615f730f7ae98bc928384f0ef Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Sat, 29 Oct 2022 14:36:37 -0400 Subject: [PATCH] project setup --- Dockerfile | 5 +++++ dealwatch/__init__.py | 0 dealwatch/main.py | 5 +++++ setup.cfg | 19 +++++++++++++++++++ setup.py | 7 +++++++ 5 files changed, 36 insertions(+) create mode 100644 Dockerfile create mode 100644 dealwatch/__init__.py create mode 100644 dealwatch/main.py create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3424c11 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.10 +COPY . /tmp/package +RUN pip install --no-cache-dir /tmp/package && \ + rm -r /tmp/package +ENTRYPOINT ["dealwatch"] \ No newline at end of file diff --git a/dealwatch/__init__.py b/dealwatch/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dealwatch/main.py b/dealwatch/main.py new file mode 100644 index 0000000..59cb9cd --- /dev/null +++ b/dealwatch/main.py @@ -0,0 +1,5 @@ +def main(): + print("Hello world") + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..890f926 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,19 @@ +[metadata] +name = dealwatch +author = badjware +author_email = marchambault.badjware.dev +platform = any + +[options] +python_requires = >= 3.10.0 +setup_requires = + setuptools + setuptools_scm +install_requires= + prometheus-client~=0.15.0 + +[options.entry_points] +console_scripts = + dealwatch = dealwatch.main:main + +[tool.setuptools_scm] \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..ec1a7fe --- /dev/null +++ b/setup.py @@ -0,0 +1,7 @@ +from setuptools import setup +from setuptools import find_packages + +setup( + use_scm_version=True, + packages=find_packages(), +)