-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
42 lines (38 loc) · 1.26 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
from setuptools import find_packages, setup
# Dynamically fetch the version from a version file or environment
def get_version():
version_file = os.path.join(os.path.dirname(__file__), "VERSION")
if os.path.exists(version_file):
with open(version_file, "r") as f:
version = f.read().strip()
# Remove any extraneous quotes
return version.strip('"').strip("'")
return "0.0.0" # Default fallback version
setup(
name='siphon-cli',
version=get_version(), # Fetch the dynamic version
author='Morgan Joyce',
author_email='[email protected]',
description='A tool to efficiently extract and compress Git repository contents for LLMs.',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/atxtechbro/siphon',
packages=find_packages(),
py_modules=['siphon'],
install_requires=[
'gitpython',
'colorama',
],
entry_points={
'console_scripts': [
'si=siphon:main',
],
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
)