diff --git a/{{cookiecutter.project_slug}}/Makefile b/{{cookiecutter.project_slug}}/Makefile index af8f8e7..687ff6b 100644 --- a/{{cookiecutter.project_slug}}/Makefile +++ b/{{cookiecutter.project_slug}}/Makefile @@ -50,8 +50,7 @@ run: $(VENV)/pyvenv.cfg {%- endif %} $(VENV)/pyvenv.cfg: pyproject.toml - # Create our Python 3 virtual environment - python3 -m venv env + python -m venv env $(VENV_BIN)/python -m pip install -e .[$(INSTALL_EXTRA)] .PHONY: lint @@ -90,8 +89,7 @@ doc: .PHONY: package package: $(VENV)/pyvenv.cfg - . $(VENV_BIN)/activate && \ - python3 -m build + $(VENV_BIN)/python -m build .PHONY: edit edit: diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 1bcb6e6..bed568d 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -1,7 +1,3 @@ -[build-system] -requires = ["flit_core >=3.5,<4"] -build-backend = "flit_core.buildapi" - [project] name = "{{ cookiecutter.project_slug }}" dynamic = ["version"] @@ -43,7 +39,7 @@ lint = [ "interrogate", {%- endif %} ] -dev = ["{{ cookiecutter.project_slug }}[doc,test,lint]", "twine", "wheel", "build"] +dev = ["{{ cookiecutter.project_slug }}[doc,test,lint]", "twine", "build"] {% if cookiecutter.entry_point -%} [project.scripts] @@ -56,9 +52,6 @@ Documentation = "https://{{ cookiecutter.github_username }}.github.io/{{ cookiec Issues = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}/issues" Source = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}" -[tool.flit.module] -name = "{{ cookiecutter.__project_import }}" - [tool.coverage.run] # don't attempt code coverage for the CLI entrypoints omit = ["{{ cookiecutter.__project_src_path }}/_cli.py"]