Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added setup.py metadatas in tikz_editor.globals.

  • Loading branch information...
commit 0fd8482b78688c1a1bce05d845ca11cc80af21c2 1 parent 50d417d
@mickael-menu mickael-menu authored
View
2  Makefile
@@ -29,7 +29,7 @@ tikz_editor/resources/__init__.py: tikz_editor/resources/resources.qrc
# Alias to "python setup.py install"
install:
- python setup.py install
+ python setup.py install --install-scripts=/usr/bin
clean:
rm -rf TikZEditor.egg-info
View
21 setup.py
@@ -21,23 +21,26 @@
from setuptools import setup, find_packages
+import tikz_editor.globals as globals
+
setup(
- name = "TikZEditor",
- version = "1.0",
+ name = globals.APPLICATION_NAME,
+ version = globals.VERSION,
packages = find_packages(),
include_package_data = True,
package_data = {'': ['*.png', '*.html']},
# auto-creates a GUI Python script to launch the application
- entry_points = {'gui_scripts': ['tikz-editor = tikz_editor:start'], 'setuptools.installation': [
- 'eggsecutable = tikz_editor:start',
- ]},
+ entry_points = {
+ 'gui_scripts': ['tikz-editor = tikz_editor:start'],
+ 'setuptools.installation': ['eggsecutable = tikz_editor:start']
+ },
# metadatas
- author = "Mickael Menu",
- author_email = "mickael.menu@gmail.com",
- description = "TikZ (LaTeX) code editor",
+ author = globals.AUTHORS,
+ author_email = globals.EMAIL,
+ description = globals.APPLICATION_DESCRIPTION,
license = "GPL v2",
keywords = "tikz code editor latex preview",
- url = "http://github.com/mickael-menu/TikZ-Editor",
+ url = globals.WEBSITE,
)
View
8 tikz_editor/globals/__init__.py
@@ -1,3 +1,5 @@
+# coding=utf-8
+
# Copyright 2012 (C) Mickael Menu <mickael.menu@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
@@ -14,8 +16,12 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
APPLICATION_NAME = u"TikZ Editor"
+APPLICATION_DESCRIPTION = u"TikZ (LaTeX) code editor"
ORGANIZATION_NAME = u"UPMC"
ORGANIZATION_DOMAIN = u"upmc.fr"
-AUTHORS = u"Micka&euml;l Menu" # add authors separated by commas -- accents must be encoded as HTML entities
+AUTHORS = u"Mickaël Menu" # add authors separated by commas
+AUTHORS_HTML = u"Micka&euml;l Menu" # add authors separated by commas -- accents must be encoded as HTML entities
+EMAIL = u"mickael.menu@gmail.com"
+WEBSITE = u"http://github.com/mickael-menu/TikZ-Editor"
VERSION = u"1.0"
GIT_VERSION = u"" # returned by "git describe --always" in the GIT repository
View
2  tikz_editor/views/about.py
@@ -32,7 +32,7 @@ def __init__(self, parent=None):
if globals.GIT_VERSION != u'':
version += ' (%s)' % globals.GIT_VERSION
self.version_label = QLabel("<center><small>Version %s</small></center>" % version)
- self.copyright_label = QLabel("<center><small>Copyright 2012 %s</small></center>" % globals.AUTHORS)
+ self.copyright_label = QLabel("<center><small>Copyright 2012 %s</small></center>" % globals.AUTHORS_HTML)
self.info_text = QTextEdit()
def initView(self):
Please sign in to comment.
Something went wrong with that request. Please try again.