Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Added setup.py metadatas in tikz_editor.globals.
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu committed May 18, 2012
1 parent 50d417d commit 0fd8482
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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
Expand Down
21 changes: 12 additions & 9 deletions setup.py
Expand Up @@ -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,
)
8 changes: 7 additions & 1 deletion 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
Expand All @@ -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
2 changes: 1 addition & 1 deletion tikz_editor/views/about.py
Expand Up @@ -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):
Expand Down

0 comments on commit 0fd8482

Please sign in to comment.