Skip to content

Commit

Permalink
Main Makefile compatible with new build system
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Jul 2, 2024
1 parent 2a28308 commit 64eef4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
24 changes: 0 additions & 24 deletions MANIFEST.in

This file was deleted.

15 changes: 5 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ export PRINT_HELP_PYSCRIPT
BROWSER := python -c "$$BROWSER_PYSCRIPT"

python = python
-include options.mk

# Main targets:

develop:
OPT="" $(python) setup.py build_ext --inplace $(build_opts)
OPT="" $(python) -m pip install --no-build-isolation -e .

help:
@$(python) -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
Expand All @@ -52,12 +50,10 @@ lint: ## check style with flake8
flake8 pixell tests

test: ## run tests quickly with the default Python
$(python) setup.py test $(build_opts)
pytest

coverage: ## check code coverage quickly with the default Python
coverage run --source pixell setup.py test
coverage report -m
coverage html
pytest --cov --cov-report=html
$(BROWSER) htmlcov/index.html

docs: ## generate Sphinx HTML documentation, including API docs
Expand All @@ -75,9 +71,8 @@ release: dist ## package and upload a release
twine upload dist/*

dist: clean ## builds source and wheel package
$(python) setup.py sdist $(build_opts)
$(python) setup.py bdist_wheel $(build_opts)
$(python) build
ls -l dist

install: clean ## install the package to the active Python's site-packages
$(python) setup.py install $(build_opts)
pip install .

0 comments on commit 64eef4e

Please sign in to comment.