File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,9 @@ find_package(Python3 COMPONENTS Development)
11
11
include (GNUInstallDirs )
12
12
find_package (PkgConfig )
13
13
14
-
15
- execute_process (COMMAND git describe --tags --long --always RESULT_VARIABLE RC_GIT_VER OUTPUT_VARIABLE GIT_VERSION )
16
-
17
- if (${RC_GIT_VER} EQUAL 0 )
18
- string (STRIP ${GIT_VERSION} GIT_VERSION )
19
- message ("-- Version: " ${GIT_VERSION} )
20
- add_definitions (-DVERSION=\" ${GIT_VERSION} \" )
21
- endif ()
14
+ file (READ "version" VERSION_CONTENTS )
15
+ string (STRIP "${VERSION_CONTENTS} " VERSION )
16
+ add_definitions (-DVERSION= "${VERSION} " )
22
17
23
18
set (SOURCE_FILES_CLIENT ydotool/ydotool.c ydotool/pydotool.c )
24
19
Original file line number Diff line number Diff line change
1
+ include CMakeLists.txt
2
+ include version
3
+ recursive-include ydotool *
Original file line number Diff line number Diff line change @@ -51,9 +51,12 @@ def build_extensions(self):
51
51
with open ("README.md" , "r" ) as fh :
52
52
long_description = fh .read ()
53
53
54
+ with open ("version" , "r" ) as version_file :
55
+ version = version_file .read ().strip ()
56
+
54
57
setup (
55
58
name = 'python-ydotool' ,
56
- version = "v1.0.4" ,
59
+ version = version ,
57
60
ext_modules = [
58
61
CMakeExtension (name = '_pydotool' ),
59
62
],
@@ -62,6 +65,7 @@ def build_extensions(self):
62
65
'Bug Tracker' : 'https://github.com/Antares0982/pydotool/issues' ,
63
66
'Source Code' : 'https://github.com/Antares0982/pydotool' ,
64
67
},
68
+ include_package_data = True ,
65
69
description = 'ydotool client implemented in Python' ,
66
70
long_description = long_description ,
67
71
long_description_content_type = 'text/markdown' ,
Original file line number Diff line number Diff line change
1
+ v1.0.4.post1
You can’t perform that action at this time.
0 commit comments