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