-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (57 loc) · 1.96 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
58
59
60
61
62
63
64
65
from os import path
from setuptools import find_packages, setup
# Get current directory
here = path.abspath(path.dirname(__file__))
# Read requirements from requirements.txt
def get_requirements():
requirements = []
try:
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
requirements = [line.strip() for line in f if line.strip() and not line.startswith("#")]
except FileNotFoundError:
print("Warning: requirements.txt not found")
return requirements
# Read README for long description
def get_long_description():
try:
with open(path.join(here, "README.md"), encoding="utf-8") as f:
return f.read()
except FileNotFoundError:
return ""
setup(
name="minionx", # Replace with your package name
version="0.1.0",
description="A short description of your package",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="femto",
author_email="femtowin@gmail",
# Project URLs
url="https://github.com/femto/minion",
# Find packages automatically
packages=find_packages(exclude=["tests*"]),
# Include non-Python files from MANIFEST.in
include_package_data=True,
# Project dependencies
install_requires=get_requirements(),
# Python version requirement
python_requires=">=3.8",
# Classifiers help users find your project
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
entry_points={
"console_scripts": [
"minion=minion.cli:app",
],
},
# Keywords for PyPI
keywords="development, setup",
)