Skip to content

Commit

Permalink
changed setup, now uses pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
GuenterQuast committed Jul 11, 2023
1 parent 81980f8 commit 7483680
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 43 deletions.
Binary file removed dist/PhyPraKit-1.2.5-py2.py3-none-any.whl
Binary file not shown.
Binary file modified dist/PhyPraKit-1.2.5.tar.gz
Binary file not shown.
62 changes: 62 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.distutils.bdist_wheel]
universal = false

[project]
name = "PhyPraKit"
dynamic = ["version"]
description = "Tools for data visualisation and analysis in Physics Lab Courses"
authors = [
{name = "Guenter Quast", email = "Guenter.Quast@online.de"},
]

keywords = ["karlsruhe", "data", "analysis", "visualization", "lab", "laboratory",
"education", "university", "students", "physics"]

requires-python = ">=3.6"
readme = "README.md"
license = {text = "MIT BSD 2-Clause License"}

classifiers = [
"License :: OSI Approved :: MIT BSD 2-Clause License",
"Development Status :: 5 - stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Education",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Data Acquisition",
"Topic :: Scientific/Engineering :: Visualization",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11" ]

dependencies = [
"numpy",
"matplotlib",
"scipy",
"pandas",
"iminuit",
"kafe2",
"uncertainties" ]

[project.scripts]
run_phyFit = 'PhyPraKit:run_phyFit.py'
plot_Data = 'PhyPraKit:plotData.py'
csv2yml = 'PhyPraKit:csv2yml.py'
plotCSV = 'PhyPraKit:plotCSV.py'
smoothCSV = 'PhyPraKit:smoothCSV.py'

[tool.setuptools.packages.find]
include = ["PhyPraKit*"]

[tool.setuptools.dynamic]
version = {attr = "PhyPraKit.__version__"}

45 changes: 2 additions & 43 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
import PhyPraKit # from this directory
import pathlib
# setup.py for compatibility with old setuptools
from setuptools import setup

# The directory containing this file
HERE = pathlib.Path(__file__).parent

# The text of the README file
README = (HERE / "README.md").read_text()


setup(
name='PhyPraKit',
packages=['PhyPraKit'],
version=PhyPraKit.__version__,
#
author='Guenter Quast',
author_email='Guenter.Quast@online.de',
url='http://www.etp.kit.edu/~quast/',
license='GNU Public Licence',
description='Tools for data visualisation and analysis in Physics Lab Courses',
long_description=README,
scripts=['tools/run_phyFit.py', 'tools/plotData.py',
'tools/csv2yml.py', 'tools/plotCSV.py' , 'tools/smoothCSV.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
# 'Development Status :: 4 - Beta',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
install_requires=[\
"NumPy >= 1.19",
"SciPy >= 1.5",
"matplotlib >= 3",
"iminuit >1.99",
"kafe2 >=2.6.0",]
)
setup() # reads from pyproject.toml
44 changes: 44 additions & 0 deletions setup.py.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import PhyPraKit # from this directory
import pathlib
from setuptools import setup

# The directory containing this file
HERE = pathlib.Path(__file__).parent

# The text of the README file
README = (HERE / "README.md").read_text()


setup(
name='PhyPraKit',
packages=['PhyPraKit'],
version=PhyPraKit.__version__,
#
author='Guenter Quast',
author_email='Guenter.Quast@online.de',
url='http://www.etp.kit.edu/~quast/',
license='GNU Public Licence',
description='Tools for data visualisation and analysis in Physics Lab Courses',
long_description=README,
scripts=['tools/run_phyFit.py', 'tools/plotData.py',
'tools/csv2yml.py', 'tools/plotCSV.py' , 'tools/smoothCSV.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
# 'Development Status :: 4 - Beta',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
install_requires=[\
"NumPy >= 1.19",
"SciPy >= 1.5",
"matplotlib >= 3",
"iminuit >1.99",
"kafe2 >=2.6.0",]
)

0 comments on commit 7483680

Please sign in to comment.