diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 97a6b68e..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,24 +0,0 @@ -include AUTHORS.rst -include CONTRIBUTING.rst -include HISTORY.rst -include LICENSE -include README.rst -include requirements.txt -include optional-requirements.txt -include requirements_dev.txt - -recursive-include cython * -recursive-include fortran * -recursive-include pixell/tests * -recursive-include pixell/tests/data * -recursive-include scripts * -recursive-include * *.ttf -recursive-exclude cython sharp.c -recursive-exclude fortran interpol_*.f90 -recursive-exclude * temporary_map.fits -recursive-exclude * __pycache__ -recursive-exclude * *.py[co] - -recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif -include versioneer.py -include pixell/_version.py diff --git a/Makefile b/Makefile index 9da19b15..ed243fb7 100644 --- a/Makefile +++ b/Makefile @@ -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) @@ -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 @@ -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 .