-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,464 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: python | ||
python: | ||
- "3.6" | ||
install: | ||
- "pip install tox" | ||
- "pip install coveralls" | ||
script: tox | ||
after_success: coveralls |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release History | ||
=============== | ||
|
||
0.1.0 (2018-03-07) | ||
------------------ | ||
|
||
- Initial release of Flask-Language |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include __about__.py README.rst HISTORY.rst LICENSE | ||
include docs/conf.py docs/index.rst docs/make.bat docs/Makefile | ||
recursive-include tests *.html *.py | ||
global-exclude *.pyc |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
PROJECT = flask_language | ||
DOCS_DIR = docs | ||
TEST_DIR = tests | ||
|
||
.PHONY: init develop lock dist install docs-generate docs test test-all lint readme-rst pypi-register pypi-upload pypi-test-register pypi-test-upload clean help | ||
|
||
init: | ||
pipenv install --dev | ||
|
||
develop: | ||
pipenv install '-e .' --dev | ||
|
||
lock: | ||
pipenv lock | ||
pipenv lock -r > requirements.txt | ||
pipenv lock -r -d > requirements-dev.txt | ||
|
||
dist: | ||
python setup.py sdist bdist_wheel | ||
|
||
install: | ||
python setup.py install | ||
|
||
docs-generate: | ||
@sphinx-quickstart | ||
|
||
docs: | ||
@make -C docs html | ||
|
||
test: | ||
pipenv run py.test -v --cov=$(PROJECT) --cov-report term-missing $(TEST_DIR) | ||
|
||
test-all: | ||
python setup.py test | ||
|
||
lint: | ||
pipenv run flake8 --ignore=F401 flask_language.py __about__.py tests | ||
|
||
readme-rst: | ||
pandoc --from=markdown --to=rst README.md -o README.rst | ||
|
||
pypi-register: | ||
python setup.py register -r pypi | ||
|
||
pypi-upload: | ||
python setup.py sdist upload -r pypi | ||
|
||
pypi-test-register: | ||
python setup.py register -r pypitest | ||
|
||
pypi-test-upload: | ||
python setup.py sdist upload -r pypitest | ||
|
||
clean: | ||
@rm -rf build dist $(DOCS_DIR)/_build $(DOCS_DIR)/_static $(DOCS_DIR)/_templates | ||
|
||
help: | ||
@echo " init : init development environment" | ||
@echo " develop : add package as an editable dependency for local development" | ||
@echo " lock : lock the dependencies and generate requirements.txt and requirements-dev.txt" | ||
@echo " dist : create source distribution archive" | ||
@echo " install : install package" | ||
@echo " docs-generate : generate documentation from scratch (no existing index)" | ||
@echo " docs : create documentation" | ||
@echo " test : run unit tests" | ||
@echo " test-all : run the whole testing suite" | ||
@echo " lint : run the Flake8 lint checker" | ||
@echo " readme-rst : generate README.rst based on README.md" | ||
@echo " pypi-register : register current package version on PyPI (live server)" | ||
@echo " pypi-upload : upload current package version on PyPI (live server)" | ||
@echo " pypi-test-register : register current package version on PyPI (test server)" | ||
@echo " pypi-test-upload : upload current package version on PyPI (test server)" | ||
@echo " clean : remove all build files" |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[[source]] | ||
|
||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
|
||
[packages] | ||
|
||
flask = "*" | ||
|
||
|
||
[dev-packages] | ||
|
||
coverage = "*" | ||
docutils = "*" | ||
"flake8" = "*" | ||
flask-sphinx-themes = "*" | ||
funcsigs = "*" | ||
pytest = "*" | ||
pytest-cov = "*" | ||
sphinx = "*" | ||
tox = "*" | ||
"e1839a8" = {path = ".", editable = true} | ||
|
||
|
||
[requires] | ||
|
||
python_version = "3.6" |
Oops, something went wrong.