Skip to content

Commit 4e43720

Browse files
committed
chore: switch from setuptools to uv
1 parent ce85ee7 commit 4e43720

9 files changed

Lines changed: 743 additions & 54 deletions

File tree

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

pyproject.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
[project]
6+
name = "mozconfigwrapper"
7+
version = "1.0.0"
8+
description = "Utility to make working with mozconfigs easier"
9+
readme = "README.md"
10+
license = "MPL-2.0"
11+
authors = [
12+
{ name = "Andrew Halberstadt", email = "ahal@pm.me" },
13+
]
14+
requires-python = ">=3.5"
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Environment :: Console",
18+
"Intended Audience :: Developers",
19+
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
20+
"Operating System :: POSIX",
21+
"Programming Language :: Python :: 3",
22+
"Topic :: Software Development :: Libraries :: Python Modules",
23+
]
24+
25+
[project.urls]
26+
Homepage = "http://github.com/ahal/mozconfigwrapper"
27+
28+
[project.scripts]
29+
mozconfig = "mozconfigwrapper:mozconfig"
30+
31+
[dependency-groups]
32+
dev = [
33+
"pytest",
34+
]
35+
36+
[tool.uv.build-backend.data]
37+
scripts = "src/scripts"
38+
39+
[build-system]
40+
requires = ["uv-build"]
41+
build-backend = "uv_build"

setup.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def repo_root():
1212

1313
@pytest.fixture(scope="module")
1414
def mozconfigwrapper_sh(repo_root):
15-
return repo_root / "mozconfigwrapper.sh"
15+
return repo_root / "src" / "scripts" / "mozconfigwrapper.sh"
1616

1717

1818
@pytest.fixture
@@ -24,7 +24,7 @@ def home(tmp_path):
2424
def env(repo_root, home):
2525
return {
2626
"BUILDWITH_HOME": str(home),
27-
"PYTHONPATH": str(repo_root),
27+
"PYTHONPATH": str(repo_root / "src"),
2828
}
2929

3030

uv.lock

Lines changed: 700 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)