feanor
V1.2.5
สคริปต์ Python เพื่อลดความซับซ้อนของการสร้าง ทดสอบ เผยแพร่ และปรับใช้โปรเจ็กต์อัตโนมัติ
สร้างไฟล์ชื่อ pack.py
ในรูทของโปรเจ็กต์ของคุณโดยมีเนื้อหาดังต่อไปนี้:
from feanor import BaseBuilder
class Builder ( BaseBuilder ):
def Setup ( self ):
pass
def Tests ( self ):
pass
def Docs ( self ):
pass
def Build ( self ):
pass
def BuildTests ( self ):
pass
def Publish ( self ):
pass
คุณสามารถเปลี่ยนชื่อคลาส
Builder
เป็นชื่อใดก็ได้ที่คุณต้องการ
คุณสามารถเปลี่ยนชื่อไฟล์เป็นชื่อใดก็ได้ที่คุณต้องการ
ลบวิธีการที่คุณไม่ต้องการ (
Setup
และBuild
เป็นวิธีที่จำเป็นเท่านั้น)
รันสคริปต์ด้วย:
python pack.py
ใช้ python pack.py --help
เพื่อดูตัวเลือกที่มี:
-h, --help show this help message and exit
--debug Enable debug messages
--deep-debug Enable deep debug messages
--version, -v show program's version number and exit
Builder options:
--no-tests Do not run tests
--no-docs Do not generate documentation
--publish Publish the package
--no-clean Do not clean temporary files
--dist-dir DIST_DIR Distribution directory (where to save the built files)
-pv PACKAGE_VERSION, --package-version PACKAGE_VERSION
set the version of the package you want to build