diff --git a/MANIFEST.in b/MANIFEST.in index f8cd901..eebba29 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,7 @@ include README.md include CHANGELOG.md -include ear/core/data/README.md include LICENSE include doc/layout_file.md include tox.ini + +graft ear diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..30855b4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,49 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "ear" +description = 'EBU ADM Renderer' +version = '2.1.0' +authors = [ + {name = "EBU", email = "ear-admin@list.ebu.ch"}, +] +license = {file = "LICENSE"} # BSD-3-Clause-Clear +requires-python = ">=3.7" +dynamic = ["readme"] + +dependencies = [ + 'numpy~=1.14', + 'scipy~=1.0', + 'attrs>=22.2', + 'PyYAML~=6.0', + 'lxml~=4.4', + 'six~=1.11', + 'multipledispatch~=1.0', + # required until 2024-10 when python 3.9 will be the minimum supported version + 'importlib_resources>=5.0', +] + +[project.optional-dependencies] +test = [ + 'pytest~=6.2', + 'pytest-datafiles~=2.0', + 'pytest-cov~=3.0', + 'soundfile~=0.10', +] +dev = [ + 'flake8~=3.5', + 'flake8-print~=3.1', + 'flake8-string-format~=0.2', +] + +[project.scripts] +ear-render = "ear.cmdline.render_file:main" +ear-utils = "ear.cmdline.utils:main" + +[tool.setuptools.packages.find] +include = ["ear", "ear.*"] + +[tool.setuptools.dynamic] +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} diff --git a/setup.py b/setup.py deleted file mode 100644 index 90b93ff..0000000 --- a/setup.py +++ /dev/null @@ -1,61 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name='ear', - description='EBU ADM Renderer', - version='2.1.0', - - url='https://github.com/ebu/ebu_adm_renderer', - - author='EBU', - author_email='ear-admin@list.ebu.ch', - license='BSD-3-Clause-Clear', - - long_description=open('README.md').read() + '\n' + open('CHANGELOG.md').read(), - long_description_content_type='text/markdown', - - install_requires=[ - 'numpy~=1.14', - 'scipy~=1.0', - 'attrs>=22.2', - 'PyYAML~=6.0', - 'lxml~=4.4', - 'six~=1.11', - 'multipledispatch~=1.0', - # required until 2024-10 when python 3.9 will be the minimum supported version - 'importlib_resources>=5.0', - ], - - extras_require={ - 'test': [ - 'pytest~=6.2', - 'pytest-datafiles~=2.0', - 'pytest-cov~=3.0', - 'soundfile~=0.10', - ], - 'dev': [ - 'flake8~=3.5', - 'flake8-print~=3.1', - 'flake8-string-format~=0.2', - ], - }, - - packages=find_packages(), - - package_data={ - "ear.test": ["data/*.yaml", "data/*.wav"], - "ear.core": ["data/*.yaml", "data/*.dat"], - "ear.core.test": ["data/psp_pvs/*.npz"], - "ear.core.objectbased.test": ["data/gain_calc_pvs/*"], - "ear.fileio.adm": ["data/*.xml"], - "ear.fileio.adm.test": ["test_adm_files/*.xml"], - "ear.fileio.bw64.test": ["test_wav_files/*.wav"], - }, - - entry_points={ - 'console_scripts': [ - 'ear-render = ear.cmdline.render_file:main', - 'ear-utils = ear.cmdline.utils:main' - ] - }, -)