Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/.cache
/.coverage
/.eggs
./mathicsscript/inputrc-no-unicode
./mathicsscript/inputrc-unicode
/.mypy_cache
/.pytest_cache
/.python-version
Expand Down
23 changes: 19 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,53 @@ PYTHON ?= python3
PIP ?= pip3
RM ?= rm

.PHONY: all build check clean develop dist doc pytest sdist test rmChangeLog
.PHONY: all build check clean inputrc develop dist doc pytest sdist test rmChangeLog

#: Default target - same as "develop"
all: develop

#: build everything needed to install
build:
build: inputrc
$(PYTHON) ./setup.py build

#: Set up to run from the source tree
develop:
$(PIP) install -e .

#: Make distirbution: wheels, eggs, tarball
dist:
./admin-tools/make-dist.sh

#: Run mathicsscript and reload on file changes to the source
runner:
watchgod mathicsscript.__main__.main

#: Install mathicsscript
install:
install: inputrc
$(PYTHON) setup.py install

#: Run tests. You can set environment variable "o" for pytest options
check:
check: inputrc
py.test test $o

inputrc: mathicsscript/inputrc-unicode mathicsscript/inputrc-no-unicode

mathicsscript/inputrc-unicode:
@echo "# GNU Readline input unicode translations\n# Autogenerated from mathics_scanner.generate.rl_inputrc on $$(date)\n" > $@
$(PYTHON) -m mathics_scanner.generate.rl_inputrc inputrc-unicode >> $@

mathicsscript/inputrc-no-unicode:
@echo "# GNU Readline input ASCII translations\n# Autogenerated from mathics_scanner.generate.rl_inputrc on $$(date)\n" > $@
$(PYTHON) -m mathics_scanner.generate.rl_inputrc inputrc-no-unicode >> $@

# Check StructuredText long description formatting
check-rst:
$(PYTHON) setup.py --long-description | ./rst2html.py > mathicsscript.html

#: Remove derived files
clean:
@find . -name "*.pyc" -type f -delete
@rm mathicsscript/inputrc-no-unicode mathicsscript/inputrc-unicode || true

#: Remove ChangeLog
rmChangeLog:
Expand Down
2 changes: 2 additions & 0 deletions mathicsscript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/inputrc-no-unicode
/inputrc-unicode
41 changes: 0 additions & 41 deletions mathicsscript/inputrc

This file was deleted.

31 changes: 0 additions & 31 deletions mathicsscript/inputrc-no-unicode

This file was deleted.

Loading