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