Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messletters2 #109

Merged
merged 34 commits into from
Feb 6, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ad13762
font : scammer font added #101
sepandhaghighi Feb 4, 2020
a930470
font : strikethrough font added #101
sepandhaghighi Feb 4, 2020
8424ef5
font : drako font added #101
sepandhaghighi Feb 4, 2020
ded84c2
font : celtic font added #101
sepandhaghighi Feb 4, 2020
01aded9
font : fasion font added #101
sepandhaghighi Feb 4, 2020
6f7a743
font : curly font added #101
sepandhaghighi Feb 4, 2020
1015749
font : russian font added #101
sepandhaghighi Feb 4, 2020
3db23b1
font : messletters font added #101
sepandhaghighi Feb 4, 2020
1d5a353
font : coptic1 font added #101
sepandhaghighi Feb 4, 2020
83d2de7
font : swirly font added #101
sepandhaghighi Feb 4, 2020
f5e7941
font : dotted font added #101
sepandhaghighi Feb 4, 2020
9a75852
font : coptic2 font added #101
sepandhaghighi Feb 4, 2020
1a9a84c
font : parenthesized font added #101
sepandhaghighi Feb 4, 2020
5de10bc
font : strange font added #101
sepandhaghighi Feb 4, 2020
961e65c
font : fancy108 font added #101
sepandhaghighi Feb 4, 2020
521fa91
font : wiggly font added #101
sepandhaghighi Feb 4, 2020
3b5c6fc
font : hazy font added #101
sepandhaghighi Feb 4, 2020
ef9663e
font : hyves font added #101
sepandhaghighi Feb 4, 2020
8955eac
font : awcute font added #101
sepandhaghighi Feb 4, 2020
081d2b4
font : slammer font added #101
sepandhaghighi Feb 4, 2020
b38ecb5
fix : tests updated #101
sepandhaghighi Feb 4, 2020
b9a734f
doc : font counters updated #101
sepandhaghighi Feb 4, 2020
a38a273
doc : CHANGELOG updated #101
sepandhaghighi Feb 4, 2020
c8927f5
fix : autopep8 fix #101
sepandhaghighi Feb 4, 2020
00be2a9
fix : coverage moved to extras_require
sepandhaghighi Feb 4, 2020
e5420e5
fix : minor bug in travis config fixed
sepandhaghighi Feb 4, 2020
98aefd6
fix : minor edit in __main__.py
sepandhaghighi Feb 4, 2020
9b28c52
del : requirements.txt removed
sepandhaghighi Feb 4, 2020
36ac0c5
fix : minor edit in appveyor config file
sepandhaghighi Feb 4, 2020
550503d
fix : minor edit in install.sh
sepandhaghighi Feb 4, 2020
f61e88d
fix : minor edit in test.sh
sepandhaghighi Feb 4, 2020
ad0b073
doc : CHANGELOG updated
sepandhaghighi Feb 4, 2020
83897f7
fix : minor edit in test.sh
sepandhaghighi Feb 4, 2020
5dbf31e
fix : minor edit in test.sh
sepandhaghighi Feb 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ then
PYTHON_COMMAND=python3
PIP_COMMAND=pip3
fi

$PIP_COMMAND install -r requirements.txt

$PYTHON_COMMAND setup.py install
$PYTHON_COMMAND -m art test
$PYTHON_COMMAND -m art test2
$PIP_COMMAND install -e .[Coverage]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this whole commit for?
Can you please explain the reason?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First I added this line to test art library in develop mode, but later removed it ;-)


if [ "$TRAVIS_OS_NAME" == "osx" ]
then
Expand Down
14 changes: 9 additions & 5 deletions art/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
import doctest
import os
import zipfile
COVERAGE_INSTALL = True
try:
import coverage
except ImportError:
print(PACKAGE_LOAD_WARNING)
COVERAGE_INSTALL = False


def select_test(test_name="TEST"):
Expand All @@ -21,9 +22,12 @@ def select_test(test_name="TEST"):
:return: None
"""
error_flag_2 = 0
if test_name == "TESTCOV" or test_name == "TESTCOV2":
cov = coverage.Coverage()
cov.start()
if COVERAGE_INSTALL:
if test_name == "TESTCOV" or test_name == "TESTCOV2":
cov = coverage.Coverage()
cov.start()
else:
print(PACKAGE_LOAD_WARNING)
error_flag_1 = doctest.testfile(
"test.py",
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
Expand All @@ -35,7 +39,7 @@ def select_test(test_name="TEST"):
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS | doctest.IGNORE_EXCEPTION_DETAIL,
verbose=False)[0]
error_flag = error_flag_1 + error_flag_2
if test_name == "TESTCOV" or test_name == "TESTCOV2":
if (test_name == "TESTCOV" or test_name == "TESTCOV2") and COVERAGE_INSTALL:
cov.stop()
cov.report()
cov.save()
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def read_description():
'Source': 'https://github.com/sepandhaghighi/art',
'Tracker': 'https://github.com/sepandhaghighi/art/issues',
},
install_requires=get_requires(),
install_requires=[],
extras_require={
"coverage": get_requires()
},
python_requires='>=2.7',
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down