소스 검색

Fix installation on Python < 3.7

theenglishway (time) 7 년 전
부모
커밋
f22591146f
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  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