mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-08-04 19:41:17 +02:00
* [chore] Stricter ruff rules * [chore] Furture lint rules and removal of flake8 * [ci] Bump github action versions * [chore] Add additional test coverage * Revert RNG switch to np.random.default_rng() Restore use of the global np.random state in pseudo_Obs (misc.py) and the prior id generation (fits.py), keeping seed behavior unchanged. The switch to a module-local generator is out of scope for this lint-focused PR. * Silence NPY002 on intentional legacy np.random calls The RNG migration was reverted to keep np.random.seed() behavior, so add per-line noqa: NPY002 on the three legacy np.random calls instead of the Generator API. * [Fix] Fix exception messages
41 lines
1.8 KiB
Python
41 lines
1.8 KiB
Python
from setuptools import setup, find_packages
|
|
from pathlib import Path
|
|
from distutils.util import convert_path
|
|
|
|
this_directory = Path(__file__).parent
|
|
long_description = (this_directory / "README.md").read_text()
|
|
|
|
version = {}
|
|
with open(convert_path('pyerrors/version.py')) as ver_file:
|
|
exec(ver_file.read(), version)
|
|
|
|
setup(name='pyerrors',
|
|
version=version['__version__'],
|
|
description='Error propagation and statistical analysis for Monte Carlo simulations',
|
|
long_description=long_description,
|
|
long_description_content_type='text/markdown',
|
|
url="https://github.com/fjosw/pyerrors",
|
|
project_urls= {
|
|
'Documentation': 'https://fjosw.github.io/pyerrors/pyerrors.html',
|
|
'Bug Tracker': 'https://github.com/fjosw/pyerrors/issues',
|
|
'Changelog' : 'https://github.com/fjosw/pyerrors/blob/master/CHANGELOG.md'
|
|
},
|
|
author='Fabian Joswig',
|
|
author_email='fabian.joswig@ed.ac.uk',
|
|
license="MIT",
|
|
packages=find_packages(),
|
|
python_requires='>=3.10.0',
|
|
install_requires=['numpy>=2.0', 'autograd>=1.7.0', 'numdifftools>=0.9.41', 'matplotlib>=3.9', 'scipy>=1.13', 'iminuit>=2.28', 'h5py>=3.11', 'lxml>=5.0', 'python-rapidjson>=1.20', 'pandas>=2.2', 'odrpack>=0.5'],
|
|
extras_require={'test': ['pytest', 'pytest-cov', 'pytest-benchmark', 'hypothesis', 'nbmake']},
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Intended Audience :: Science/Research',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.10',
|
|
'Programming Language :: Python :: 3.11',
|
|
'Programming Language :: Python :: 3.12',
|
|
'Programming Language :: Python :: 3.13',
|
|
'Programming Language :: Python :: 3.14',
|
|
'Topic :: Scientific/Engineering :: Physics'
|
|
],
|
|
)
|