Commit 842cf90 1 parent acfa693 commit 842cf90 Copy full SHA for 842cf90
File tree 2 files changed +4
-18
lines changed
2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 2
2
requires = [' setuptools' , ' setuptools-scm' , ' wheel' ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
+ [tool .setuptools_scm ]
6
+ version_scheme = " post-release"
7
+
8
+
5
9
[project ]
6
10
name = " pytsql"
7
11
description = " `Pytsql` allows to run mssql sripts, typically run via GUIs, via CLI."
Original file line number Diff line number Diff line change 3
3
from time import time
4
4
5
5
import setuptools
6
- from setuptools_scm .version import ScmVersion
7
-
8
-
9
- def get_dev_timestamp (version : ScmVersion ) -> str :
10
- """Return a new distribution version string.
11
-
12
- Returns the version found in the git tag if currently checked out commit has a tag.
13
- Otherwise, returns the version found in the most recent git tag, appended with
14
- `dev` and the current timestamp in seconds.
15
- """
16
-
17
- if version .exact :
18
- return version .format_with ("{tag}" )
19
- return version .format_with (f"{{tag}}.dev{ int (time ())} " )
20
6
21
7
22
8
def get_platform () -> str :
@@ -61,10 +47,6 @@ def create_extension() -> setuptools.Extension:
61
47
def run_setup ():
62
48
setuptools .setup (
63
49
ext_modules = [create_extension ()],
64
- use_scm_version = {
65
- "version_scheme" : get_dev_timestamp ,
66
- "local_scheme" : "dirty-tag" ,
67
- },
68
50
)
69
51
70
52
You can’t perform that action at this time.
0 commit comments