Selaa lähdekoodia

Fix installation on Python < 3.7

theenglishway (time) 7 vuotta sitten
vanhempi
commit
f22591146f
2 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  1. 6 1
      README.rst
  2. 2 1
      setup.cfg

+ 6 - 1
README.rst

@@ -8,9 +8,14 @@ A simple scraper for Twitter
 Installation
 ------------
 
+Installation requires Python >= 3.6.
+
 ..highlight: shell
 
-    $ pip install --user -e git+https://code.theenglishway.eu/theenglishway-corp/twhatter
+    $ pip install --user git+https://code.theenglishway.eu/theenglishway-corp/twhatter
+
+You then have to ensure that `~/.local/bin` in your `$PATH` or call
+`~/.local/bin/twhatter` instead of `twhatter` in the following examples
 
 Use
 ---

+ 2 - 1
setup.cfg

@@ -37,7 +37,7 @@ source =
 
 [metadata]
 name = twhatter
-version = twhatter.__version__
+version = attr:twhatter.__version__
 author = theenglishway
 author_email = me@theenglishway.eu
 classifiers =
@@ -67,6 +67,7 @@ install_requires =
     sqlalchemy
     ipython
     user_agent
+    dataclasses; python_version < "3.7"
 tests_require =
 	pytest