-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
32 lines (27 loc) · 1.04 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
# type: ignore
import subprocess
import setuptools
with open('README.md', 'r', encoding="utf8") as fh:
long_description = fh.read().replace('](', '](https://raw.githubusercontent.com/FarisHijazi/localCopilot/master/')
with open('requirements.txt', 'r', encoding="utf8") as fh:
requirements = fh.readlines()
version = subprocess.Popen('git describe --abbrev=0 --tags', shell=True, stdout=subprocess.PIPE).stdout.read().decode().strip().lstrip('v')
setuptools.setup(
name='localCopilot',
version=version,
description='An OSS drop-in replacement for GitHub Copilot using oobabooga',
long_description=long_description,
url='https://github.com/FarisHijazi/localCopilot',
author='Faris Hijazi',
author_email='[email protected]',
long_description_content_type='text/markdown',
packages=setuptools.find_packages(),
python_requires='>=3.6',
install_requires=requirements,
keywords='',
entry_points={
'console_scripts': [
'localCopilot=localCopilot.middleware:main',
]
},
)