From 936b32f35f7bbf739483d40a1c0e21a257a3abd9 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 10 Jan 2024 05:18:42 -0800 Subject: [PATCH] Local Python module setup and configuration --- .gitignore | 5 ++++- backtesting/__init__.py | 1 + .../backtest_iron_condor.py | 0 setup.py | 13 +++++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 backtesting/__init__.py rename backtest_iron_condor.py => backtesting/backtest_iron_condor.py (100%) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 2eea525..a2a1857 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -.env \ No newline at end of file +.env +*.egg-info/ +__pycache__/ +dist/ \ No newline at end of file diff --git a/backtesting/__init__.py b/backtesting/__init__.py new file mode 100644 index 0000000..2044a71 --- /dev/null +++ b/backtesting/__init__.py @@ -0,0 +1 @@ +from backtest_iron_condor import backtest_iron_condor \ No newline at end of file diff --git a/backtest_iron_condor.py b/backtesting/backtest_iron_condor.py similarity index 100% rename from backtest_iron_condor.py rename to backtesting/backtest_iron_condor.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6e5d635 --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +from setuptools import setup, find_packages + +setup( + name='backtesting', + version='1.0', + packages=find_packages(), + install_requires=[ + 'numpy', + 'pandas', + 'plotly', + 'python-dotenv' + ] +) \ No newline at end of file