Modularized the tool.
This commit is contained in:
23
setup.py
Normal file
23
setup.py
Normal 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',
|
||||
],
|
||||
},
|
||||
)
|
Reference in New Issue
Block a user