Skip to content

Commit

Permalink
fix: Makefile install target
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Feb 11, 2022
1 parent 4738b00 commit bf5f15e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## v1.7.1 (2022-02-10)

* Update Makefile install target to not symlink to the home directory
* Update Black to use the `preview` flag
* Bump dev dependencies

## v1.7.0 (2021-11-29)

* Adds `mypy` and type hinting via `py.typed`
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PYTHON_BINARY := python3
VIRTUAL_BIN := venv/bin
VIRTUAL_ENV := venv
VIRTUAL_BIN := $(VIRTUAL_ENV)/bin
PROJECT_NAME := project_name
TEST_DIR := test

Expand All @@ -17,7 +18,7 @@ coverage:

## clean - Remove the virtual environment and clear out .pyc files
clean:
rm -rf ~/.venv/$(PROJECT_NAME)/ venv
rm -rf $(VIRTUAL_ENV)
find . -name '*.pyc' -delete
rm -rf dist
rm -rf build
Expand All @@ -39,8 +40,7 @@ format-check: black-check isort-check lint mypy

## install - Install the project locally
install:
$(PYTHON_BINARY) -m venv ~/.venv/$(PROJECT_NAME)/
ln -snf ~/.venv/$(PROJECT_NAME)/ venv
$(PYTHON_BINARY) -m venv $(VIRTUAL_ENV)
$(VIRTUAL_BIN)/pip install -e ."[dev]"

## isort - Sorts imports throughout the project
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.black]
experimental-string-processing = true
preview = true
line-length = 120
skip-string-normalization = true

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

REQUIREMENTS = [
# Add your list of production dependencies here, eg:
# 'requests == 1.*',
# 'requests == 2.*',
]

DEV_REQUIREMENTS = [
Expand All @@ -14,8 +14,8 @@
'flake8',
'isort',
'mypy',
'pytest == 6.*',
'pytest-cov == 2.*',
'pytest == 7.*',
'pytest-cov == 3.*',
]

setuptools.setup(
Expand Down

0 comments on commit bf5f15e

Please sign in to comment.