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

Post on 28-Jan-2015

147 Views

Category:

Self Improvement

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Python 程式專案

gasolin at OSDC.TW 08

Pictures from

維護、分享,以周蟒為例

Outline

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

GameOSS Project Management is a

with fun!

TableDoing OSS Project as a ...

game

Contains 3 Zones

BootStrapping

Hosting

Maintenance

Crosing 8 Blocks

Visit blocks as oftenas you can

周蟒中文 Python 語言

ZHPY

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

學習,

徵驗

舉例五行生剋

五行5 Elements 生

五行5 Elements 剋

找出邏輯?

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

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

物件化

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

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

(可驗證)

周蟒我的嘗試

支援

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

版本

1.6Just Released (4/12/2008)

線上版ZHPY.APPSPOT.com

1.6線上版

ZHPY.APPSPOT.com

Procedure fora new zhpy relese

TableDoing OSS Project as a ...

game

is where we go from..Coding

Start small coding

Make it Run

Lazy Testing

with nose

unit test (test_...)

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

Evolving Incrementally

Documenting

Version Control

Checkout Fresh Source

Auto Distributing to PyPi

PyPi, Python's "CPAN"

SetuptoolsA setup.py keeps you lazy

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

Project Info in setup.py

Auto Project Info

Hosting

Write Documents, Examples

Trace Issues, Bugs, Requessts

Tagging new Version

Auto API Generating

with epydoc

Distributing(Place for Download)

OK... Anything Left?

Auto "Quality" Test

with cheesecake

Marketing (Let others know)

ZHPY.blogspot.com

Conclusion

GameOSS Project Management is a

with fun!

Youare the OSS gamer

TableDoing OSS Project as a ...

game

Contains 3 Zones

BootStrapping

Hosting

Maintenance

Crosing 8 Blocks

Visit blocks as oftenas you can

Thanks

top related