Skip to content

Commit

Permalink
Simplify the scm_setuptools version by a lot.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Dec 6, 2024
1 parent 73fd1e9 commit 0e4f64c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import os.path as op
import string

from setuptools import setup
from setuptools_scm import get_version


def local_version(version):
"""Patch in a version that can be uploaded to test PyPI."""
scm_version = get_version()
if "dev" in scm_version:
gh_in_int = []
for char in version.node:
if char.isdigit():
gh_in_int.append(str(char))
else:
gh_in_int.append(str(string.ascii_letters.find(char)))
return "".join(gh_in_int)
else:
return ""
return ""


opts = {
Expand Down

0 comments on commit 0e4f64c

Please sign in to comment.