From 067a8d2210b78b60a5ea6e15ab596d5fbe36b939 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 21 Oct 2023 11:32:17 +0200 Subject: [PATCH 1/2] chore: remove `versioneer` related code from `setup.py` --- setup.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/setup.py b/setup.py index f6d7d17..ab7c4a9 100755 --- a/setup.py +++ b/setup.py @@ -1,18 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import os -import sys from distutils.text_file import TextFile from skbuild import setup -# Add current folder to path -# This is required to import versioneer in an isolated pip build -# Prepending allows not to break on a non-isolated build when versioneer -# is already installed (c.f. https://github.com/scikit-build/cmake-python-distributions/issues/171) -sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) - with open('README.rst', 'r') as fp: readme = fp.read() From 0f60ef4edc65154327cf90b6ee04b9dd219f6482 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 22 Oct 2023 12:32:28 +0200 Subject: [PATCH 2/2] remove some missed versioneer related code --- MANIFEST.in | 2 +- pyproject.toml | 2 +- setup.cfg | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index f5b5e8d..f4adf95 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -8,7 +8,7 @@ include LICENSE_Apache_20 recursive-exclude _skbuild * recursive-exclude Ninja-src * -include versioneer.py include src/ninja/_version.py +include src/ninja/_version.pyi include src/ninja/__init__.pyi include src/ninja/py.typed diff --git a/pyproject.toml b/pyproject.toml index 6af9975..be49ce6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ unfixable = [ "T20", # Removes print statements "F841", # Removes unused variables ] -exclude = ["versioneer.py", "src/ninja/version.py"] +exclude = ["src/ninja/version.py"] flake8-unused-arguments.ignore-variadic-names = true [tool.ruff.per-file-ignores] diff --git a/setup.cfg b/setup.cfg index 1907bd2..0cd9906 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,10 +1,3 @@ [tool:pytest] testpaths = tests addopts = -v --cov --cov-report xml - -[versioneer] -VCS = git -versionfile_source = src/ninja/_version.py -versionfile_build = ninja/_version.py -style = pep440-post -tag_prefix = ''