From 5fe92d240bd05cfbaa66a87e1996a0e0ae573126 Mon Sep 17 00:00:00 2001 From: gesellkammer Date: Fri, 20 Sep 2024 01:22:59 +0200 Subject: [PATCH] add pyproject.toml --- pyproject.toml | 56 +++++++++++++++++++++++++++++++++++++++ setup.py | 71 -------------------------------------------------- 2 files changed, 56 insertions(+), 71 deletions(-) create mode 100644 pyproject.toml delete mode 100755 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..c1296db --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,56 @@ +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "csoundengine" +version = "2.10.6" +description = "An audio synthesis framework using csound" +authors = [ + { name = "Eduardo Moguillansky", email = "eduardo.moguillansky@gmail.com" }, +] +license = { file = "LICENSE.txt" } +readme = "README.rst" +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", +] + +requires-python = ">=3.9" + +dependencies = [ + "numpy", + "scipy", + "matplotlib", + "cachetools", + "JACK-client", + "appdirs", + "pygments", + "sf2utils", + "ipywidgets", + "progressbar2", + "xxhash", + "docstring_parser", + "typing_extensions", + + "ctcsound7>=0.4.6", + "sndfileio>=1.9.4", + "emlib>=1.15.0", + "configdict>=2.10.0", + "bpf4>=1.10.1", + "numpyx>=1.3.3", + "pitchtools>=1.14.0", + "risset>=2.9.1", + "sounddevice", +] + +[tool.setuptools] +packages = ["csoundengine"] + + +[tool.setuptools.package-data] +csoundengine = ['csoundengine/data'] + + +[project.urls] +"Homepage" = "https://github.com/gesellkammer/csoundengine" diff --git a/setup.py b/setup.py deleted file mode 100755 index 5ebd005..0000000 --- a/setup.py +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -from setuptools import setup -import os - -version = (2, 10, 5) - -from os import path -this_directory = path.abspath(path.dirname(__file__)) -with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f: - long_description = f.read() - - -def package_files(directory): - paths = [] - for (path, directories, filenames) in os.walk(directory): - for filename in filenames: - paths.append(os.path.join('..', path, filename)) - return paths - - -datafiles = package_files('csoundengine/data') - - -setup( - name='csoundengine', - python_requires=">=3.9", - version=".".join(map(str, version)), - description='A synthesis framework using csound', - long_description=long_description, - author='Eduardo Moguillansky', - author_email='eduardo.moguillansky@gmail.com', - url='https://github.com/gesellkammer/csoundengine', - packages=[ - 'csoundengine', - ], - install_requires=[ - "numpy", - "scipy", - "matplotlib", - "cachetools", - "JACK-client", - "appdirs", - "pygments", - "sf2utils", - "ipywidgets", - "progressbar2", - "xxhash", - "docstring_parser", - "typing_extensions", - - "ctcsound7>=0.4.6", - "sndfileio>=1.9.4", - "emlib>=1.15.0", - "configdict>=2.10.0", - "bpf4>=1.10.1", - "numpyx>=1.3.3", - "pitchtools>=1.14.0", - "risset>=2.9.1", - "sounddevice" - ], - license="BSD", - classifiers=[ - 'Intended Audience :: Developers', - 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)' - ], - package_data={'csoundengine': datafiles}, - include_package_data=True, - zip_safe=False -)