@@ -26,20 +26,20 @@ install: ## Install the project in dev mode.
2626
2727.PHONY : fmt
2828fmt : # # Format code using black & isort.
29- $(ENV_PREFIX ) isort project_name /
30- $(ENV_PREFIX ) black -l 79 project_name /
29+ $(ENV_PREFIX ) isort sparc_spy /
30+ $(ENV_PREFIX ) black -l 79 sparc_spy /
3131 $(ENV_PREFIX ) black -l 79 tests/
3232
3333.PHONY : lint
3434lint : # # Run pep8, black, mypy linters.
35- $(ENV_PREFIX ) flake8 project_name /
36- $(ENV_PREFIX ) black -l 79 --check project_name /
35+ $(ENV_PREFIX ) flake8 sparc_spy /
36+ $(ENV_PREFIX ) black -l 79 --check sparc_spy /
3737 $(ENV_PREFIX ) black -l 79 --check tests/
38- $(ENV_PREFIX ) mypy --ignore-missing-imports project_name /
38+ $(ENV_PREFIX ) mypy --ignore-missing-imports sparc_spy /
3939
4040.PHONY : test
4141test : lint # # Run tests and generate coverage report.
42- $(ENV_PREFIX ) pytest -v --cov-config .coveragerc --cov=project_name -l --tb=short --maxfail=1 tests/
42+ $(ENV_PREFIX ) pytest -v --cov-config .coveragerc --cov=sparc_spy -l --tb=short --maxfail=1 tests/
4343 $(ENV_PREFIX ) coverage xml
4444 $(ENV_PREFIX ) coverage html
4545
@@ -78,9 +78,9 @@ virtualenv: ## Create a virtual environment.
7878release : # # Create a new tag for release.
7979 @echo " WARNING: This operation will create s version tag and push to github"
8080 @read -p " Version? (provide the next x.y.z semver) : " TAG
81- @echo " $$ {TAG}" > project_name /VERSION
81+ @echo " $$ {TAG}" > sparc_spy /VERSION
8282 @$(ENV_PREFIX ) gitchangelog > HISTORY.md
83- @git add project_name /VERSION HISTORY.md
83+ @git add sparc_spy /VERSION HISTORY.md
8484 @git commit -m " release: version $$ {TAG} 🚀"
8585 @echo " creating git tag : $$ {TAG}"
8686 @git tag $$ {TAG}
@@ -101,20 +101,23 @@ switch-to-poetry: ## Switch to poetry package manager.
101101 @poetry init --no-interaction --name=a_flask_test --author=rochacbruno
102102 @echo " " >> pyproject.toml
103103 @echo " [tool.poetry.scripts]" >> pyproject.toml
104- @echo " project_name = 'project_name .__main__:main'" >> pyproject.toml
104+ @echo " sparc_spy = 'sparc_spy .__main__:main'" >> pyproject.toml
105105 @cat requirements.txt | while read in ; do poetry add --no-interaction " $$ {in}" ; done
106106 @cat requirements-test.txt | while read in ; do poetry add --no-interaction " $$ {in}" --dev; done
107107 @poetry install --no-interaction
108108 @mkdir -p .github/backup
109109 @mv requirements* .github/backup
110110 @mv setup.py .github/backup
111111 @echo " You have switched to https://python-poetry.org/ package manager."
112- @echo " Please run 'poetry shell' or 'poetry run project_name '"
112+ @echo " Please run 'poetry shell' or 'poetry run sparc_spy '"
113113
114114.PHONY : init
115115init : # # Initialize the project based on an application template.
116116 @./.github/init.sh
117117
118+ .PHONY : build
119+ build :
120+ @python3 -m build
118121
119122# This project has been generated from rochacbruno/python-project-template
120123# __author__ = 'rochacbruno'
0 commit comments