Skip to content

Commit

Permalink
Initial version of Flask-Language, with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rclement committed Mar 8, 2018
1 parent 97b152c commit baff16f
Show file tree
Hide file tree
Showing 17 changed files with 1,398 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
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
7 changes: 7 additions & 0 deletions HISTORY.rst
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
4 changes: 4 additions & 0 deletions MANIFEST.in
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
73 changes: 73 additions & 0 deletions Makefile
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"
29 changes: 29 additions & 0 deletions Pipfile
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"

0 comments on commit baff16f

Please sign in to comment.