diff --git a/README.rst b/README.rst index 9c84bc0..268e590 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ unimpeded: Universal model comparison & parameter estimation over diverse datase ================================================================================== :unimpeded: Universal model comparison & parameter estimation over diverse datasets :Author: Will Handley -:Version: 1.0.0a0 +:Version: 0.0.0 :Homepage: https://github.com/handley-lab/unimpeded :Documentation: http://unimpeded.readthedocs.io/ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..33755e1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "unimpeded" +dynamic = ["version"] +authors = [ + { name="Will Handley", email="williamjameshandley@gmail.com" }, +] +description = "Universal model comparison & parameter estimation over diverse datasets" +readme = "README.rst" +license = {file = "LICENSE"} +requires-python = ">=3.8" +dependencies = [ + "anesthetic>=2.0.0b40" +] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Development Status :: 1 - Planning", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "Natural Language :: English", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Astronomy", + "Topic :: Scientific/Engineering :: Physics", + "Topic :: Scientific/Engineering :: Visualization", + "Topic :: Scientific/Engineering :: Information Analysis", + "Topic :: Scientific/Engineering :: Mathematics", +] + +[project.urls] +"Homepage" = "https://github.com/handley-lab/unimpeded" +"Bug Tracker" = "https://github.com/handley-lab/unimpeded/issues" +"Documentation" = "https://unimpeded.readthedocs.io/en/latest/" + +[project.optional-dependencies] +docs = ["sphinx", "sphinx_rtd_theme", "numpydoc"] +test = ["pytest", "pytest-cov", "flake8", "pydocstyle", "packaging", "pre-commit"] + +[tool.setuptools.dynamic] +version = {attr = "unimpeded._version.__version__"} diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 1f77310..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -anesthetic>=2.0.0b12 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b8e6ce8 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[options] +packages = find: +include_package_data = True diff --git a/setup.py b/setup.py deleted file mode 100644 index e4db1b8..0000000 --- a/setup.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env python3 -from setuptools import setup, find_packages - - -def readme(short=False): - with open('README.rst') as f: - if short: - return f.readlines()[1].strip() - else: - return f.read() - - -def get_version(short=False): - with open('README.rst') as f: - for line in f: - if ':Version:' in line: - ver = line.split(':')[2].strip() - if short: - subver = ver.split('.') - return '%s.%s' % tuple(subver[:2]) - else: - return ver - - -setup(name='unimpeded', - version=get_version(), - description=readme(short=True), - long_description=readme(), - author='Will Handley', - author_email='wh260@cam.ac.uk', - url='https://github.com/handley-lab/unimpeded', - packages=find_packages(), - scripts=[], - install_requires=open('requirements.txt').read().splitlines(), - setup_requires=['pytest-runner'], - extras_require={ - 'docs': ['sphinx', 'sphinx_rtd_theme', 'numpydoc'], - }, - tests_require=['pytest', 'packaging'], - include_package_data=True, - license='MIT', - classifiers=[ - 'Development Status :: 1 - Planning', - 'Intended Audience :: Developers', - 'Intended Audience :: Science/Research', - 'Natural Language :: English', - 'License :: OSI Approved :: MIT License', - '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', - 'Topic :: Scientific/Engineering', - 'Topic :: Scientific/Engineering :: Astronomy', - 'Topic :: Scientific/Engineering :: Physics', - 'Topic :: Scientific/Engineering :: Visualization', - 'Topic :: Scientific/Engineering :: Information Analysis', - 'Topic :: Scientific/Engineering :: Mathematics', - ], - ) diff --git a/unimpeded/_version.py b/unimpeded/_version.py new file mode 100644 index 0000000..77d6f4c --- /dev/null +++ b/unimpeded/_version.py @@ -0,0 +1 @@ +0.0.0