Navigation Menu

Skip to content

Commit

Permalink
First attempt with setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemattos committed Mar 4, 2017
1 parent fbc7a0c commit 0b082cb
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 2 deletions.
22 changes: 22 additions & 0 deletions MANIFEST.in
@@ -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
53 changes: 53 additions & 0 deletions setup.py
@@ -0,0 +1,53 @@
#!/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 distutils.core import setup
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'},
package_data={
'README': ['README.md'],
'LICENSE': ['LICENSE'],
},
entry_points = {
'console_scripts': [
'oCV = openComtradeViewer.run:main',
],
},
#~ data_files=[('README', ['README.md']),
#~ ('LICENSE', ['LICENSE'])]
)
4 changes: 2 additions & 2 deletions openComtradeViewer.py → src/openComtradeViewer.py
Expand Up @@ -21,7 +21,7 @@
# #


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


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


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


return(0) return(0)
Expand Down
25 changes: 25 additions & 0 deletions src/run.py
@@ -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 0b082cb

Please sign in to comment.