diff --git a/bump.jl b/bump.jl index f02f6913..527740eb 100644 --- a/bump.jl +++ b/bump.jl @@ -22,7 +22,7 @@ function bumpver(file, pattern, oldver, newver) end bumpver("Project.toml", "version = \"{}\"\n", oldver, newver) -bumpver("setup.cfg", "version = {}\n", oldver, newver) +bumpver("pyproject.toml", "version = \"{}\"\n", oldver, newver) bumpver("pysrc/juliacall/__init__.py", "__version__ = '{}'\n", oldver, newver) bumpver("pysrc/juliacall/juliapkg.json", "\"version\": \"={}\"", oldver, newver) bumpver("pysrc/juliacall/juliapkg-dev.json", "\"version\": \"={}\"", oldver, newver) diff --git a/pyproject.toml b/pyproject.toml index 8fe2f47a..ffd69434 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,26 @@ [build-system] requires = ["setuptools>=42", "wheel"] build-backend = "setuptools.build_meta" + +[project] +name = "juliacall" +version = "0.9.23" +description = "Julia and Python in seamless harmony" +readme = { file = "README.md", content-type = "text/markdown" } +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent" +] +requires-python = ">=3.8" +dependencies = ["juliapkg ~=0.1.8"] + +[tool.setuptools] +zip-safe = false + +[tool.setuptools.packages.find] +where = ["pysrc"] +include = ["juliacall"] + +[tool.setuptools.package-data] +"juliacall" = ["*.json", "*.jl"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 54c6d93a..00000000 --- a/setup.cfg +++ /dev/null @@ -1,25 +0,0 @@ -[metadata] -name = juliacall -version = 0.9.23 -description = Julia and Python in seamless harmony -long_description = file: README.md -long_description_content_type = text/markdown -url = http://github.com/JuliaPy/PythonCall.jl -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: MIT License - Operating System :: OS Independent - -[options] -zip_safe = False -package_dir = - =pysrc -packages = juliacall -python_requires = ~=3.8 -install_requires = - juliapkg ~=0.1.8 - -[options.package_data] -juliacall = - *.json - *.jl