|
3 | 3 |
|
4 | 4 | import sys |
5 | 5 | sys.dont_write_bytecode = True |
| 6 | + |
6 | 7 | try: |
7 | 8 | from setuptools import setup |
8 | 9 | except ImportError: |
9 | 10 | from distutils.core import setup |
10 | 11 | from Cython.Build import cythonize |
11 | 12 |
|
12 | | -__author__ = 'Leo Zhang' |
13 | | -__version__ = '0.0.1-dev' |
14 | | -__license__ = 'MIT' |
| 13 | +import litefs |
| 14 | + |
| 15 | +__author__ = litefs.__author__ |
| 16 | +__version__ = litefs.__version__ |
| 17 | +__license__ = litefs.__license__ |
15 | 18 |
|
16 | | -setup(name='litefs', |
17 | | - version=__version__, |
18 | | - description='使用 Python 从零开始构建一个 Web 服务器框架。', |
19 | | - long_description=( |
20 | | - '使用 Python 从零开始构建一个 Web 服务器框架。 开发 Litefs 的是为了实现一个能' |
21 | | - '快速、安全、灵活的构建 Web 项目的服务器框架。 litefs 是一个高性能的 Http 服务' |
22 | | - '器。Litefs 具有高稳定性、丰富的功能、系统消耗低的特点。'), |
23 | | - author=__author__, |
24 | | - author_email='leafcoder@gmail.com', |
25 | | - url='https://coding.net/u/leafcoder/p/litefs', |
26 | | - py_modules=['litefs'], |
27 | | - ext_modules=cythonize('litefs.py'), |
28 | | - scripts=['litefs.py'], |
29 | | - license='MIT', |
30 | | - platforms='any', |
31 | | - install_requires = open("requirements.pip").read().splitlines() |
| 19 | +print litefs.__doc__ |
| 20 | +setup( |
| 21 | + name='litefs', |
| 22 | + version=__version__, |
| 23 | + description='使用 Python 从零开始构建一个 Web 服务器框架。', |
| 24 | + long_description=litefs.__doc__, |
| 25 | + author=__author__, |
| 26 | + author_email='leafcoder@gmail.com', |
| 27 | + url='https://coding.net/u/leafcoder/p/litefs', |
| 28 | + py_modules=['litefs'], |
| 29 | + ext_modules=cythonize('litefs.py'), |
| 30 | + scripts=['litefs.py'], |
| 31 | + license=__license__, |
| 32 | + platforms='any', |
| 33 | + install_requires=open("requirements.pip").read().splitlines() |
32 | 34 | ) |
0 commit comments