-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (55 loc) · 1.56 KB
/
setup.py
File metadata and controls
61 lines (55 loc) · 1.56 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import os
import subprocess
from setuptools import find_packages, setup
from setuptools.command.install import install
with open("README.md", "r") as fh:
long_description = fh.read()
class CustomInstallCommand(install):
def run(self):
install.run(self)
script_path = os.path.join(
os.path.dirname(__file__), "scripts", "create_dcommit.py"
)
subprocess.call(["python3", script_path])
setup(
name="DevCommit",
version="0.1.4.3",
author="HordunTech",
author_email="horduntech@gmail.com",
description=""" A command-line AI tool for autocommits """,
long_description_content_type="text/markdown",
long_description=long_description,
url="https://github.com/hordunlarmy/DevCommit",
packages=find_packages(),
install_requires=[
"inquirerpy",
"google-generativeai",
"openai>=1.0.0",
"anthropic>=0.25.0",
"rich",
"python-decouple",
"requests",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
entry_points={
"console_scripts": [
"devcommit=devcommit.main:main",
"create-dcommit=scripts.create_dcommit:create_dcommit",
],
},
include_package_data=True,
package_data={
"": ["*.dcommit"],
},
data_files=[
("scripts", ["scripts/create_dcommit.py"]),
],
cmdclass={
"install": CustomInstallCommand,
},
)