diff --git a/butterfly/__about__.py b/butterfly/__about__.py new file mode 100644 index 0000000..5254bdf --- /dev/null +++ b/butterfly/__about__.py @@ -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__ diff --git a/butterfly/__init__.py b/butterfly/__init__.py index f7608ad..d9e19d4 100644 --- a/butterfly/__init__.py +++ b/butterfly/__init__.py @@ -14,6 +14,8 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . +from .__about__ import * # noqa: F401,F403 + import os import tornado.web import tornado.options diff --git a/setup.py b/setup.py index 161c89d..575dba4 100644 --- a/setup.py +++ b/setup.py @@ -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)