-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
51 lines (41 loc) · 1.48 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
import codecs
import os
from setuptools import setup, find_packages
'''
# these things are needed for the README.md show on pypi
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()
'''
here = os.path.abspath(os.path.dirname(__file__))
excluded_folder = "未整理的原批笑话" # Replace with the folder name you want to exclude
long_description = ""
for filename in os.listdir(here):
if filename != excluded_folder and os.path.isfile(os.path.join(here, filename)):
with codecs.open(os.path.join(here, filename), encoding="utf-8") as fh:
long_description += "\n" + fh.read()
VERSION = '2024.6.14'
DESCRIPTION = '原批笑话'
LONG_DESCRIPTION = '有关原神的经典发言'
# Setting up
setup(
name="genshitjokes",
version=VERSION,
author="DreamngCats",
author_email="",
description=DESCRIPTION,
long_description_content_type="text/markdown",
long_description=long_description,
include_package_data=True,
packages=find_packages(),
install_requires=[],
keywords=['python','genshitjokes','genshit_jokes','genshin_impact'],
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
)