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