Skip to content

Commit 5ea2bac

Browse files
author
Coding With Shawn
committed
Update setup.py
1 parent d1ebe07 commit 5ea2bac

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

setup.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,13 @@ def load_requirements(file_name):
1616
'file changes, diffs, and source code, and supports exporting data to CSV format.'
1717
)
1818

19-
# Fetching the version from the package's __init__.py
20-
def fetch_version():
21-
init_path = path.join(path.dirname(__file__), 'gitanalyzer', '__init__.py')
22-
with open(init_path) as file:
23-
for line in file:
24-
if line.startswith('__version__'):
25-
version_delimiter = '"' if '"' in line else "'"
26-
return line.split(version_delimiter)[1]
27-
raise RuntimeError("Version string not found.")
28-
2919
setup(
3020
name='GitAnalyzer',
3121
description='A toolkit for Mining Software Repositories (MSR)',
3222
long_description=detailed_description,
3323
author='Shawn Ray',
3424
author_email='shawnray5699@gmail.com',
35-
version=fetch_version(),
25+
version='1.0.0', # Hardcoded version
3626
packages=find_packages('.', exclude=['tests*']),
3727
url='https://github.com/codingwithshawnyt/GitAnalyzer', # Assuming the URL remains unchanged
3828
license='Apache License',

0 commit comments

Comments
 (0)