Skip to content

Commit

Permalink
Merge pull request #60 from ealcobaca/new-version
Browse files Browse the repository at this point in the history
New version
  • Loading branch information
FelSiq committed Dec 12, 2019
2 parents 0672579 + 6e4be40 commit aa1b8a1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 25 deletions.
30 changes: 19 additions & 11 deletions Makefile
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}'
2 changes: 1 addition & 1 deletion pymfe/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'


__version__ = '0.2rc0'
__version__ = '0.2.0'
8 changes: 1 addition & 7 deletions requirements-dev.txt
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
6 changes: 0 additions & 6 deletions requirements.docs.txt → requirements-docs.txt
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
Expand Down

0 comments on commit aa1b8a1

Please sign in to comment.