Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove changing our stdout encoding. | Andi Albrecht | 2020-09-13 | 1 | -2/+0 |
| | |||||
* | Update tests to work with newer pytest version. | Andi Albrecht | 2020-09-13 | 1 | -47/+28 |
| | | | | Also some unification of the tests. | ||||
* | Remove support for end-of-life Pythons | Jon Dufresne | 2020-08-31 | 1 | -6/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.7 and 3.4 are end-of-life. They are no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01 and 3.4 on 2019-03-18. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards modern Python 3. Using pypinfo, we can show the PyPI download statistics, showing less than 10% of users are using Python 2.7. | python_version | percent | download_count | | -------------- | ------: | -------------: | | 3.7 | 45.36% | 3,056,010 | | 3.6 | 26.46% | 1,782,778 | | 3.8 | 12.22% | 823,213 | | 2.7 | 9.97% | 671,459 | | 3.5 | 5.86% | 394,846 | | 3.4 | 0.10% | 6,700 | | 3.9 | 0.03% | 2,346 | | 2.6 | 0.00% | 57 | | 3.3 | 0.00% | 21 | | 3.10 | 0.00% | 6 | | Total | | 6,737,436 | Library users who continue to use Python 2.7 will still be able to install previous versions of sqlparse. Compatibility shims have been dropped, simplifying the code. Using pyupgrade, the codebase has been updated to take advantage of modern syntax <https://github.com/asottile/pyupgrade>. The wheel is no longer marked as "universal" as it is now Python 3 only. | ||||
* | Correct spelling (#407) | Josh Soref | 2018-05-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | * spelling: choice * spelling: duplicate * spelling: identifier * spelling: issue * spelling: parenthesis * spelling: split * spelling: statements | ||||
* | Fix typostypo | Victor Uriarte | 2017-11-29 | 1 | -1/+1 |
| | |||||
* | Fix unclosed file warnings discovered during tests | Jon Dufresne | 2017-10-28 | 1 | -3/+4 |
| | | | | | | | | Appear as: ResourceWarning: unclosed file ... Always explicitly close files or detach file wrappers. | ||||
* | Close files during tests. | Andi Albrecht | 2017-09-24 | 1 | -4/+5 |
| | |||||
* | Add another CLI encoding test | Victor Uriarte | 2017-01-22 | 1 | -0/+8 |
| | | | | This one I couldn't get to pass on my attempt | ||||
* | CLI: Add --encoding option | Tao Wang | 2017-01-12 | 1 | -0/+60 |
| | | | | | | | | * Add `--encoding` option with default utf-8 * Make sure input and output are in same encoding * Add test cases Signed-off-by: Tao Wang <twang2218@gmail.com> | ||||
* | Format cli.py and add cli-tests | Victor Uriarte | 2016-06-20 | 1 | -0/+37 |
| | |||||
* | Replace tests/utils with conftest.py | Victor Uriarte | 2016-06-20 | 1 | -7/+4 |
| | | | | http://stackoverflow.com/questions/34466027/what-is-the-use-of-conftest-py | ||||
* | Replace other UnitTest with Py.Test | Victor Uriarte | 2016-06-20 | 1 | -1/+0 |
| | |||||
* | Add test_cli.py | Victor Uriarte | 2016-06-15 | 1 | -0/+42 |
References: http://stackoverflow.com/questions/18160078/how-do-you-write-tests-for-the-argparse-portion-of-a-python-module http://dustinrcollins.com/testing-python-command-line-apps https://github.com/mdklatt/cookiecutter-python-app |