This commit is contained in:
yumoqing 2024-01-14 11:11:00 +08:00
parent e56811c7cf
commit 77ce369d28

123
setup.py
View File

@ -1,11 +1,11 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
try: try:
from setuptools import setup from setuptools import setup
except ImportError: except ImportError:
from distutils.core import setup from distutils.core import setup
# from Cython.Build import cythonize # from Cython.Build import cythonize
with open('kivyblocks/version.py', 'r') as f: with open('kivyblocks/version.py', 'r') as f:
x = f.read() x = f.read()
y = x[x.index("'")+1:] y = x[x.index("'")+1:]
@ -14,58 +14,59 @@ with open('kivyblocks/version.py', 'r') as f:
with open("README.md", "r", encoding="utf-8") as fh: with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read() long_description = fh.read()
description = "kivy blocks is a tool to build kivy ui with json format uidesc files" description = "kivy blocks is a tool to build kivy ui with json format uidesc files"
author = "yumoqing" author = "yumoqing"
email = "yumoqing@icloud.com" email = "yumoqing@icloud.com"
package_data = { required = []
"kivyblocks":[ with open('requirements.txt', 'r') as f:
'imgs/*.png', ls = f.read()
'imgs/*.atlas', required = ls.split('\n')
'imgs/*.gif',
'imgs/*.jpg', package_data = {
'ttf/*.ttf', "kivyblocks":[
'ui/*.uidesc', 'imgs/*.png',
'xcamera/xcamera.kv', 'imgs/*.atlas',
# 'image_processing/cascades/haarcascade_frontalface_default.xml', 'imgs/*.gif',
'xcamera/data/*' 'imgs/*.jpg',
], 'ttf/*.ttf',
} 'ui/*.uidesc',
'xcamera/xcamera.kv',
setup( # 'image_processing/cascades/haarcascade_frontalface_default.xml',
name="kivyblocks", 'xcamera/data/*'
# ext_modules= cythonize( [ ]), ],
ext_modules= [], }
version=version,
# uncomment the following lines if you fill them out in release.py setup(
description=description, name="kivyblocks",
# ext_modules= cythonize( [ ]),
ext_modules= [],
version=version,
# uncomment the following lines if you fill them out in release.py
description=description,
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
author=author, author=author,
author_email=email, author_email=email,
install_requires=[ install_requires=required,
"kivy", packages=[
"appPublic", 'kivyblocks',
"sqlor" # 'kivyblocks.image_processing',
], 'kivyblocks.mapview',
packages=[ 'kivyblocks.uitype',
'kivyblocks', 'kivyblocks.widgetExt'
# 'kivyblocks.image_processing', # 'kivyblocks.xcamera'
'kivyblocks.mapview', ],
'kivyblocks.uitype', package_data=package_data,
'kivyblocks.widgetExt' keywords = [
# 'kivyblocks.xcamera' ],
], classifiers = [
package_data=package_data, 'Development Status :: 3 - Alpha',
keywords = [ 'Operating System :: OS Independent',
], 'Programming Language :: Python :: 3.5',
classifiers = [ 'Topic :: Software Development :: Libraries :: Python Modules'
'Development Status :: 3 - Alpha', ],
'Operating System :: OS Independent', platforms= 'any'
'Programming Language :: Python :: 3.5', )
'Topic :: Software Development :: Libraries :: Python Modules'
],
platforms= 'any'
)