From d58b60fb1ff99133a01710113d7546490281288d Mon Sep 17 00:00:00 2001 From: Tianlu Yuan <5412915+tianluyuan@users.noreply.github.com> Date: Tue, 28 May 2024 08:30:48 -1000 Subject: [PATCH] migrate to pyproject.toml and update license --- LICENSE | 1 + pyproject.toml | 42 ++++++++++++++++++++++++++++++++++++++++++ setup.py | 27 --------------------------- 3 files changed, 43 insertions(+), 27 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/LICENSE b/LICENSE index e206072..8bcc509 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License Copyright (c) 2019 Tianlu Yuan +Copyright (c) 2021 Eric Daniël Fraenkel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5d57f7a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,42 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "fb8" +version = "1.2.3" +authors = [ + {name = "Daniël Fraenkel", email = "e.d.fraenkel@gmail.com"}, + {name = "Austin Schneider", email = "aschn@mit.edu"}, + {name = "Tianlu Yuan", email = "tyuan@icecube.wisc.edu"}, +] +maintainers = [ + {name = "Tianlu Yuan", email = "tyuan@icecube.wisc.edu"} +] + +description = "Implementation of FB8, a generalization of the Kent (1982) and Bingham-Mardia (1978) distributions on a sphere" +readme = "README.md" +license = {file = "LICENSE"} + +requires-python = ">= 3.8" +dependencies = [ + "numpy >= 1.17", + "scipy" +] + +classifiers = [ + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Programming Language :: Python :: 3", + "Topic :: Scientific/Engineering", +] + +[project.optional-dependencies] +plotting = ["matplotlib", "healpy"] + +[project.urls] +Repository = "https://github.com/tianluyuan/sphere.git" + +[tool.setuptools.packages] +find = {} \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 1be773e..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name='fb8', - version='1.2.2', - author='T. Yuan', - author_email='tyuan@icecube.wisc.edu', - description='Implementation of FB8, a generalization of the Kent (1982) and Bingham-Mardia (1978) distributions on a sphere', - long_description=open('README.md').read(), - long_description_content_type='text/markdown', - url='https://github.com/tianluyuan/sphere.git', - packages=find_packages('./'), - install_requires=['numpy>=1.17', - 'scipy'], - extras_require={ - 'plotting': ['matplotlib', 'healpy'] - }, - python_requires='>=3.5', - license=open('LICENSE').readline().split()[0], - classifiers=[ - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: MIT License', - 'Natural Language :: English', - 'Programming Language :: Python :: 3', - 'Topic :: Scientific/Engineering', - ], - )