Modularized the tool.

This commit is contained in:
2025-07-21 15:49:15 +02:00
parent 03e6e56a35
commit 71890d1a57
8 changed files with 426 additions and 0 deletions

23
setup.py Normal file
View File

@@ -0,0 +1,23 @@
# setup.py
from setuptools import setup, find_packages
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name='reddit-stock-analyzer',
version='0.0.1',
author='Pål-Kristian Hamre',
author_email='its@pkhamre.com',
description='A command-line tool to analyze stock ticker mentions on Reddit.',
# This now correctly finds your 'rstat_tool' package
packages=find_packages(),
install_requires=requirements,
entry_points={
'console_scripts': [
# The path is now 'package_name.module_name:function_name'
'rstat=rstat_tool.main:main',
],
},
)