Skip to content

Commit 00fec25

Browse files
committed
fix version
1 parent 33faa81 commit 00fec25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# -*- coding: utf-8 -*-
22

3+
import os
34
import sys
45
from io import open
56

67
from setuptools import find_packages, setup
78
from setuptools.command.test import test as TestCommand
89

910
version = "2.0.1"
11+
github_ref = os.getenv("GITHUB_REF")
12+
if github_ref and github_ref.startswith("refs/tags"):
13+
version = github_ref[10:]
1014

1115

1216
def read_description():

0 commit comments

Comments
 (0)