maintain and share your python project (維護和分享 python 程式專案)

58
Python 程式專案 gasolin at OSDC.TW 08 Pictures from 維護、分享,以周蟒為例

Upload: fred-lin

Post on 28-Jan-2015

157 views

Category:

Self Improvement


1 download

DESCRIPTION

It's a talk in 08' but most approaches still work

TRANSCRIPT

Page 1: Maintain and share your python project (維護和分享 Python 程式專案)

Python 程式專案

gasolin at OSDC.TW 08

Pictures from

維護、分享,以周蟒為例

Page 2: Maintain and share your python project (維護和分享 Python 程式專案)

Outline

●Concept●ZHPY (周蟒)●Procedure for a new release●Conclusion

Page 3: Maintain and share your python project (維護和分享 Python 程式專案)

GameOSS Project Management is a

with fun!

Page 4: Maintain and share your python project (維護和分享 Python 程式專案)

TableDoing OSS Project as a ...

game

Page 5: Maintain and share your python project (維護和分享 Python 程式專案)

Contains 3 Zones

BootStrapping

Hosting

Maintenance

Page 6: Maintain and share your python project (維護和分享 Python 程式專案)

Crosing 8 Blocks

Page 7: Maintain and share your python project (維護和分享 Python 程式專案)

Visit blocks as oftenas you can

Page 8: Maintain and share your python project (維護和分享 Python 程式專案)

周蟒中文 Python 語言

ZHPY

Page 9: Maintain and share your python project (維護和分享 Python 程式專案)

中文編程...用途...?

Page 10: Maintain and share your python project (維護和分享 Python 程式專案)

學習,

徵驗

Page 11: Maintain and share your python project (維護和分享 Python 程式專案)

舉例五行生剋

Page 12: Maintain and share your python project (維護和分享 Python 程式專案)

五行5 Elements 生

Page 13: Maintain and share your python project (維護和分享 Python 程式專案)

五行5 Elements 剋

Page 14: Maintain and share your python project (維護和分享 Python 程式專案)

找出邏輯?

Page 15: Maintain and share your python project (維護和分享 Python 程式專案)

# 五行相生關係木.相生 = 火火.相生 = 土土.相生 = 金金.相生 = 水水.相生 = 木

# 五行相剋關係木.相剋 = 土土.相剋 = 水水.相剋 = 火火.相剋 = 金金.相剋 = 木

物件化

Page 16: Maintain and share your python project (維護和分享 Python 程式專案)

遁去的一類別 五行(物件): 定義 __初始化__(我, 名稱): 我.名稱 = 名稱 我.相生 = 空 我.相剋 = 空 定義 __字串__(我): 返回 我.名稱

金 = 五行(名稱 = '金')木 = 五行(名稱 = '木')水 = 五行(名稱 = '水')火 = 五行(名稱 = '火')土 = 五行(名稱 = '土')

(可驗證)

Page 17: Maintain and share your python project (維護和分享 Python 程式專案)

周蟒我的嘗試

Page 18: Maintain and share your python project (維護和分享 Python 程式專案)

支援

●繁簡中文●Python 混寫●嵌入 Python●完整文件

Page 19: Maintain and share your python project (維護和分享 Python 程式專案)

版本

1.6Just Released (4/12/2008)

Page 20: Maintain and share your python project (維護和分享 Python 程式專案)

線上版ZHPY.APPSPOT.com

Page 21: Maintain and share your python project (維護和分享 Python 程式專案)
Page 22: Maintain and share your python project (維護和分享 Python 程式專案)

1.6線上版

ZHPY.APPSPOT.com

Page 23: Maintain and share your python project (維護和分享 Python 程式專案)

Procedure fora new zhpy relese

Page 24: Maintain and share your python project (維護和分享 Python 程式專案)

TableDoing OSS Project as a ...

game

Page 25: Maintain and share your python project (維護和分享 Python 程式專案)

is where we go from..Coding

Page 26: Maintain and share your python project (維護和分享 Python 程式專案)
Page 27: Maintain and share your python project (維護和分享 Python 程式專案)

Start small coding

Page 28: Maintain and share your python project (維護和分享 Python 程式專案)

Make it Run

Page 29: Maintain and share your python project (維護和分享 Python 程式專案)

Lazy Testing

with nose

Page 30: Maintain and share your python project (維護和分享 Python 程式專案)

unit test (test_...)

doc test (""" >>> ... """)

Page 31: Maintain and share your python project (維護和分享 Python 程式專案)

Evolving Incrementally

Page 32: Maintain and share your python project (維護和分享 Python 程式專案)

Documenting

Page 33: Maintain and share your python project (維護和分享 Python 程式專案)

Version Control

Page 34: Maintain and share your python project (維護和分享 Python 程式專案)

Checkout Fresh Source

Page 35: Maintain and share your python project (維護和分享 Python 程式專案)

Auto Distributing to PyPi

Page 36: Maintain and share your python project (維護和分享 Python 程式專案)

PyPi, Python's "CPAN"

Page 37: Maintain and share your python project (維護和分享 Python 程式專案)

SetuptoolsA setup.py keeps you lazy

Page 38: Maintain and share your python project (維護和分享 Python 程式專案)

upload

register project

$ python setup.py register

upload project package

$ python setup.py register sdist --format=zip upload

Full upload command

$ python setup.py register bdist_egg sdist --format=zip upload

Page 39: Maintain and share your python project (維護和分享 Python 程式專案)

Project Info in setup.py

Page 40: Maintain and share your python project (維護和分享 Python 程式專案)

Auto Project Info

Page 41: Maintain and share your python project (維護和分享 Python 程式專案)

Hosting

Page 42: Maintain and share your python project (維護和分享 Python 程式專案)

Write Documents, Examples

Page 43: Maintain and share your python project (維護和分享 Python 程式專案)

Trace Issues, Bugs, Requessts

Page 44: Maintain and share your python project (維護和分享 Python 程式專案)

Tagging new Version

Page 45: Maintain and share your python project (維護和分享 Python 程式專案)

Auto API Generating

with epydoc

Page 46: Maintain and share your python project (維護和分享 Python 程式專案)
Page 47: Maintain and share your python project (維護和分享 Python 程式專案)

Distributing(Place for Download)

Page 48: Maintain and share your python project (維護和分享 Python 程式專案)

OK... Anything Left?

Page 49: Maintain and share your python project (維護和分享 Python 程式專案)

Auto "Quality" Test

with cheesecake

Page 50: Maintain and share your python project (維護和分享 Python 程式專案)

Marketing (Let others know)

ZHPY.blogspot.com

Page 51: Maintain and share your python project (維護和分享 Python 程式專案)

Conclusion

Page 52: Maintain and share your python project (維護和分享 Python 程式專案)

GameOSS Project Management is a

with fun!

Page 53: Maintain and share your python project (維護和分享 Python 程式專案)

Youare the OSS gamer

Page 54: Maintain and share your python project (維護和分享 Python 程式專案)

TableDoing OSS Project as a ...

game

Page 55: Maintain and share your python project (維護和分享 Python 程式專案)

Contains 3 Zones

BootStrapping

Hosting

Maintenance

Page 56: Maintain and share your python project (維護和分享 Python 程式專案)

Crosing 8 Blocks

Page 57: Maintain and share your python project (維護和分享 Python 程式專案)

Visit blocks as oftenas you can

Page 58: Maintain and share your python project (維護和分享 Python 程式專案)

Thanks