Skip to content

Commit

Permalink
attempt to remove non-default backend (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored Aug 7, 2024
1 parent 9e3fe06 commit f462ebe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 2 additions & 4 deletions {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
9 changes: 1 addition & 8 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[build-system]
requires = ["flit_core >=3.5,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "{{ cookiecutter.project_slug }}"
dynamic = ["version"]
Expand Down Expand Up @@ -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]
Expand All @@ -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"]
Expand Down

0 comments on commit f462ebe

Please sign in to comment.