From 252037c97ba4689ccf642f3a465837f21c462255 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Thu, 28 Oct 2021 13:45:56 -0700 Subject: [PATCH] add warning, pushshift install to tests --- my/reddit/__init__.py | 5 ++++- tox.ini | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/my/reddit/__init__.py b/my/reddit/__init__.py index 5a16577..248d2f9 100644 --- a/my/reddit/__init__.py +++ b/my/reddit/__init__.py @@ -15,7 +15,10 @@ REQUIRES = [ 'git+https://github.com/karlicoss/rexport', ] +from my.core import warnings as W + +# TODO: add link to instructions to migrate +W.high("DEPRECATED! Instead of my.reddit, import from my.reddit.all instead.") -# TODO: add warning here from .rexport import * diff --git a/tox.ini b/tox.ini index 770198c..5f0f6f1 100644 --- a/tox.ini +++ b/tox.ini @@ -88,7 +88,8 @@ commands = hpi module install my.hypothesis hpi module install my.instapaper hpi module install my.pocket - hpi module install my.reddit + hpi module install my.reddit.rexport + hpi module install my.reddit.pushshift hpi module install my.stackexchange.stexport hpi module install my.pinboard hpi module install my.arbtt