-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define python package version and requirements
- close #8
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,19 @@ | |
# Plotting imports | ||
import pyqtgraph as pg | ||
|
||
# Define module | ||
__version__ = '0.0.0' | ||
__maintainer__ = "David Eldon" | ||
__email__ = "[email protected]" | ||
__status__ = "Development" | ||
|
||
__all__ = ['figure', 'axes', 'pyplot', 'translate', 'examples'] | ||
|
||
# Setup style, etc. | ||
pg.setConfigOption('background', 'w') | ||
pg.setConfigOption('foreground', 'k') | ||
|
||
# Make a QApp so that windows can be opened | ||
if os.environ.get('PYQTMPL_DEBUG', None) is None: | ||
os.environ['PYQTMPL_DEBUG'] = "0" | ||
app = QtGui.QApplication(sys.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pyqtgraph>=0.9.10 | ||
matplotlib>=1.5.3 | ||
numpy>=1.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# # -*- coding: utf-8 -*- | ||
|
||
# Basic imports | ||
from setuptools import setup | ||
|
||
# pyqtmpl imports | ||
import __init__ | ||
|
||
# http://python-packaging.readthedocs.io/en/latest/dependencies.html | ||
# https://packaging.python.org/discussions/install-requires-vs-requirements/ | ||
|
||
# Read requirements from requirements.txt | ||
reqs = open('requirements.txt', 'r') | ||
rlines = [a for a in reqs.read().split('\n') if len(a)] | ||
|
||
# Run setup | ||
setup( | ||
name='pyqtmpl', | ||
version=__init__.__version__, | ||
description='Wrapper for calling PyQtGraph with Matplotlib syntax', | ||
url='https://github.com/eldond/pyqtmpl', | ||
author=__init__.__maintainer__, | ||
author_email=__init__.__email__, | ||
packages=[ | ||
'pyqtmpl', | ||
], | ||
install_requires=rlines, | ||
) |