5
5
6
6
from setuptools import find_packages , setup
7
7
8
- VERSION = "1.2.2 "
8
+ VERSION = "1.2.3 "
9
9
10
10
# add the README.md file to the long_description
11
11
with open ("README.md" , "r" ) as fh :
@@ -70,7 +70,7 @@ def get_cuda_version():
70
70
"typing" ,
71
71
dali ,
72
72
# PyPI does not support direct dependencies, so we remove this line before uploading from PyPI
73
- # "segment_anything @ git+https://github.com/facebookresearch/segment-anything.git",
73
+ "segment_anything @ git+https://github.com/facebookresearch/segment-anything.git" ,
74
74
]
75
75
76
76
# additional requirements
@@ -91,17 +91,9 @@ def get_cuda_version():
91
91
},
92
92
}
93
93
94
- # collect all data and script files
95
- data_files = []
96
- for root , dirs , files in os .walk ("data" ):
97
- data_files .extend ([os .path .join (root , f ) for f in files ])
98
- for root , dirs , files in os .walk ("scripts" ):
99
- data_files .extend ([os .path .join (root , f ) for f in files ])
100
-
101
-
102
94
setup (
103
95
name = "lightning-pose" ,
104
- packages = find_packages (exclude = ( "data" , "docs" , "scripts" , "tests" )),
96
+ packages = find_packages () + [ "mirror_mouse_example" ], # include data for wheel packaging
105
97
version = VERSION ,
106
98
description = "Semi-supervised pose estimation using pytorch lightning" ,
107
99
long_description = long_description ,
@@ -112,6 +104,9 @@ def get_cuda_version():
112
104
author_email = "danbider@gmail.com" ,
113
105
url = "https://github.com/danbider/lightning-pose" ,
114
106
keywords = ["machine learning" , "deep learning" , "computer_vision" ],
115
- package_data = {"" : data_files },
116
- include_package_data = True ,
107
+ package_dir = {
108
+ "lightning_pose" : "lightning_pose" ,
109
+ "mirror_mouse_example" : "data/mirror-mouse-example" , # remap 'data/mirror-mouse-example'
110
+ },
111
+ include_package_data = True , # required to get the non-.py data files in the wheel
117
112
)
0 commit comments