From ffb70cebcbf8ae2194968677c5d226a1d155704b Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Tue, 3 Jun 2025 19:33:07 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20chore:=20migrate=20build=20system?= =?UTF-8?q?=20from=20pbr=20to=20hatchling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mohammed Naser --- atmosphere/__init__.py | 6 ------ pyproject.toml | 11 ++++------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/atmosphere/__init__.py b/atmosphere/__init__.py index 5b8c56f3..e69de29b 100644 --- a/atmosphere/__init__.py +++ b/atmosphere/__init__.py @@ -1,6 +0,0 @@ -# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. -# SPDX-License-Identifier: Apache-2.0 - -import pbr.version - -__version__ = pbr.version.VersionInfo("atmosphere").release_string() diff --git a/pyproject.toml b/pyproject.toml index 697b746c..281b894b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["pbr>=6.1.1"] -build-backend = "pbr.build" +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" [project] name = "atmosphere" @@ -46,8 +46,5 @@ source = "https://github.com/vexxhost/atmosphere" documentation = "https://vexxhost.github.io/atmosphere/" issues = "https://github.com/vexxhost/atmosphere/issues" -[tool.setuptools] -packages = ["atmosphere"] - -[tool.setuptools.dynamic] -version = {attr = "atmosphere.__version__"} +[tool.hatch.version] +source = "vcs"