Use a __about__ file

This commit is contained in:
Florian Mounier
2017-03-30 10:20:25 +02:00
parent 3228e8c204
commit ed347e2bd0
3 changed files with 27 additions and 13 deletions

10
butterfly/__about__.py Normal file
View File

@@ -0,0 +1,10 @@
__title__ = "butterfly"
__version__ = "3.0.2"
__summary__ = "A sleek web based terminal emulator"
__uri__ = "https://github.com/paradoxxxzero/butterfly"
__author__ = "Florian Mounier"
__email__ = "paradoxxx.zero@gmail.com"
__license__ = "GPLv3"
__copyright__ = "Copyright 2017 %s" % __author__

View File

@@ -14,6 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from .__about__ import * # noqa: F401,F403
import os
import tornado.web
import tornado.options

View File

@@ -4,19 +4,23 @@
"""
Butterfly - A sleek web based terminal emulator
"""
import os
from setuptools import setup
__version__ = '3.0.1'
about = {}
with open(os.path.join(
os.path.dirname(__file__), "butterfly", "__about__.py")) as f:
exec(f.read(), about)
options = dict(
name="butterfly",
version=__version__,
description="A sleek web based terminal emulator",
long_description="See http://github.com/paradoxxxzero/butterfly",
author="Florian Mounier",
author_email="paradoxxx.zero@gmail.com",
url="http://github.com/paradoxxxzero/butterfly",
license="GPLv3",
setup(
name=about['__title__'],
version=about['__version__'],
description=about['__summary__'],
url=about['__uri__'],
author=about['__author__'],
author_email=about['__email__'],
license=about['__license__'],
platforms="Any",
scripts=['butterfly.server.py', 'scripts/butterfly', 'scripts/b'],
packages=['butterfly'],
@@ -43,12 +47,10 @@ options = dict(
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Terminals"])
setup(**options)