diff --git a/README.txt b/README.txt index 12b4a3a..57463e3 100644 --- a/README.txt +++ b/README.txt @@ -58,4 +58,31 @@ Work in progress :) # Requirements * pillow -* pyhyphen + +# Release (PyPi package building) + + + +Make the pip wheel: + +`$ python3 setup.py bdist_wheel` + +Upload the package to pypi: + +`$ twine upload dist/*` + +For the last step, you need to install Twine (): + +`$ pip install twine` + +# Develop the asciiWriter + +Make a virtualenv: + +`$ python3 -m venv venvname` + +Install asciiWriter in (editable) development mode: + +`$ pip install -e ./` + +Now you can work with the asciiWriter and the code will be updated when you make changes! \ No newline at end of file diff --git a/asciiWriter/examples/draw.py b/asciiWriter/examples/draw.py deleted file mode 100644 index 5dee52e..0000000 --- a/asciiWriter/examples/draw.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -from utils import make_lines, merge, print_lines, rotate, visit, visit_horizontal -from patterns import diagonal, horizontal, vertical, sinus_horizontal, sinus_vertical, image -from marks import random_mark, sequence_mark, space -from random import choice, random -import math - - - - -# marks = ['┼', '│', '░', '▓', 'X', '■', '≡', '·', '¦', ' '] -# blank = ' ' -width = 75 -height = 50 -mark = sequence_mark('O.P.E.N D.E.S.I.G.N C.O.U.R.S.E ') - - -layers = [] - -# layers.append(visit(make_lines(width, height), image('blobs-small.png'), mark, space(' '))) - -for offset in range(-50, 50, 15): - lines = [[] for l in range(height)] - sinus = sinus_vertical(period=50, amplitude=25, offset=offset, offset_t=random()) - layers.append(visit(make_lines(width, height), sinus, sequence_mark(' K A S K G E N T '), space())) - -for offset in range(-43, 57, 15): - lines = [[] for l in range(height)] - sinus = sinus_vertical(period=40, amplitude=10, offset=offset, offset_t=.5+random()) - layers.append(visit(make_lines(width, height), sinus, mark, space())) - -print_lines(merge(width, height, space()(), layers)) - -# for line in overlay(50, 50, ' ', [rotate(merged), merged]): -# stdout.write('{}\n'.format(''.join(line))) - -# sinus = sinus_horizontal(period=30, amplitude=8) -# for x in range(width): -# for y in range(height): -# lines[y].append(sinus(x, y, width, height, mark, space())) - -# for line in lines: -# stdout.write('{}\n'.format(''.join(line))) - -# lines = [[draw(x, y, marks) for x in range(width)] for y in range(height)] - -# sys.sdout.write('\n'.join([''.join(line) for line in lines])) - -# sys.sdout.write('\n'.join([''.join([draw(x, y, marks) for x in range(width)]) for y in range(height)]))