mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
updates to the pytest tests to fix the issues with pwm, added 2 new tests that bring in 5 total unit tests. python3 unit tests are passing, this will close #42 and close #47
This commit is contained in:
39
Makefile
39
Makefile
@ -1,10 +1,16 @@
|
||||
# PyPi Packaging
|
||||
package: clean
|
||||
@echo " ** PACKAGING FOR PYPI **"
|
||||
python setup.py sdist
|
||||
|
||||
# PyPi Publishing
|
||||
publish: package
|
||||
@echo " ** UPLOADING TO PYPI **"
|
||||
twine upload dist/*
|
||||
|
||||
# Clean all the things
|
||||
clean:
|
||||
@echo " ** CLEANING CHIP_IO **"
|
||||
rm -rf CHIP_IO.* build dist
|
||||
rm -f *.pyo *.pyc
|
||||
rm -f *.egg
|
||||
@ -12,14 +18,43 @@ clean:
|
||||
rm -rf debian/python-chip-io*
|
||||
rm -rf debian/python3-chip-io*
|
||||
|
||||
tests:
|
||||
py.test
|
||||
# Run all the tests
|
||||
tests: pytest2 pytest3
|
||||
|
||||
# Run the tests with Python 2
|
||||
pytest2:
|
||||
@echo " ** RUNING CHIP_IO TESTS UNDER PYTHON 2 **"
|
||||
pushd test; python -m pytest; popd
|
||||
|
||||
# Run the tests with Python 3
|
||||
pytest3:
|
||||
@echo " ** RUNING CHIP_IO TESTS UNDER PYTHON 3 **"
|
||||
pushd test; python3 -m pytest; popd
|
||||
|
||||
# Build all the things
|
||||
build:
|
||||
@echo " ** BUILDING CHIP_IO: PYTHON 2 **"
|
||||
python setup.py build --force
|
||||
|
||||
# Install all the things
|
||||
install: build
|
||||
@echo " ** INSTALLING CHIP_IO: PYTHON 2 **"
|
||||
python setup.py install --force
|
||||
|
||||
# Build for Python 3
|
||||
build3:
|
||||
@echo " ** BUILDING CHIP_IO: PYTHON 3 **"
|
||||
python3 setup.py build --force
|
||||
|
||||
# Install for Python 3
|
||||
install3: build3
|
||||
@echo " ** INSTALLING CHIP_IO: PYTHON 3 **"
|
||||
python3 setup.py install --force
|
||||
|
||||
# Install for both Python 2 and 3
|
||||
all: install install3
|
||||
|
||||
# Create a deb file
|
||||
debfile:
|
||||
@echo " ** BUILDING DEBIAN PACKAGES **"
|
||||
dpkg-buildpackage -rfakeroot -uc -b
|
||||
|
Reference in New Issue
Block a user