Skip to content

Commit

Permalink
Merge 7841f43 into 1375ba8
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed May 16, 2018
2 parents 1375ba8 + 7841f43 commit 2c05779
Show file tree
Hide file tree
Showing 10 changed files with 845 additions and 811 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install:
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%;%PATH%
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%\Scripts;%PATH%
# Install system dependencies
- pip install pipenv
- pip install poetry
- make doctor
# Install project dependencies
- make install
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
- RANDOM_SEED=0

before_install:
- pip install pipenv
- pip install poetry
- make doctor

install:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision History

## 1.0.1 (unreleased)

- Broadened dependency on `six` to `1.x`.

## 1.0 (2018/03/15)

- BREAKING: Renamed PyPI package to `coverage-space`.
Expand Down
51 changes: 26 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ CONFIG := $(wildcard *.py)
MODULES := $(wildcard $(PACKAGE)/*.py)

# Virtual environment paths
export PIPENV_VENV_IN_PROJECT=true
export PIPENV_IGNORE_VIRTUALENVS=true
VENV := .venv

# MAIN TASKS ##################################################################

SNIFFER := pipenv run sniffer
SNIFFER := poetry run sniffer

.PHONY: all
all: install
Expand All @@ -25,12 +23,9 @@ ci: check test ## Run all tasks that determine CI status

.PHONY: watch
watch: install .clean-test ## Continuously run all CI tasks when files chanage
poetry run pip install MacFSEvents pync
$(SNIFFER)

.PHONY: run ## Start the program
run: install
pipenv run python $(PACKAGE)/__main__.py

# SYSTEM DEPENDENCIES #########################################################

.PHONY: doctor
Expand All @@ -39,21 +34,27 @@ doctor: ## Confirm system dependencies are available

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

DEPENDENCIES := $(VENV)/.pipenv-$(shell bin/checksum Pipfile* setup.py)
DEPENDENCIES := $(VENV)/.poetry-$(shell bin/checksum pyproject.*)

.PHONY: install
install: $(DEPENDENCIES)

$(DEPENDENCIES):
pipenv run python setup.py develop
pipenv install --dev
$(DEPENDENCIES): .venv pyproject.lock
poetry install
poetry run pip install -e .
@ touch $@

.venv:
python -m venv $(VENV)

pyproject.lock: pyproject.toml
poetry lock

# CHECKS ######################################################################

PYLINT := pipenv run pylint
PYCODESTYLE := pipenv run pycodestyle
PYDOCSTYLE := pipenv run pydocstyle
PYLINT := poetry run pylint
PYCODESTYLE := poetry run pycodestyle
PYDOCSTYLE := poetry run pydocstyle

.PHONY: check
check: pylint pycodestyle pydocstyle ## Run linters and static analysis
Expand All @@ -72,9 +73,9 @@ pydocstyle: install

# TESTS #######################################################################

PYTEST := pipenv run py.test
COVERAGE := pipenv run coverage
COVERAGE_SPACE := pipenv run coverage.space
PYTEST := poetry run py.test
COVERAGE := poetry run coverage
COVERAGE_SPACE := poetry run coverage.space

RANDOM_SEED ?= $(shell date +%s)
FAILURES := .cache/v/cache/lastfailed
Expand Down Expand Up @@ -120,8 +121,8 @@ read-coverage:

# DOCUMENTATION ###############################################################

PYREVERSE := pipenv run pyreverse
MKDOCS := pipenv run mkdocs
PYREVERSE := poetry run pyreverse
MKDOCS := poetry run mkdocs

MKDOCS_INDEX := site/index.html

Expand Down Expand Up @@ -151,8 +152,8 @@ mkdocs-live: mkdocs

# BUILD #######################################################################

PYINSTALLER := pipenv run pyinstaller
PYINSTALLER_MAKESPEC := pipenv run pyi-makespec
PYINSTALLER := poetry run pyinstaller
PYINSTALLER_MAKESPEC := poetry run pyi-makespec

DIST_FILES := dist/*.tar.gz dist/*.whl
EXE_FILES := dist/$(PROJECT).*
Expand All @@ -164,9 +165,9 @@ build: dist
dist: install $(DIST_FILES)
$(DIST_FILES): $(MODULES) README.rst CHANGELOG.rst
rm -f $(DIST_FILES)
pipenv run python setup.py check --restructuredtext --strict --metadata
pipenv run python setup.py sdist
pipenv run python setup.py bdist_wheel
poetry run python setup.py check --restructuredtext --strict --metadata
poetry run python setup.py sdist
poetry run python setup.py bdist_wheel

%.rst: %.md
pandoc -f markdown_github -t rst -o $@ $<
Expand All @@ -182,7 +183,7 @@ $(PROJECT).spec:

# RELEASE #####################################################################

TWINE := pipenv run twine
TWINE := poetry run twine

.PHONY: upload
upload: dist ## Upload the current version to PyPI
Expand Down
46 changes: 0 additions & 46 deletions Pipfile

This file was deleted.

0 comments on commit 2c05779

Please sign in to comment.