2021-06-05 19:45:47 +08:00
|
|
|
import os
|
|
|
|
import pdb # 先 import 今天要介紹的套件
|
|
|
|
|
|
|
|
from glob import glob
|
|
|
|
from setuptools import find_packages, setup
|
2021-06-19 17:29:18 +08:00
|
|
|
|
|
|
|
about = {}
|
|
|
|
with open("./src/Editor/__about__.py") as about_info:
|
|
|
|
exec(about_info.read(), about)
|
2021-06-05 19:45:47 +08:00
|
|
|
|
|
|
|
third_party_files_and_dir = glob('thirdparty/**',recursive=True)
|
|
|
|
third_party_files = [x for x in third_party_files_and_dir if not os.path.isdir(x)]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="Clochur",
|
2021-06-19 17:29:18 +08:00
|
|
|
version=about['version_no'],
|
2021-06-05 19:45:47 +08:00
|
|
|
author="Yoxem Chen",
|
|
|
|
author_email="yoxem.tem98@nctu.edu.tw",
|
|
|
|
description='''A S-expression like typesetting language powered by SILE engine
|
|
|
|
with a simple editor''',
|
|
|
|
|
|
|
|
url="http://yoxem.github.com",
|
|
|
|
|
|
|
|
install_requires=['PyQt5>=5.15', 'QScintilla>=2.12'],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classifiers = [
|
|
|
|
|
|
|
|
'Development Status :: 2 - Pre-Alpha'
|
|
|
|
'Environment :: X11 Applications :: Qt'
|
|
|
|
'Programming Language :: Lisp'
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Topic :: Text Editors',
|
|
|
|
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
entry_points={
|
|
|
|
'gui_scripts': [
|
|
|
|
'clochur = Editor.__init__:entry_point'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
packages=find_packages(where='src'),
|
2021-06-19 17:33:24 +08:00
|
|
|
package_dir={'Editor': 'src/Editor'},
|
2021-06-05 19:45:47 +08:00
|
|
|
package_data={'Editor': ['*.pdf', '*.qrc',
|
|
|
|
'../resources/*.svg',
|
|
|
|
'../thirdparty/pdfjs/**',
|
|
|
|
'../thirdparty/pdfjs/**/**',
|
|
|
|
'../thirdparty/pdfjs/**/**/**',
|
|
|
|
'../thirdparty/pdfjs/**/**/**/**']},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
2021-06-19 17:29:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|