8000 Release v1.0 by jacebrowning · Pull Request #83 · flask-api/flask-api · GitHub
[go: up one dir, main page]

Skip to content

Release v1.0 #83

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

Merged
merged 13 commits into from
Aug 29, 2017
Merged
Prev Previous commit
Next Next commit
Add initial support for pipenv
  • Loading branch information
jacebrowning committed Aug 21, 2017
commit f2880950b5013f3cbede4d22fe0c7557d8bfc2d2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line n 10000 umber Diff line change
@@ -1,4 +1,5 @@
.env/
.venv/
env/
dist/
htmlcov/
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ env:
# - FLASK_VERSION=0.10.2
- FLASK_VERSION=0.11.0

before_install:
- pip install pipenv

install:
- pip install -r requirements.txt
- pipenv install --dev --system
- pip install flask==${FLASK_VERSION} # override version for the build matrix
- pip install coverage==3.6
- pip install python-coveralls==2.4.0
Expand Down
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.PHONY: all
all: install

# PROJECT DEPENDENCIES #########################################################

export PIPENV_SHELL_COMPAT=true
export PIPENV_VENV_IN_PROJECT=true

ENV := .venv
DEPENDENCIES := $(ENV)/.installed
PIP := $(ENV)/bin/pip

.PHONY: install
install: $(DEPENDENCIES)

$(DEPENDENCIES): $(PIP) Pipfile*
pipenv install --dev --ignore-hashes
@ touch $@

$(PIP):
pipenv --python=python3.6

# VALIDATION TARGETS ###########################################################

.PHONY: test
test: install ## Run tests and linters
pipenv run nosetests flask_api
pipenv run flake8 flask_api --ignore=E128,E501 --exclude=__init__.py

# CLEANUP ######################################################################

.PHONY: clean
clean:
rm -rf $(ENV)
13 changes: 13 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true

[packages]
Flask = "~=0.10.1"

[dev-packages]
nose = "*"
coverage = "~=3.7.1"
flake8 = "~=2.1"
mkdocs = "~=0.12"
tox = "~=2.0"
114 changes: 114 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0