-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from ealcobaca/new-version
New version
- Loading branch information
Showing
4 changed files
with
21 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,43 @@ | ||
all: install-dev code-check test-cov | ||
all: clean install-dev code-check test-cov | ||
.PHONY: all clean test test-cov code-check pypi install install-dev | ||
|
||
clean: | ||
clean: ## Clean all undesired files such as .so, .pyc, build files and etc. | ||
find . -name "*.so" -o -name "*.pyc" -o -name "*.md5" -o -name "*.pyd" -o -name "*~" | xargs rm -f | ||
rm -rf .coverage.* | ||
rm -rf dist | ||
rm -rf build | ||
rm -rf docs/_build | ||
rm -rf docs/source/generated | ||
rm -rf docs/source/auto_examples | ||
cd docs ; make clean_all | ||
|
||
test: | ||
test: ## Execute the code test using pytest. | ||
pytest tests/ | ||
|
||
test-cov: | ||
test-cov: ## Execute the code test using pytest and measuring the coverage. | ||
rm -rf coverage .coverage | ||
pytest --cov=pymfe/ tests/ | ||
|
||
code-check: | ||
code-check: ## Execute the code check with flake8, pylint, mypy. | ||
flake8 pymfe | ||
pylint pymfe -d 'C0103, R0913, R0902, R0914, C0302, R0904, R0801, E1101' | ||
mypy pymfe --ignore-missing-imports | ||
|
||
pypi: clean | ||
pypi: clean ## Send pymfe to pypi. | ||
python3 setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
|
||
install-dev: install-dev-pymfe | ||
install-dev: ## Install pymfe for developers using pip. | ||
pip install -e . | ||
pip install -U -r requirements.txt | ||
pip install -U -r requirements-dev.txt | ||
pip install -U -r requirements-docs.txt | ||
|
||
install: | ||
pip install -U -r requirements.txt | ||
install: ## Install pymfe using pip. | ||
pip install . | ||
|
||
install-dev-pymfe: install | ||
pip install -e . | ||
html: ## Create the online documentation. | ||
cd docs; make html | ||
|
||
help: ## List target command description. | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
# 'X.Y.dev0' is the canonical version of 'X.Y.dev' | ||
|
||
|
||
__version__ = '0.2rc0' | ||
__version__ = '0.2.0' |
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,12 +1,6 @@ | ||
pytest | ||
pytest-cov | ||
mypy | ||
liac-arff | ||
flake8 | ||
pylint | ||
pytest | ||
pytest-cov | ||
liac-arff | ||
sphinx | ||
sphinx-gallery | ||
sphinx_rtd_theme | ||
numpydoc |
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,9 +1,3 @@ | ||
numpy | ||
scipy | ||
sklearn | ||
patsy | ||
pandas | ||
statsmodels | ||
sphinx | ||
sphinx-gallery | ||
sphinx_rtd_theme | ||
|