Skip to content

Commit a61c022

Browse files
authored
Switch to pyproject.toml (#545)
* build: switch to pyproject.toml * build: update `bump.jl` with pyproject.toml * build: move homepage spec
1 parent ce54b86 commit a61c022

File tree

3 files changed

+24
-26
lines changed

3 files changed

+24
-26
lines changed

bump.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function bumpver(file, pattern, oldver, newver)
2222
end
2323

2424
bumpver("Project.toml", "version = \"{}\"\n", oldver, newver)
25-
bumpver("setup.cfg", "version = {}\n", oldver, newver)
25+
bumpver("pyproject.toml", "version = \"{}\"\n", oldver, newver)
2626
bumpver("pysrc/juliacall/__init__.py", "__version__ = '{}'\n", oldver, newver)
2727
bumpver("pysrc/juliacall/juliapkg.json", "\"version\": \"={}\"", oldver, newver)
2828
bumpver("pysrc/juliacall/juliapkg-dev.json", "\"version\": \"={}\"", oldver, newver)

pyproject.toml

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
11
[build-system]
22
requires = ["setuptools>=42", "wheel"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "juliacall"
7+
version = "0.9.23"
8+
description = "Julia and Python in seamless harmony"
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
classifiers = [
11+
"Programming Language :: Python :: 3",
12+
"License :: OSI Approved :: MIT License",
13+
"Operating System :: OS Independent"
14+
]
15+
requires-python = ">=3.8"
16+
dependencies = ["juliapkg ~=0.1.8"]
17+
18+
[tool.setuptools]
19+
zip-safe = false
20+
21+
[tool.setuptools.packages.find]
22+
where = ["pysrc"]
23+
include = ["juliacall"]
24+
25+
[tool.setuptools.package-data]
26+
"juliacall" = ["*.json", "*.jl"]

setup.cfg

-25
This file was deleted.

0 commit comments

Comments
 (0)