Clochur/setup.py

65 lines
1.7 KiB
Python
Raw Normal View History

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 = {}
2021-06-28 00:39:17 +08:00
with open("./src/Clochur/__about__.py") as about_info:
2021-06-19 17:29:18 +08:00
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': [
2021-06-28 00:39:17 +08:00
'clochur = Clochur.__init__:entry_point'
2021-06-05 19:45:47 +08:00
]
},
packages=find_packages(where='src'),
2021-06-28 00:39:17 +08:00
package_dir={'Clochur': 'src/Clochur'},
package_data={'Clochur': ['*.pdf', '*.qrc',
2021-06-05 19:45:47 +08:00
'../resources/*.svg',
2021-06-28 00:39:17 +08:00
'../../example/*.clc',
'../../example/*.png',
2021-06-05 19:45:47 +08:00
'../thirdparty/pdfjs/**',
'../thirdparty/pdfjs/**/**',
'../thirdparty/pdfjs/**/**/**',
'../thirdparty/pdfjs/**/**/**/**']},
)
2021-06-19 17:29:18 +08:00