Skip to content

Commit

Permalink
Merge pull request #194 from jenshnielsen/modernize_setup
Browse files Browse the repository at this point in the history
Modernize setup
  • Loading branch information
wpfff committed Jun 1, 2021
2 parents f322e77 + ec2f723 commit de90817
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 43 deletions.
2 changes: 2 additions & 0 deletions plottr/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
this file marks plottr as safe for typechecking
https://mypy.readthedocs.io/en/latest/installed_packages.html#installed-packages
57 changes: 57 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
[metadata]
name = plottr
description = A tool for live plotting and processing data
long_description = file: README.md
long_description_content_type = text/markdown
author = Wolfgang Pfaff
author_email = wolfgangpfff@gmail.com
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Scientific/Engineering
license = MIT
url = https://github.com/toolsforexperiments/plottr
project_urls =
Documentation = https://plottr.readthedocs.io
Source = https://github.com/toolsforexperiments/plottr/
Tracker = https://github.com/toolsforexperiments/plottr/issues

[options]
packages = find:
python_requires = >=3.7
install_requires =
pandas>=0.22
xarray
pyqtgraph>=0.10.0
matplotlib
numpy
lmfit
h5py>=2.10.0
qtpy>=1.9.0
typing-extensions>=3.7.4.3
packaging>=20.0

[options.package_data]
plottr =
resource/gfx/*
py.typed

[options.extras_require]
PyQt5 = PyQt5
PySide2 = PySide2

[options.packages.find]
include =
plottr*

[options.entry_points]
console_scripts =
plottr-monitr = plottr.apps.monitr:script
plottr-inspectr = plottr.apps.inspectr:script
plottr-autoplot-ddh5 = plottr.apps.autoplot:script

[versioneer]
VCS = git
style = pep440
Expand Down
44 changes: 1 addition & 43 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,50 +1,8 @@
from setuptools import setup, find_packages
from setuptools import setup

import versioneer

with open("README.md", "r") as fh:
long_description = fh.read()

setup(
name='plottr',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='A tool for live plotting and processing data',
long_description=long_description,
long_description_content_type="text/markdown",
author='Wolfgang Pfaff',
author_email='wolfgangpfff@gmail.com',
url='https://github.com/toolsforexperiments/plottr',
packages=find_packages(include=("plottr*",)),
package_data={'plottr': ['resource/gfx/*']},
install_requires=[
'pandas>=0.22',
'xarray',
'pyqtgraph>=0.10.0',
'matplotlib',
'numpy',
'lmfit',
'h5py>=2.10.0',
'qtpy>=1.9.0',
'typing-extensions>=3.7.4.3',
"packaging>=20.0",
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering'
],
python_requires='>=3.7',
extras_require={'PyQt5': "PyQt5", "PySide2": "PySide2"},
entry_points={
"console_scripts": [
"plottr-monitr = plottr.apps.monitr:script",
"plottr-inspectr = plottr.apps.inspectr:script",
"plottr-autoplot-ddh5 = plottr.apps.autoplot:script",
],
}
)

0 comments on commit de90817

Please sign in to comment.