Skip to content

Commit 522182d

Browse files
committed
We will build a sdist for pypi upload
1 parent 37b2f27 commit 522182d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

hatch_build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def initialize(self, version, build_data):
3131
We can download & extract the .deb here, and place
3232
mscl.py and _mscl.so into src/mscl_pip/.
3333
"""
34+
if self.target_name != "wheel":
35+
return
36+
3437
build_data["pure_python"] = False
3538
self.app.display_info(f"Running on {version=} and {build_data=}")
3639
self.app.display_info(self.target_name)

pyproject.toml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ authors = [
77
{ name = "Harshil", email = "37377066+harshil21@users.noreply.github.com" }
88
]
99
requires-python = ">=3.9"
10+
classifiers = [
11+
"Development Status :: 4 - Beta",
12+
"Intended Audience :: Developers",
13+
"License :: OSI Approved :: MIT License",
14+
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.9",
16+
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
20+
"Topic :: Scientific/Engineering",
21+
"Intended Audience :: Developers",
22+
]
1023
dependencies = []
1124

1225
[dependency-groups]
@@ -25,8 +38,8 @@ artifacts = [
2538
[tool.hatch.build.hooks.custom]
2639
path = "hatch_build.py"
2740

28-
[tool.hatch.build.targets.sdist] # We're not going to be building an sdist, but including this just in case
29-
exclude = ["mscl_release_assets/", "build_helpers/", "hatch_build.py"]
41+
[tool.hatch.build.targets.sdist]
42+
exclude = ["mscl_release_assets/", "uv.lock", "main.py"]
3043

3144
[build-system]
3245
requires = ["hatchling", "requests", "pygithub"]

0 commit comments

Comments
 (0)