Skip to content

Commit

Permalink
[-] Update version scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
andriykislitsyn committed Jun 8, 2023
1 parent 9060d74 commit 92fccdf
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from setuptools import setup

test_deps = [
Expand All @@ -7,12 +9,9 @@
"pytest-forked>=1.0.1",
]


def datarobot_version_scheme():
def _datarobot_scheme(version):
return '+dr'

return {'version_scheme': 'python-simplified-semver', 'local_scheme': _datarobot_scheme}
CURRENT_SCM_PRETEND_VERSION = os.environ.get("SETUPTOOLS_SCM_PRETEND_VERSION")
if CURRENT_SCM_PRETEND_VERSION is not None:
os.environ["SETUPTOOLS_SCM_PRETEND_VERSION"] = f"{CURRENT_SCM_PRETEND_VERSION}+dr"


setup(
Expand Down Expand Up @@ -47,5 +46,5 @@ def _datarobot_scheme(version):
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
use_scm_version=datarobot_version_scheme,
use_scm_version=dict(version_scheme="python-simplified-semver", local_scheme="no-local-version"),
)

0 comments on commit 92fccdf

Please sign in to comment.