-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring packages files, gitignore update, adding example config, …
…readme update
- Loading branch information
1 parent
d50e61b
commit 8b9a996
Showing
7 changed files
with
202 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# rename this file .reddit.cfg and place it in your home directory | ||
[reddit_api] | ||
CLIENTID: "XXXX" | ||
CLIENTSECRET: "XXXX" | ||
PASSWORD: "XXXX" | ||
USERNAME: "XXXX" | ||
|
||
[S3_access] | ||
ACCESSKEY: "XXXX" | ||
SECRETKEY: "XXXX" | ||
|
||
[Discord] | ||
BOTTOKEN: "XXXX" | ||
MYSNOWFLAKEID: "XXXX" | ||
CHANNELSNOWFLAKEID: [123456789,987654321] | ||
|
||
[Postgres] | ||
USERNAME: "XXXX" | ||
PASSWORD: "XXXX" | ||
HOST: "XXXX" | ||
PORT: "XXXX" | ||
DATABASE: "XXXX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# #!/usr/bin/env python | ||
# # good reference: https://github.com/boto/boto3/blob/develop/setup.py | ||
# from setuptools import find_packages, setup | ||
# | ||
# # install_requires = [ | ||
# # "boto3==1.26.117", | ||
# # "matplotlib==3.3.4", | ||
# # "numpy==1.21.6", # required by pyspark | ||
# # "pandas==1.0.5", # required by pyspark | ||
# # "pg8000==1.29.4", # this was easier to pip install than psycopg2 | ||
# # "pyarrow==2.0.0", | ||
# # "pyspark==3.3.0", # using this version because py37 deprecated in pyspark 3.4.0 | ||
# # "requests==2.31.0", | ||
# # "scikit-learn==1.0.2", | ||
# # "seaborn==0.11.2", | ||
# # "shap==0.41.0", | ||
# # "sqlalchemy==1.4.46", # originally tried 2.0.10, but this was incompatible with old versions of pandas https://stackoverflow.com/a/75282604/5034651, | ||
# # "viral_reddit_posts_utils @ git+https://github.com/ViralRedditPosts/Utils.git@main", | ||
# # ] | ||
# # | ||
# # test_requires = [ | ||
# # "moto[dynamodb,s3]==4.1.8", | ||
# # "pytest==7.3.1", | ||
# # "pytest-cov==4.0.0", | ||
# # ]+install_requires | ||
# # | ||
# # build_requires = ["flake8", "black"] + test_requires | ||
# # dev_requires = ["pre-commit==2.21.0"] + build_requires | ||
# | ||
# setup(name='viral_reddit_posts_model', | ||
# version='0.0.1', | ||
# description='Model for Viral Reddit Posts project', | ||
# author='Kenneth Myers', | ||
# url='https://github.com/ViralRedditPosts', | ||
# packages=find_packages(exclude=['tests*']), | ||
# python_requires=">= 3.7", | ||
# # install_requires=install_requires, | ||
# # extras_require={ | ||
# # 'test':test_requires, | ||
# # 'build':build_requires, | ||
# # 'dev':dev_requires | ||
# # } | ||
# ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[build-system] | ||
requires = ["setuptools >= 61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
# see https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ | ||
[project] | ||
name = "Reddit-Model" | ||
|
||
dynamic = ["version"] | ||
|
||
dependencies = [ | ||
"boto3==1.26.117", | ||
"matplotlib==3.3.4", | ||
"numpy==1.21.6", # required by pyspark | ||
"pandas==1.3", # 1.3 at least needed for M1 Mac, lower version required by pyspark | ||
"pg8000==1.29.4", # this was easier to pip install than psycopg2 | ||
"pyarrow==15.0.2", # don't use low versions which pin lower versions of numpy that break on M1 Mac | ||
"pyspark==3.4.0", # using this version because py37 deprecated in pyspark 3.4.0 | ||
"requests==2.31.0", | ||
"scikit-learn==1.0.2", | ||
"seaborn==0.11.2", | ||
"shap==0.41.0", | ||
"sqlalchemy==1.4.46", # originally tried 2.0.10, but this was incompatible with old versions of pandas https://stackoverflow.com/a/75282604/5034651, | ||
"viral_reddit_posts_utils @ git+https://github.com/ViralRedditPosts/Utils.git@main", | ||
] | ||
|
||
requires-python = "== 3.8.15" | ||
|
||
authors = [ | ||
{name = "Kenneth Myers", email = "[email protected]"}, | ||
] | ||
|
||
description = "This project contains the model for scoring rising reddit posts on potential for going viral. It is intended to be built as a docker image and deployed on Amazon Fargate." | ||
|
||
readme = "README.md" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"moto[dynamodb,s3]==4.1.8", | ||
"pytest==7.3.1", | ||
"pytest-cov==4.0.0", | ||
"Reddit-Model" | ||
] | ||
build = [ | ||
"flake8", | ||
"black", | ||
"Reddit-Model[test]" | ||
] | ||
dev = [ | ||
"pre-commit==2.21.0", | ||
"Reddit-Model[build]" | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ['model'] | ||
exclude = ['tests*'] | ||
|
||
|
||
|
||
|