-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280 from jayvdb/dogfood
Dogfood
- Loading branch information
Showing
8 changed files
with
50 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
flake8 . --exclude=.moban.d,docs --ignore=E203,E121,E123,E126,E226,E24,E704,W503,W504 | ||
flake8 --max-line-length=88 --exclude=.moban.d,docs --ignore=W503,W504 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,22 @@ | |
VERSION = "0.4.5" | ||
EMAIL = "[email protected]" | ||
LICENSE = "MIT" | ||
ENTRY_POINTS = {"console_scripts": ["moban = moban.main:main"]} | ||
DESCRIPTION = "Yet another jinja2 cli command for static text generation" | ||
ENTRY_POINTS = { | ||
"console_scripts": [ | ||
"moban = moban.main:main" | ||
], | ||
} | ||
DESCRIPTION = ( | ||
"Yet another jinja2 cli command for static text generation" | ||
) | ||
URL = "https://github.com/moremoban/moban" | ||
DOWNLOAD_URL = "%s/archive/0.4.5.tar.gz" % URL | ||
FILES = ["README.rst", "CONTRIBUTORS.rst", "CHANGELOG.rst"] | ||
KEYWORDS = ["python", "jinja2", "moban"] | ||
KEYWORDS = [ | ||
"python", | ||
"jinja2", | ||
"moban", | ||
] | ||
|
||
CLASSIFIERS = [ | ||
"Topic :: Software Development :: Libraries", | ||
|
@@ -49,8 +59,11 @@ | |
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
|
||
"Programming Language :: Python :: 3.7", | ||
|
||
"Programming Language :: Python :: 3.8", | ||
|
||
] | ||
|
||
INSTALL_REQUIRES = [ | ||
|
@@ -66,19 +79,16 @@ | |
|
||
|
||
PACKAGES = find_packages(exclude=["ez_setup", "examples", "tests"]) | ||
EXTRAS_REQUIRE = {} | ||
EXTRAS_REQUIRE = { | ||
} | ||
# You do not need to read beyond this line | ||
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format( | ||
sys.executable | ||
) | ||
GS_COMMAND = "gs moban v0.4.5 " + "Find 0.4.5 in changelog for more details" | ||
NO_GS_MESSAGE = ( | ||
"Automatic github release is disabled. " | ||
+ "Please install gease to enable it." | ||
) | ||
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable) | ||
GS_COMMAND = ("gs moban v0.4.5 " + | ||
"Find 0.4.5 in changelog for more details") | ||
NO_GS_MESSAGE = ("Automatic github release is disabled. " + | ||
"Please install gease to enable it.") | ||
UPLOAD_FAILED_MSG = ( | ||
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND | ||
) | ||
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND) | ||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
||
|
@@ -121,7 +131,9 @@ def run(self): | |
sys.exit() | ||
|
||
|
||
SETUP_COMMANDS.update({"publish": PublishCommand}) | ||
SETUP_COMMANDS.update({ | ||
"publish": PublishCommand | ||
}) | ||
|
||
|
||
def has_gease(): | ||
|
@@ -132,7 +144,6 @@ def has_gease(): | |
""" | ||
try: | ||
import gease # noqa | ||
|
||
return True | ||
except ImportError: | ||
return False | ||
|
@@ -201,5 +212,5 @@ def filter_out_test_code(file_handle): | |
zip_safe=False, | ||
entry_points=ENTRY_POINTS, | ||
classifiers=CLASSIFIERS, | ||
cmdclass=SETUP_COMMANDS, | ||
cmdclass=SETUP_COMMANDS | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
pip freeze | ||
|
||
nosetests --with-coverage --cover-package=moban --cover-package=tests && flake8 . --exclude=docs,.moban.d --ignore=E203,E121,E123,E126,E226,E24,E704,W503,W504 | ||
nosetests --with-coverage --cover-package=moban --cover-package=tests || goto :error | ||
|
||
flake8 --max-line-length=88 --exclude=docs,.moban.d --ignore=W503,W504 || goto :error | ||
|
||
:error | ||
echo Failed with error #%errorlevel%. | ||
exit /b %errorlevel% |