@@ -25,7 +25,7 @@ def get_requirements(fname):
25
25
return open (fname ).readlines ()
26
26
27
27
28
- def build_setup (name , package_name , version_path , package_base ,
28
+ def build_setup (package_base , package_name , version_path ,
29
29
package_data = None , script_args = None ):
30
30
if package_data is None :
31
31
package_data = {}
@@ -35,13 +35,14 @@ def build_setup(name, package_name, version_path, package_base,
35
35
requirements_path = os .path .join (base_path , package_base , "requirements.txt" )
36
36
if os .path .exists (requirements_path ):
37
37
install_requires = get_requirements (requirements_path )
38
+ # include requirementst.txt as part of package
38
39
if package_base not in package_data :
39
40
package_data [package_base ] = []
40
41
package_data [package_base ].append ('requirements.txt' )
41
42
else :
42
43
install_requires = []
43
44
44
- test_requirements_path = os .path .join (base_path , "tests" , name ,
45
+ test_requirements_path = os .path .join (base_path , "tests" , package_base ,
45
46
"requirements.txt" )
46
47
extras_require = {}
47
48
if os .path .exists (test_requirements_path ):
@@ -73,19 +74,17 @@ def build_setup(name, package_name, version_path, package_base,
73
74
74
75
75
76
def build_setup_server (script_args = None ):
76
- build_setup (name = 'server' ,
77
+ build_setup (package_base = 'server' ,
77
78
package_name = 'rematch-server' ,
78
79
version_path = './' ,
79
- package_base = 'server' ,
80
80
script_args = script_args )
81
81
82
82
83
83
def build_setup_idaplugin (script_args = None ):
84
84
package_data = {'idaplugin/rematch' : ['images/*' ]}
85
- build_setup (name = 'idaplugin' ,
85
+ build_setup (package_base = 'idaplugin' ,
86
86
package_name = 'rematch-idaplugin' ,
87
87
version_path = 'rematch' ,
88
- package_base = 'idaplugin' ,
89
88
package_data = package_data ,
90
89
script_args = script_args )
91
90
0 commit comments