Skip to content

Commit f829bce

Browse files
committed
support pip
1 parent 3d2f2c2 commit f829bce

File tree

5 files changed

+28
-11
lines changed

5 files changed

+28
-11
lines changed

ReadMe.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
1+
[![PyPI version](https://img.shields.io/pypi/v/Incantation.svg)](https://pypi.python.org/pypi/Incantation)
22

33
# Incantation
44

55
See [codes in Here](https://github.com/thautwarm/Incantation/tree/master/incantation)
66

77
This library is written by `flowpython`(so it just support Python 3.6.x now...), which makes the codes much more readable.
88

9-
**P.S** Flowpython running on Python 3.6.3 has some bugs, especially at `pip`. You can use a virtual environment like Python 3.6.1 and Python 3.6.2. If you use `anaconda` distributions, both Anaconda 4.4.0 and Miniconda 4.3.27 are okay.
9+
**P.S**
10+
Running on Python 3.6, you can use pip to install it. If you want to compile the source codes you should install `flowpython`.
11+
The release package is totally made up of `pyc` files, which're compiled from `flowpython sources` and then can be executed on `CPython 3.6`.
12+
13+
## Install
14+
15+
```
16+
pip install Incantation
17+
```
18+
19+
Take care that you'd better clone the static sources in this project to root of the directory of your web-app.
20+
1021

1122

1223
## Docs

docs/Chinese/Index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
- Beginning
77

8-
- [配置静态文件和flowpython](./static_conf.md)
8+
- [配置静态文件](./static_conf.md)
99
- [快速上手的例子](./hello_world.md)
1010

1111
- Module模块

docs/Chinese/static_conf.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11

2-
# 配置静态文件和flowpython
2+
# 配置静态文件
33

4-
## flowpython
4+
## 关于flowpython
55
Incantation使用[flowpython](https://github.com/thautwarm/flowpython)书写, 使用扩展的模式匹配和函数式写法来简化代码的逻辑。
6-
flowpython只是一个扩展了的Python解释器,支持Python-3.5.x和Python-3.6.1和Python-3.6.2。
7-
使用flowpython的方法可以是`pip install flowpython&&python -m flowpython -m enable`
8-
但我更建议的是前往[flowpython release](https://github.com/thautwarm/flowpython/releases)下载对应系统的flowpython解释器,并用之替换标准CPython的解释器。
9-
解释器的位置使用`which python`得知, 对Windows用户, 这个命令是`where python`.
6+
flowpython与CPython使用同一套字节码,所以,所有资源被编译成`pyc`文件来发布,以便于使用更少的依赖也可以工作在不同的操作系统上。
7+
8+
**P.S**
9+
10+
如果你希望查看Incantation的源代码,你需要安装flowpython,而它暂时只工作在windows和linux平台上。
11+
flowpython只是一个扩展了的Python解释器,支持Python-3.5.x和Python-3.6.1和Python-3.6.2。
12+
使用flowpython的方法可以是`pip install flowpython&&python -m flowpython -m enable`。
13+
但我更建议的是前往[flowpython release](https://github.com/thautwarm/flowpython/releases)下载对应系统的flowpython解释器,并用之替换标准CPython的解释器。
14+
解释器的位置使用`which python`得知, 对Windows用户, 这个命令是`where python`.
1015

1116

1217
## 配置静态文件

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import os
1414
cat = os.path.join
1515
setup(name='Incantation',
16-
version='0.2.3',
16+
version='0.3',
1717
keywords='website, web-design',
1818
description = "Python Object Design about Website. Make Developing websites like saying incantations.",
1919
long_description=readme,

test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
input_field(grid(s=12), field_name = 'Username', type = 'text', icon = icon('mode_edit'), id = 'for-username'),
8585
input_field(grid(s=12), field_name = 'Password', type = 'password', icon = icon('brightness_auto'), id = 'for-password'),
8686
input_field(grid(s=12), field_name = 'School', type = 'text', icon = icon('brightness_3'), id = 'for-school'),
87-
input_field(grid(s=12), field_name = 'submit', type = 'submit', icon = icon('publish'), id = 'for-submit')->> right_align,
87+
88+
right_align(input_field(grid(s=12), field_name = 'submit', type = 'submit', icon = icon('publish'), id = 'for-submit')),
8889
),
8990
action = 'script',
9091
method = 'POST')

0 commit comments

Comments
 (0)