apppublic/setup.py

53 lines
1.1 KiB
Python
Raw Normal View History

2019-07-16 16:33:07 +08:00
# -*- coding: utf-8 -*-
2022-06-15 15:57:42 +08:00
from appPublic.version import __version__
2022-02-24 13:24:49 +08:00
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
2024-01-14 11:09:56 +08:00
required = []
with open('requirements.txt', 'r') as f:
ls = f.read()
required = ls.split('\n')
2019-07-16 16:33:07 +08:00
2022-08-11 13:57:12 +08:00
with open('appPublic/version.py', 'r') as f:
x = f.read()
y = x[x.index("'")+1:]
z = y[:y.index("'")]
version = z
with open("README.md", "r") as fh:
long_description = fh.read()
2019-07-16 16:33:07 +08:00
2019-07-29 09:59:10 +08:00
name = "appPublic"
2019-07-16 16:33:07 +08:00
description = "appPublic"
author = "yumoqing"
2019-07-29 09:59:10 +08:00
email = "yumoqing@gmail.com"
2019-07-16 16:33:07 +08:00
package_data = {}
setup(
2022-02-24 13:24:49 +08:00
name="appPublic",
version=version,
# uncomment the following lines if you fill them out in release.py
description=description,
author=author,
author_email=email,
platforms='any',
2024-01-14 11:09:56 +08:00
install_requires=required ,
2022-02-24 13:24:49 +08:00
packages=[
"appPublic"
],
package_data=package_data,
keywords = [
],
2019-07-29 09:59:10 +08:00
url="https://github.com/yumoqing/appPublic",
2022-08-11 13:57:12 +08:00
long_description=long_description,
2019-07-29 09:59:10 +08:00
long_description_content_type="text/markdown",
2022-02-24 13:24:49 +08:00
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
2019-07-29 09:59:10 +08:00
'License :: OSI Approved :: MIT License',
2022-02-24 13:24:49 +08:00
],
2019-07-16 16:33:07 +08:00
)