Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autofit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ def save_abc(pickler, obj):

conf.instance.register(__file__)

__version__ = "2025.5.7.16"
__version__ = "2025.5.10.1"
7 changes: 0 additions & 7 deletions optional_requirements.txt

This file was deleted.

85 changes: 85 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[build-system]
requires = ["setuptools>=79.0", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "autofit"
dynamic = ["version"]
description = "Classy Probabilistic Programming"
readme = { file = "README.rst", content-type = "text/x-rst" }
license-files = [
"LICENSE",
]
requires-python = ">=3.9"
authors = [
{ name = "James Nightingale", email = "James.Nightingale@newcastle.ac.uk" },
{ name = "Richard Hayes", email = "richard@rghsoftware.co.uk" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
keywords = ["cli"]
dependencies = [
"autoconf",
"anesthetic==2.8.14",
"corner==2.2.2",
"decorator>=4.2.1",
"dill>=0.3.1.1",
"dynesty==2.1.4",
"typing-inspect>=0.4.0",
"emcee>=3.1.6",
"gprof2dot==2021.2.21",
"matplotlib",
"numpydoc>=1.0.0",
"pyprojroot==0.2.0",
"pyswarms==1.3.0",
"h5py>=3.11.0",
"SQLAlchemy==2.0.32",
"scipy<=1.14.0",
"astunparse==1.6.3",
"threadpoolctl>=3.1.0,<=3.2.0",
"timeout-decorator==0.5.0",
"xxhash<=3.4.1",
"networkx==3.1",
"pyvis==0.3.2",
"psutil==6.1.0"
]

[project.urls]
Homepage = "https://github.com/rhayes777/PyAutoFit"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
exclude = ["docs", "test_autofit", "test_autofit*"]

[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"


[project.optional-dependencies]
optional=[
"astropy>=5.0",
"getdist==1.4",
"nautilus-sampler==1.0.4",
"ultranest==4.3.2",
"zeus-mcmc==2.5.4",
]

test = ["pytest"]
dev = ["pytest", "black"]

[tool.setuptools.package-data]
"autofit.config" = ["*"]

[tool.pytest.ini_options]
testpaths = ["test_autofit"]
22 changes: 0 additions & 22 deletions requirements.txt

This file was deleted.

55 changes: 3 additions & 52 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,57 +1,8 @@
import os
from codecs import open
from os.path import abspath, dirname, join
from os import environ

from setuptools import find_packages, setup

this_dir = abspath(dirname(__file__))
with open(join(this_dir, "README.rst"), encoding="utf-8") as file:
long_description = file.read()

with open(join(this_dir, "requirements.txt")) as f:
requirements = f.read().split("\n")

version = environ.get("VERSION", "1.0.dev0")
requirements.extend([
f'autoconf=={version}'
])


def config_packages(directory):
paths = [directory.replace("/", ".")]
for (path, directories, filenames) in os.walk(directory):
for directory in directories:
paths.append(f'{path}/{directory}'.replace("/", "."))
return paths
from setuptools import setup

version = os.environ.get("VERSION", "1.0.dev0")

setup(
name="autofit",
version=version,
description="Classy Probabilistic Programming",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/rhayes777/PyAutoFit",
author="James Nightingale and Richard Hayes",
author_email="richard@rghsoftware.co.uk",
include_package_data=True,
license="MIT License",
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires='>=3.7',
keywords="cli",
packages=find_packages(exclude=["docs", "test_autofit", "test_autofit*"]) + config_packages('autofit/config'),
install_requires=requirements,
setup_requires=["pytest-runner"],
tests_require=["pytest"],
)
)
Loading