Skip to content

Commit bf5f15e

Browse files
committed
fix: Makefile install target
1 parent 4738b00 commit bf5f15e

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## v1.7.1 (2022-02-10)
4+
5+
* Update Makefile install target to not symlink to the home directory
6+
* Update Black to use the `preview` flag
7+
* Bump dev dependencies
8+
39
## v1.7.0 (2021-11-29)
410

511
* Adds `mypy` and type hinting via `py.typed`

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PYTHON_BINARY := python3
2-
VIRTUAL_BIN := venv/bin
2+
VIRTUAL_ENV := venv
3+
VIRTUAL_BIN := $(VIRTUAL_ENV)/bin
34
PROJECT_NAME := project_name
45
TEST_DIR := test
56

@@ -17,7 +18,7 @@ coverage:
1718

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

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

4646
## isort - Sorts imports throughout the project

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.black]
2-
experimental-string-processing = true
2+
preview = true
33
line-length = 120
44
skip-string-normalization = true
55

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
REQUIREMENTS = [
77
# Add your list of production dependencies here, eg:
8-
# 'requests == 1.*',
8+
# 'requests == 2.*',
99
]
1010

1111
DEV_REQUIREMENTS = [
@@ -14,8 +14,8 @@
1414
'flake8',
1515
'isort',
1616
'mypy',
17-
'pytest == 6.*',
18-
'pytest-cov == 2.*',
17+
'pytest == 7.*',
18+
'pytest-cov == 3.*',
1919
]
2020

2121
setuptools.setup(

0 commit comments

Comments
 (0)