-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update and move packages to the "dev" section - use Python 3.7 for pipenv - install tox-pipenv plugin to try and fix Tox (currently doesn't) - simplify tox.ini to try and fix Tox (didn't) - move ci makefile target to the circle config Currently Tox is broken (see tox-dev/tox-pipenv#61)
- Loading branch information
Showing
7 changed files
with
403 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,19 @@ | ||
.PHONY: docs test | ||
|
||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Darwin) | ||
BREWPATH = $(shell brew --prefix) | ||
PYICU_LD = "-L${BREWPATH}/opt/icu4c/lib -L${BREWPATH}/opt/[email protected]/lib" | ||
PYICU_CPP = "-I${BREWPATH}/opt/icu4c/include -I${BREWPATH}/opt/[email protected]/include" | ||
ICU_VER = 58.2 | ||
else | ||
PYICU_LD = | ||
PYICU_CPP = | ||
ICU_VER = | ||
endif | ||
.PHONY: dev info clean docs lint test | ||
|
||
help: | ||
@echo " env install all production dependencies" | ||
@echo " dev install all dev and production dependencies (virtualenv is assumed)" | ||
@echo " clean remove unwanted stuff" | ||
@echo " lint check style with flake8" | ||
@echo " test run tests" | ||
@echo " build generate source and wheel dist files" | ||
@echo " upload generate source and wheel dist files and upload them" | ||
|
||
env: | ||
pipenv install | ||
|
||
dev: env | ||
@echo "on OS X use homebrew to install icu4c" | ||
LDFLAGS=${PYICU_LD} CPPFLAGS=${PYICU_CPP} ICU_VERSION=${ICU_VER} \ | ||
pipenv --python 2.7 | ||
pipenv --python 3.7 | ||
dev: | ||
pipenv install --dev --python 3.7 | ||
|
||
info: | ||
@python --version | ||
@pipenv --version | ||
@pipenv run python --version | ||
|
||
clean: | ||
rm -fr build | ||
|
@@ -47,7 +28,7 @@ docs: | |
lint: | ||
pipenv run flake8 parsedatetime > violations.flake8.txt | ||
|
||
test: lint | ||
test: | ||
pipenv run python setup.py test | ||
|
||
tox: clean | ||
|
@@ -58,9 +39,6 @@ coverage: clean | |
@pipenv run coverage html | ||
@pipenv run coverage report | ||
|
||
ci: tox coverage | ||
CODECOV_TOKEN=`cat .codecov-token` pipenv run codecov | ||
|
||
build: clean | ||
pipenv run python setup.py check | ||
pipenv run python setup.py sdist | ||
|
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
Oops, something went wrong.