Commit df13465d authored by Somnath, Suhas's avatar Somnath, Suhas
Browse files

Now conforming to official recommendations for setting up Python packages

* Also replaced the TK based uiGetfile with PyQt based version.
parent cc2ae51d
include README.md
include README.rst
include LICENSE.txt
\ No newline at end of file
......@@ -6,11 +6,9 @@ Created on Tue Nov 3 21:14:25 2015
"""
import os
from Tkinter import Tk; # To render a dialog that requests the input file
from tkFileDialog import askopenfilename as fileDialog; # To render a dialog that requests the input file
from multiprocessing import cpu_count
from time import strftime
from PyQt4 import QtGui
def getTimeStamp():
'''
......@@ -45,13 +43,8 @@ def uiGetFile(extension, caption='Select File'):
file_path : String
Absolute path of the chosen file
'''
root = Tk();
root.withdraw();
root.lift();
root.attributes("-topmost", True)
return os.path.abspath(fileDialog(filetypes=[(caption, extension)]));
return QtGui.QFileDialog.getOpenFileName(caption=caption, filter=extension)
def getAvailableMem():
......
......@@ -4,11 +4,11 @@ from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as f:
with open(path.join(here, 'README.rst')) as f:
long_description=f.read()
setup(
name='pyCroscopy',
name='pycroscopy',
version='0.0a1',
description='A suite of Python libraries for high performance scientific computing of microscopy data.',
long_description= long_description,
......@@ -26,6 +26,7 @@ setup(
'Topic :: Scientific / Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Physics',
],
keywords='scientific microscopy data analysis',
packages=find_packages(exclude='tests'),
url='http://github.com/pycroscopy/pyCroscopy',
license='MIT',
......@@ -35,7 +36,10 @@ setup(
# I don't remember how to do this correctly!!!. NL
dependency='',
dependency_links=[''],
install_requires=[''],
install_requires=['numpy_groupies','pyqtgraph','numpy>=1.11.0',
'h5py>=2.6.0','scipy>=0.17.1','matplotlib>=1.5.1',
'sklearn>=0.17.1','xlrd>=1.0.0'],#'multiprocess'],
#package_data={'sample':['dataset_1.dat']}
test_suite='nose.collector',
tests_require='Nose',
include_package_data=True,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment