Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnebro committed Jun 21, 2024
1 parent 44bac48 commit 8aef297
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
36 changes: 21 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
install:
@python setup.py build install
# Minimal makefile for Sphinx documentation
#

install-dependencies:
@python -m pip install -e .[all]
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = jMetalPy
SOURCEDIR = docs/source
BUILDDIR = build

clean:
@rm -rf build dist .eggs *.egg-info
@find . -type d -name '.mypy_cache' -exec rm -rf {} +
@find . -type d -name '__pycache__' -exec rm -rf {} +
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

black: clean
@isort --profile black jmetal/ examples/
@black jmetal/ examples/
.PHONY: help Makefile

lint:
@mypy jmetal/ examples/ --show-error-codes
# "make github" option to build gh-pages
github:
@make html
@cp -a $(BUILDDIR)/html/. docs
@rm -r $(BUILDDIR)

tests:
@python -m unittest discover -q
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
copyright = '2019, Antonio Benítez-Hidalgo'
author = 'Antonio Benítez-Hidalgo'
version = ''
release = '1.5.3'
release = '1.7.0'


# -- General configuration ---------------------------------------------------
Expand All @@ -33,7 +33,7 @@
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
language = None
language = "en"
pygments_style = 'sphinx'

# -- Options for HTML output -------------------------------------------------
Expand Down

0 comments on commit 8aef297

Please sign in to comment.