-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Replace
poetry
with setuptools
for package management.
Poetry is overkill for this project since no deep dependency management is required (The sole dependency is numpy). This PR removes the use of poetry and replaces it with functionality introduced in setuptools>=61.0.0.
- Loading branch information
Showing
12 changed files
with
95 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
prune .github | ||
prune examples | ||
prune scripts | ||
prune tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,25 @@ | ||
.PHONY: clean cythonize install test sdist wheels | ||
|
||
DOCKER_IMAGES=quay.io/pypa/manylinux2010_x86_64 \ | ||
quay.io/pypa/manylinux2014_x86_64 | ||
|
||
define make_wheels | ||
docker pull $(1) | ||
docker container run -t --rm -e PLAT=$(strip $(subst quay.io/pypa/,,$(1))) \ | ||
-e BUILD_WHEEL=1 -v $(shell pwd):/io $(1) /io/build_wheels.sh | ||
endef | ||
|
||
|
||
clean: | ||
rm -Rf build/* dist/* polyagamma/*.c polyagamma/*.so polyagamma/*.html \ | ||
polyagamma.egg-info **/*__pycache__ __pycache__ .coverage* \ | ||
./**/polyagamma.egg-info **/*__pycache__ __pycache__ .coverage* \ | ||
|
||
cythonize: | ||
cythonize polyagamma/*.pyx | ||
|
||
install: clean cythonize | ||
poetry install | ||
dev: | ||
pip install -r requirements-dev.txt | ||
|
||
sdist: | ||
python -m build --sdist | ||
|
||
sdist: clean cythonize | ||
poetry build -f sdist | ||
wheel: | ||
python -m build --wheel | ||
|
||
test: | ||
test: cythonize | ||
pytest tests/ -vvv | ||
|
||
test-cov: clean | ||
poetry run cythonize polyagamma/*.pyx -X linetrace=True | ||
BUILD_WITH_COVERAGE=1 poetry install | ||
poetry run pytest -v --cov-branch --cov=polyagamma tests/ --cov-report=html | ||
|
||
wheels: clean cythonize | ||
$(foreach img, $(DOCKER_IMAGES), $(call make_wheels, $(img));) | ||
cythonize polyagamma/*.pyx -X linetrace=True | ||
BUILD_WITH_COVERAGE=1 pip install -e . | ||
pytest -v --cov-branch --cov=polyagamma tests/ --cov-report=html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.