Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ dist

# Eclipse
.settings

# Symlinks placed in the project root
.coveragerc
.noserc
.project
.pydevproject
.pylintrc
Foobar.sublime-project
24 changes: 22 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ ENV := env
ifneq ($(findstring win32, $(PLATFORM)), )
BIN := $(ENV)/Scripts
OPEN := cmd /c start
LINK := mklink
else
BIN := $(ENV)/bin
LINK := ln -s
ifneq ($(findstring cygwin, $(PLATFORM)), )
OPEN := cygstart
else
Expand All @@ -60,6 +62,14 @@ DEPENDS_CI := $(ENV)/.depends-ci
DEPENDS_DEV := $(ENV)/.depends-dev
ALL := $(ENV)/.all

CONFIG_FILES = .coveragerc \
.noserc \
.project \
.pydevproject \
.pylintrc \
Foobar.sublime-project
CONFIG_DIR = .config

# Main Targets ###############################################################

.PHONY: all
Expand All @@ -73,6 +83,15 @@ ci: pep8 pep257 test tests

# Development Installation ###################################################

.PHONY: setup
setup: $(CONFIG_FILES)
$(CONFIG_FILES):
@for f in $(CONFIG_FILES); \
do \
echo $(LINK) $(CONFIG_DIR)/$$f $$f; \
$(LINK) $(CONFIG_DIR)/$$f $$f; \
done

.PHONY: env
env: .virtualenv $(EGG_INFO)
$(EGG_INFO): Makefile setup.py requirements.txt
Expand All @@ -88,13 +107,13 @@ $(PIP):
depends: .depends-ci .depends-dev

.PHONY: .depends-ci
.depends-ci: env Makefile $(DEPENDS_CI)
.depends-ci: setup env Makefile $(DEPENDS_CI)
$(DEPENDS_CI): Makefile
$(PIP) install --upgrade pep8 pep257 $(TEST_RUNNER) coverage
touch $(DEPENDS_CI) # flag to indicate dependencies are installed

.PHONY: .depends-dev
.depends-dev: env Makefile $(DEPENDS_DEV)
.depends-dev: setup env Makefile $(DEPENDS_DEV)
$(DEPENDS_DEV): Makefile
$(PIP) install --upgrade docutils pdoc pylint wheel
touch $(DEPENDS_DEV) # flag to indicate dependencies are installed
Expand Down Expand Up @@ -182,6 +201,7 @@ tests-pytest: .depends-ci
.PHONY: clean
clean: .clean-dist .clean-test .clean-doc .clean-build
rm -rf $(ALL)
rm -f $(CONFIG_FILES)

.PHONY: clean-all
clean-all: clean .clean-env
Expand Down