71 Commits

Author SHA1 Message Date
Matthew Peveler b1b78c9a35 v0.4.0 release v0.4.0 2020-08-26 17:33:14 -04:00
Matthew Peveler 50d6cc85f8 Add hasattr check for isatty on sys.stdout (#27)
* Add hasattr check for isatty on sys.stdout

* fix flake8 error

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-08-26 17:24:18 -04:00
Matthew Peveler 439c7fa380 update readme badges 2020-06-06 22:05:15 -04:00
Matthew Peveler 4b9b227a4b fix publish command missing wheel
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
v0.3.1
2020-06-06 22:02:03 -04:00
Matthew Peveler 4919ab376a 0.3.1 release
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-06 21:33:55 -04:00
Matthew Peveler ba2f4fadc2 add publish workflow
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-06 21:33:46 -04:00
Matthew Peveler 78b2a22ca2 add github actions workflow
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-06 21:20:59 -04:00
Matthew Peveler 51fd0a51c3 fix typo in README
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-05 02:39:30 -04:00
Matthew Peveler fb04b80e3c Handle passing non-string types into crayons
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-05 02:38:57 -04:00
Matthew Peveler 1495890f8c chore: ignore build artifacts 2019-10-09 15:53:25 -03:00
Matthew Peveler 245c7fe486 build: add a setup.cfg file 2019-10-09 15:49:27 -03:00
Matthew Peveler 3a218b9a15 fix: add reset_replace_colors to __all__ v0.3.0 2019-10-09 15:38:35 -03:00
Matthew Peveler 6b6d9ca901 v0.3.0 release 2019-10-09 15:32:51 -03:00
Matthew Peveler ab55fad129 build: remove Windows from travis testing as no colors ever 2019-10-09 15:32:02 -03:00
Matthew Peveler 0963263292 fix: remove second COLORS assignment 2019-10-09 15:18:30 -03:00
Matthew Peveler 8a48f803d0 build: add testing on windows in Travis 2019-10-09 14:57:38 -03:00
Matthew Peveler a8ea3f8724 build: fix flake8 errors in test script 2019-10-09 13:20:19 -03:00
Matthew Peveler 4226b3605e build: expand test script to run all functions 2019-10-09 13:08:18 -03:00
Matthew Peveler eb50b1ab9f feat: add function to reset replace codes 2019-10-09 13:07:58 -03:00
Matthew Peveler a7ebd892aa feat: change clean to strip ansi codes instead of all text? 2019-10-09 13:07:36 -03:00
Matthew Peveler 8133251c2d refactor: move colors out of __all__ into own tuple 2019-10-09 12:46:26 -03:00
Frost Ming 0bb9d45880 Allow customize color replacement. (#24)
* Allow customize color replacement.

* Fix wrong names
2019-10-09 07:40:52 -08:00
Matthew Peveler e8774526bd properly ignore pyc files 2019-09-09 06:45:24 -03:00
Matthew Peveler 800c50aeab Add random() to select a color at random (#14) 2019-09-09 06:45:05 -03:00
Matthew Peveler 469441e4d8 Update readme, remove old badges, make example python3 compatible 2019-09-09 06:30:36 -03:00
Matthew Peveler 5c139086cb Update setup.py for classifiers and maintainer 2019-09-09 06:29:15 -03:00
Matthew Peveler d90cbc158c Update license to mark its MIT, add my name 2019-09-09 06:26:31 -03:00
Matthew Peveler 7db0430d7b add missing newline at end of .flake8 2019-09-09 06:22:57 -03:00
Matthew Peveler bf624e9b73 Fix the failing travis build 2019-09-09 06:21:34 -03:00
Matthew Peveler b521721f0d Fix the list of supported python versions 2019-09-09 06:15:13 -03:00
Matthew Peveler fbf112113c add flake8 linting for crayons 2019-09-09 06:07:18 -03:00
Matthew Peveler 015652a213 Add .travis.yml build for crayons 2019-09-09 05:57:36 -03:00
Matthew Peveler 13677643a8 add a simple gitignore 2019-09-09 05:56:48 -03:00
Timo Furrer 49bf63188f release: 0.2.0 v0.2.0 2019-02-21 13:35:58 +00:00
kennethreitz 7723199f5c Merge pull request #6 from nkantar/enable
Add crayons.enable()
2019-02-21 06:35:03 -05:00
kennethreitz 7638741ab6 Merge branch 'master' into enable 2019-02-21 06:34:57 -05:00
kennethreitz b7772888ce Merge pull request #12 from the-pont/master
Add support for Windows
2019-02-21 06:34:13 -05:00
kennethreitz 7608f4def5 Merge pull request #17 from ghost/master
color funcs generated from __all__ var
2019-02-21 06:32:57 -05:00
kennethreitz 9e648743d1 Merge pull request #20 from duck2/master
Disable colors on TERM=dumb
2019-02-21 06:32:44 -05:00
Timo Furrer bc8369fc27 Merge pull request #21 from BoboTiG/fix-invalid-seq-warnings
Fix DeprecationWarning: invalid escape sequence
2019-02-14 16:40:30 +01:00
Mickaël Schoentgen eb1ce43aa3 Fix DeprecationWarning: invalid escape sequence
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-05 23:07:19 +01:00
Duck Deux 6c31a387a9 use os.getenv 2018-10-31 23:30:46 +03:00
duck2 dcbabd9de6 Disable colors on TERM=dumb 2018-09-17 12:28:48 +03:00
l0x6c 37b53411d9 color funcs generated from __all__ var 2018-09-11 03:48:51 +03:00
kennethreitz 613020e554 Merge pull request #5 from nkantar/patch-1
Fix typo in README.rst
2018-09-10 04:41:49 -04:00
kennethreitz d954d53de7 Merge pull request #15 from grahamu/normal
Backport improvements/fixes from pipenv
2018-09-10 04:41:35 -04:00
Graham Ullrich 84afbe9334 Add "normal" function
Backport improvements/fixes from pipenv.
2018-03-10 13:49:26 -07:00
Jason Pierrepont 05c8a47c4c Add support for Windows 2017-10-04 22:19:48 -04:00
Nikola Kantar 383bef2ef4 Add crayons.enable()
crayons.enable() does pretty much the opposite of crayons.disable() - it
sets DISABLE_COLOR to False.
2017-01-26 20:49:46 -08:00
Nik Kantar 87048963f0 Fix typo in README.rst 2017-01-26 20:05:07 -08:00