Parcourir la source

walle 2.0.0 is release, enjoy it

walle il y a 6 ans
Parent
commit
928245996b
5 fichiers modifiés avec 21 ajouts et 16 suppressions
  1. 3 10
      .travis.yml
  2. 10 0
      README.md
  3. 4 5
      requirements/dev.txt
  4. 3 0
      walle/model/database.py
  5. 1 1
      walle/service/utils.py

+ 3 - 10
.travis.yml

@@ -1,15 +1,8 @@
 language: python
-sudo: enabled
 cache:
   directories:
     - $HOME/.cache/pip
 matrix:
-  allow_failures:
-    - python: "3.7"  # until we can get Python 3 compatibility in place
-  # NOTE: comment out fast_finish if we have to reinstate any allow_failures,
-  # because of https://github.com/travis-ci/travis-ci/issues/1696 (multiple
-  # notifications)
-  fast_finish: true
   include:
     - python: "2.7"    
     - python: "3.7"
@@ -21,7 +14,7 @@ install:
   # corner packaging cases. So...
   - pip install --upgrade pip
   # Setuptools 34+ seems to get less stable
-  - pip install 'setuptools>33,<34'
+  # - pip install 'setuptools>33,<34'
   # Pre-requirements sanity test (again, resembles pure, non-dev install
   # environment.) Avoids e.g. spec's 'six' from gumming up our attempts to
   # import our vendorized 'six'.
@@ -30,9 +23,9 @@ install:
 before_script:
   - echo "#before_script#"
   # stop the build if there are Python syntax errors or undefined names
-  - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
+  - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
   # exit-zero treats all errors as warnings.  The GitHub editor is 127 chars wide
-  - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
+  - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
   - mkdir -p /tmp/walle/{logs,library,webroot,releases}
 script:
   - echo "#script#"

+ 10 - 0
README.md

@@ -99,3 +99,13 @@ Discussing
 你也不一定要赞赏,芸芸众生,相遇相识是一种缘份。不过可以给点个star,或者关注公众号,哈哈
 
 <img src="https://raw.github.com/meolu/docs/master/walle-web.io/docs/2/zh-cn/static/appreciation-wechat.jpg" width="220" height="220" alt="赞赏码" />
+
+<img src="https://raw.githubusercontent.com/meolu/walle-web/master/screenshot/appreciation-wechat.jpg" width="220" height="220" alt="赞赏码" />
+
+Code Visualization
+=========================
+感谢`gitviscode`组织制作的`commit history`视频,记录从15年萌芽发展,有那么多开发者加入完善。1'50的时候,以为项目都停止更新了,然后突然如烟花绽放的感觉,我他妈都感动得要哭了
+
+ [![Watch the video](https://img.youtube.com/vi/AIir52mETMY/0.jpg)](https://www.youtube.com/watch?v=AIir52mETMY)
+
+ [https://www.youtube.com/watch?v=AIir52mETMY](https://www.youtube.com/watch?v=AIir52mETMY)

+ 4 - 5
requirements/dev.txt

@@ -2,16 +2,15 @@
 -r prod.txt
 
 # Testing
-pytest==4.0.1
-WebTest==2.0.27
-factory-boy==2.8.1
+pytest==4.1.0
+WebTest==2.0.32
+factory-boy==2.11.1
 
 # Lint and code style
 flake8==3.6.0
-flake8-blind-except==0.1.1
 # flake8-debugger==3.1.0
 flake8-docstrings==1.3.0
-flake8-isort==2.5
+flake8-isort==2.6.0
 flake8-quotes==1.0.0
 isort==4.3.4
 pep8-naming==0.7.0

+ 3 - 0
walle/model/database.py

@@ -1,5 +1,8 @@
 # -*- coding: utf-8 -*-
 """Database module, including the SQLAlchemy database object and DB-related utilities."""
+
+# flake8: noqa  # flake8 has real problems linting this file on Python 2
+
 from pprint import pformat
 
 from sqlalchemy import desc, or_

+ 1 - 1
walle/service/utils.py

@@ -36,7 +36,7 @@ if PY2:
     string_types = (str, unicode)  # noqa
     unicode = unicode  # noqa
     basestring = basestring  # noqa
-    reload(sys)
+    reload(sys)  # noqa
     sys.setdefaultencoding('utf8')
 else:
     text_type = str