diff --git a/.github/workflows/release-and-publish-to-pypi.yml b/.github/workflows/release-and-publish-to-pypi.yml index a8b9395..b289438 100644 --- a/.github/workflows/release-and-publish-to-pypi.yml +++ b/.github/workflows/release-and-publish-to-pypi.yml @@ -32,10 +32,10 @@ jobs: python-version: '3.11' - name: Install dependencies - run: pip install setuptools wheel twine + run: pip install setuptools wheel twine build - name: Build package - run: python setup.py sdist bdist_wheel + run: python -m build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@v1.4.2 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..dd22c13 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "pyFRF" +version = "1.1" +authors = [{name = "Janko Slavič, Luka Novak, Martin Česnik, et al.", email = "janko.slavic@fs.uni-lj.si"}] +maintainers = [{name = "Janko Slavič, Luka Novak, Martin Česnik, et al.", email = "janko.slavic@fs.uni-lj.si"}] +license = "MIT" +description = "Frequency response function as used in structural dynamics." +readme = "readme.rst" +keywords = ["FRF", "MIMO", "SIMO", "ODS"] +requires-python = ">=3.10" + +dependencies = [ + "colorama", + "py", + "lvm_read", + "pyExSi", + "matplotlib", + "numpy>=1.11.0", + "scipy>=1.2.0", +] + +classifiers = [ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'Topic :: Scientific/Engineering', + 'Programming Language :: Python :: 3.10', + "License :: OSI Approved :: MIT License", +] + +[project.optional-dependencies] +dev = [ + "sphinx", + "twine", + "wheel", + "pytest", + "sphinx-rtd-theme", + "nbsphinx", + "nbsphinx_link", + "jupyter", + "sphinx-book-theme", +] + +[project.urls] +homepage = "https://github.com/ladisk/pyFRF" +documentation = "https://pyfrf.readthedocs.io/en/latest/" +source = "https://github.com/ladisk/pyFRF"