-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (40 loc) · 1.43 KB
/
setup.py
File metadata and controls
44 lines (40 loc) · 1.43 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
from setuptools import setup, find_packages
# Read the contents of your README file for the long description
with open("README.md", "r") as fh:
long_description = fh.read()
# Function to parse requirements.txt
def parse_requirements(filename):
with open(filename, "r") as f:
lines = f.readlines()
return [line.strip() for line in lines if line.strip() and not line.startswith("#")]
# Parse the requirements
install_requires = parse_requirements("requirements.txt")
setup(
name="optionk",
version="1.0.0",
description="Option-K CLI and server application",
long_description=long_description,
long_description_content_type="text/markdown",
author="Alex",
author_email="coredrop@protonmail.com",
license="MIT",
packages=find_packages(include=["client", "server"]),
install_requires=install_requires,
entry_points={
'console_scripts': [
'opk = client.opk:main', # Replace `main` with the actual entry point
'opk-server = server.opk_server:main', # Replace `main` with the actual entry point
],
},
# Additional files to include
package_data={
'optionk': ['config.ini', 'scripts/*.plist', 'scripts/*.sh'],
},
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.12',
)