Permalink
Browse files

Merge branch 'issue_#12' - Now we have setup.py which make possible i…

…nstall openComtradeViewer directly from GitHub.
  • Loading branch information...
ldemattos committed Mar 7, 2017
2 parents 6f504a9 + eaf3544 commit 8fc1bc1518c60c9502eef5452de7a350ded65f73
Showing with 100 additions and 2 deletions.
  1. +22 −0 MANIFEST.in
  2. +51 −0 setup.py
  3. +2 −2 { → src}/openComtradeViewer.py
  4. +25 −0 src/run.py
@@ -0,0 +1,22 @@
#
# MANIFEST.in
#
# Copyright 2017 Leonardo M. N. de Mattos <l@mattos.eng.br>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#

include README.md
include LICENSE
@@ -0,0 +1,51 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# setup.py
#
# Copyright 2017 Leonardo M. N. de Mattos <l@mattos.eng.br>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#

from setuptools import setup

setup(name='openComtradeViewer',
version='0.0',
description='IEEE COMTRADE oscillograph visualizer',
long_description='An open/free multi platform IEEE COMTRADE oscillograph records visualizer',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2.7',
'Topic :: Multimedia :: Graphics :: Viewers',
],
license='GPLv3',
author='Leonardo M. N. de Mattos',
author_email='l@mattos.eng.br',
url='https://github.com/ldemattos/openComtradeViewer',
packages=['openComtradeViewer'],
package_dir={'openComtradeViewer':'src'},
data_files=[("", ["LICENSE"]),
("", ["README.md"])
],
entry_points = {
'console_scripts': [
'ocv = openComtradeViewer.run:main',
],
},
include_package_data=True,
zip_safe=False
)
@@ -21,7 +21,7 @@
#

import Tkinter as tkinter
import src.GUI
import GUI
import sys

def main():
@@ -34,7 +34,7 @@ def main():

# Generate main window
rootwin = tkinter.Tk()
src.GUI.mainWindow(rootwin,comtradeFile)
GUI.mainWindow(rootwin,comtradeFile)
rootwin.mainloop()

return(0)
@@ -0,0 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# run.py
#
# Copyright 2017 Leonardo M. N. de Mattos <l@mattos.eng.br>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#

import openComtradeViewer

openComtradeViewer.main()

0 comments on commit 8fc1bc1

Please sign in to comment.