Skip to content

Commit

Permalink
Signed-off-by: Dmitry Ponyatov <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyatov committed Nov 26, 2019
1 parent bd6e023 commit 1411288
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*~
*.swp
*.log
*.pyc

bin/
include/
lib/
lib64
share/
pyvenv.cfg

40 changes: 40 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

CWD = $(CURDIR)
MODULE = $(notdir $(CWD))

PY = $(CWD)/bin/python3
PIP = $(CWD)/bin/pip3
PI = $(CWD)/Picat/picat

install: doc
sudo apt install -u `cat apt.txt`
$(PIP) install -U pip
$(PIP) install -U flask ply graphviz
$(MAKE) requirements.txt

.PHONY: install requirements.txt

requirements.txt:
$(PIP) freeze | grep -v 0.0.0 > $@

doc: doc/book.pdf doc/manual.pdf
doc/book.pdf:
wget -c -O $@ http://picat-lang.org/picatbook2015/constraint_solving_and_planning_with_picat.pdf
doc/manual.pdf:
wget -c -O $@ http://picat-lang.org/download/picat_guide.pdf

MERGE = Makefile README.md .gitignore
MERGE += $(MODULE).py $(MODULE).ini requirements.txt apt.txt
MERGE += doc

merge:
git checkout master
git checkout shadow -- $(MERGE)

NOW = $(shell date +%d%m%y)
REL = $(shell git rev-parse --short=4 HEAD)

release:
git tag $(NOW)-$(REL)
git push -v && git push -v --tags
git checkout shadow
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
# uPicat
uLearning course on Picat programming language
## uLearning course on Picat programming language

(c) Dmitry Ponyatov <<[email protected]>> 2019 MIT All rights reserved

This is a demo course on Picat programming language implemented on top of the uLearn LMS platform. This platform is not ready for production, so all preview lesson drafts are provided at the project wiki: https://github.com/ponyatov/uPicat/wiki

* first lesson: [0000 What is Picat language?](https://github.com/ponyatov/uPicat/wiki/0000-What-is-Picat-language%3F)
* GitHub: https://github.com/ponyatov/uPicat

#### MIT License

Copyright 2019 Dmitry Ponyatov <<[email protected]>>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python3
graphviz
1 change: 1 addition & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pdf
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Click==7.0
Flask==1.1.1
graphviz==0.13.2
itsdangerous==1.1.0
Jinja2==2.10.3
MarkupSafe==1.1.1
ply==3.11
Werkzeug==0.16.0
Empty file added uPicat.ini
Empty file.
Empty file added uPicat.py
Empty file.

0 comments on commit 1411288

Please sign in to comment.