-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
57 lines (50 loc) · 1.56 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import json
from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def load_requirements_from_pipfile_lock(dev: bool):
with open("Pipfile.lock") as f:
pipfile_lock = json.load(f)
if dev:
mode = "develop"
else:
mode = "default"
return [
f"{pkg_name}{pkg_info['version']}"
for pkg_name, pkg_info in pipfile_lock[mode].items()
]
setup(
name="botsh",
version="0.1.7",
description="A task runner powered by OpenAI and Docker.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Paul Butler",
author_email="[email protected]",
url="https://github.com/drifting-in-space/botsh",
packages=find_packages("src"),
package_data={
"": ["Pipfile", "Pipfile.lock"],
},
include_package_data=True,
package_dir={"": "src"},
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
python_requires=">=3.6",
install_requires=load_requirements_from_pipfile_lock(False),
extras_require={
"dev": load_requirements_from_pipfile_lock(True),
},
entry_points={
"console_scripts": [
"botsh=botsh.main:main",
],
},
)