Skip to content

Commit 02d166d

Browse files
committed
📦 🔧 add setup.py to pack flowlauncher
1 parent 1dc903d commit 02d166d

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include MANIFEST.in
2+
include README.md

setup.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# -*- coding: utf-8 -*-
2+
3+
import os
4+
5+
from setuptools import find_packages, setup
6+
7+
8+
NAME = "flowlauncher"
9+
10+
SHORT_DESCRIPTION = __import__(NAME).__short_description__
11+
LONG_DESCRIPTION = open("README.md", "r").read()
12+
13+
VERSION = __import__(NAME).__version__
14+
15+
AUTHOR = "Flow-Launcher"
16+
AUTHOR_EMAIL = "Zeroto521@gmail.com"
17+
MAINTAINER = "Zero"
18+
MAINTAINER_EMAIL = "Zeroto521@gmail.com"
19+
20+
URL = "https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python"
21+
DOWNLOAD_URL = "https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/archive/master.zip"
22+
23+
LICENSE = __import__(NAME).__license__
24+
25+
PLATFORMS = ["Windows"]
26+
CLASSIFIERS = [
27+
"Development Status :: 3 - Alphaa",
28+
29+
"Intended Audience :: Developers",
30+
31+
"License :: OSI Approved :: MIT License",
32+
33+
"Natural Language :: English",
34+
35+
"Operating System :: Microsoft :: Windows",
36+
"Operating System :: Microsoft :: Windows :: Windows 10",
37+
38+
"Programming Language :: Python",
39+
"Programming Language :: Python :: 3",
40+
"Programming Language :: Python :: 3 :: Only",
41+
"Programming Language :: Python :: 3.6",
42+
"Programming Language :: Python :: 3.7",
43+
"Programming Language :: Python :: 3.8",
44+
"Programming Language :: Python :: 3.9",
45+
46+
"Topic :: Software Development",
47+
"Topic :: Software Development :: Libraries",
48+
"Topic :: Software Development :: Libraries :: Application Frameworks",
49+
]
50+
51+
try:
52+
f = open("requirements.txt", "r")
53+
REQUIRES = [i.strip() for i in f.readlines()]
54+
except:
55+
print("'requirements.txt' not found!")
56+
REQUIRES = []
57+
58+
setup(
59+
name=NAME,
60+
version=VERSION,
61+
author=AUTHOR,
62+
author_email=AUTHOR_EMAIL,
63+
maintainer=MAINTAINER,
64+
maintainer_email=MAINTAINER_EMAIL,
65+
url=URL,
66+
license=LICENSE,
67+
description=SHORT_DESCRIPTION,
68+
long_description=LONG_DESCRIPTION,
69+
long_description_content_type="text/markdown",
70+
platforms=PLATFORMS,
71+
packages=find_packages(),
72+
include_package_data=True,
73+
download_url=DOWNLOAD_URL,
74+
requires=REQUIRES,
75+
classifiers=CLASSIFIERS
76+
)

0 commit comments

Comments
 (0)