Skip to content

Commit 2ad6e5e

Browse files
authored
Merge pull request #162 from codelion/fix-version-info
Update setup.py
2 parents 70ff4de + 6790041 commit 2ad6e5e

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

optillm/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
# Version information
5-
__version__ = "0.1.3"
5+
__version__ = "0.1.4"
66

77
# Get the path to the root optillm.py
88
spec = util.spec_from_file_location(

setup.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1+
import os
12
from setuptools import setup, find_packages
23

3-
def read_version():
4-
version_dict = {}
5-
try:
6-
with open('optillm/__init__.py', 'r') as f:
7-
exec(f.read(), version_dict)
8-
return version_dict.get('__version__', 'unknown')
9-
except Exception:
10-
return 'unknown'
11-
124
setup(
135
name="optillm",
14-
version="0.1.2",
15-
packages=find_packages(),
6+
version="0.1.4",
7+
packages=find_packages(include=['optillm', 'optillm.*']), # This ensures all subpackages are included
168
py_modules=['optillm'],
179
package_data={
1810
'optillm': [

0 commit comments

Comments
 (0)