Skip to content

Commit ba77b36

Browse files
committed
change build system
1 parent 5ae046f commit ba77b36

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
with:
2121
python-version: "3.10"
2222

23-
- name: Install hatch
24-
run: pip install hatch
23+
- name: Install build tooling
24+
run: pip install build setuptools setuptools_scm
2525

2626
- name: Build wheel and sdist
27-
run: hatch build
27+
run: python -m build
2828

2929
- name: Publish to PyPI
3030
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["hatchling>=1.24.0", "hatch-vcs>=0.4"]
3-
build-backend = "hatchling.build"
2+
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=8"]
3+
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cosmic-torch"
@@ -26,9 +26,8 @@ Homepage = "https://github.com/BorgwardtLab/Cosmo"
2626
Repository = "https://github.com/BorgwardtLab/Cosmo"
2727
Issues = "https://github.com/BorgwardtLab/Cosmo/issues"
2828

29-
[tool.hatch.build.targets.wheel]
30-
packages = ["cosmic"]
29+
[tool.setuptools.packages.find]
30+
include = ["cosmic", "cosmic.*"]
3131

32-
[tool.hatch.version]
33-
source = "vcs"
32+
[tool.setuptools_scm]
3433

0 commit comments

Comments
 (0)