Skip to content

Commit

Permalink
remove setup.py and use build
Browse files Browse the repository at this point in the history
  • Loading branch information
thrau committed Mar 31, 2024
1 parent 098adee commit f42c8f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ VENV_RUN = . $(VENV_ACTIVATE)

venv: $(VENV_ACTIVATE)

$(VENV_ACTIVATE): setup.py setup.cfg pyproject.toml
$(VENV_ACTIVATE): setup.cfg pyproject.toml
test -d .venv || $(VENV_BIN) .venv
$(VENV_RUN); pip install --upgrade pip setuptools wheel
$(VENV_RUN); pip install --upgrade pip setuptools wheel build
$(VENV_RUN); pip install -e .[test]
touch $(VENV_DIR)/bin/activate

Expand All @@ -34,7 +34,7 @@ coveralls: venv
$(VENV_RUN); coveralls

dist: venv
$(VENV_RUN); python setup.py sdist bdist_wheel
$(VENV_RUN); python -m build

deploy: clean-dist venv test dist
$(VENV_RUN); pip install --upgrade twine; twine upload dist/*
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12

[options]
zip_safe = False
Expand Down
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit f42c8f4

Please sign in to comment.