Skip to content

Commit

Permalink
Switch to pyproject.toml (#545)
Browse files Browse the repository at this point in the history
* build: switch to pyproject.toml

* build: update `bump.jl` with pyproject.toml

* build: move homepage spec
  • Loading branch information
MilesCranmer authored Sep 5, 2024
1 parent ce54b86 commit a61c022
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bump.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]
25 changes: 0 additions & 25 deletions setup.cfg

This file was deleted.

0 comments on commit a61c022

Please sign in to comment.