tjw 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tjw-1.0.1/LICENSE +21 -0
- tjw-1.0.1/PKG-INFO +45 -0
- tjw-1.0.1/README.md +23 -0
- tjw-1.0.1/setup.cfg +4 -0
- tjw-1.0.1/setup.py +52 -0
- tjw-1.0.1/src/__init__.py +5 -0
- tjw-1.0.1/src/core.py +5 -0
- tjw-1.0.1/tests/__init__.py +0 -0
- tjw-1.0.1/tjw.egg-info/PKG-INFO +45 -0
- tjw-1.0.1/tjw.egg-info/SOURCES.txt +12 -0
- tjw-1.0.1/tjw.egg-info/dependency_links.txt +1 -0
- tjw-1.0.1/tjw.egg-info/not-zip-safe +1 -0
- tjw-1.0.1/tjw.egg-info/requires.txt +1 -0
- tjw-1.0.1/tjw.egg-info/top_level.txt +2 -0
tjw-1.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tjw-pip
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
tjw-1.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tjw
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: 一个 tjw 的私人库
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: saogegood
|
|
7
|
+
Author-email: saogegood@163.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: sgg,test,demo,add_one
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: six>=1.10.0
|
|
22
|
+
|
|
23
|
+
# tjw
|
|
24
|
+
一个私人的tjw类库
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
第一部分:使用频率最高(特别是更新版本)
|
|
29
|
+
最常用内容(如:tjw)
|
|
30
|
+
MAC:
|
|
31
|
+
删除旧打包资料
|
|
32
|
+
MAC: rm -rf dist/ build/ src.egg-info/
|
|
33
|
+
Windows: Remove-Item -Recurse -Force dist, build, src.egg-info -ErrorAction SilentlyContinue
|
|
34
|
+
打包 python setup.py sdist bdist_wheel
|
|
35
|
+
上传 twine upload dist/*
|
|
36
|
+
使用: pip install --upgrade tjw --index-url https://pypi.org/simple/
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
other:
|
|
43
|
+
|
|
44
|
+
注册pypi账号: https://pypi.org/account/register/
|
|
45
|
+
安装打包工具: pip install setuptools wheel twine
|
tjw-1.0.1/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# tjw
|
|
2
|
+
一个私人的tjw类库
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
第一部分:使用频率最高(特别是更新版本)
|
|
7
|
+
最常用内容(如:tjw)
|
|
8
|
+
MAC:
|
|
9
|
+
删除旧打包资料
|
|
10
|
+
MAC: rm -rf dist/ build/ src.egg-info/
|
|
11
|
+
Windows: Remove-Item -Recurse -Force dist, build, src.egg-info -ErrorAction SilentlyContinue
|
|
12
|
+
打包 python setup.py sdist bdist_wheel
|
|
13
|
+
上传 twine upload dist/*
|
|
14
|
+
使用: pip install --upgrade tjw --index-url https://pypi.org/simple/
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
other:
|
|
21
|
+
|
|
22
|
+
注册pypi账号: https://pypi.org/account/register/
|
|
23
|
+
安装打包工具: pip install setuptools wheel twine
|
tjw-1.0.1/setup.cfg
ADDED
tjw-1.0.1/setup.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import os # 导入os模块,用于文件路径和存在性检查(容错处理)
|
|
2
|
+
|
|
3
|
+
from setuptools import setup, find_packages # 导入setuptools核心打包函数
|
|
4
|
+
|
|
5
|
+
# 核心配置常量(统一管理,便于修改)
|
|
6
|
+
PACKAGE_NAME = "tjw" # 包名(PyPI全网唯一,测试包加-test后缀)
|
|
7
|
+
VERSION = "1.0.1" # 版本号(语义化版本,首次发布用1.0.0)
|
|
8
|
+
AUTHOR = "saogegood" # 作者名(建议与PyPI注册账号一致)
|
|
9
|
+
AUTHOR_EMAIL = "saogegood@163.com" # 作者邮箱(必须与PyPI注册邮箱一致)
|
|
10
|
+
SHORT_DESCRIPTION = "一个 tjw 的私人库" # 包简短描述(<100字符)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# 新增:README读取容错(空文件/不存在都不报错)
|
|
14
|
+
def get_long_description(): # 定义README读取函数,核心作用是容错
|
|
15
|
+
readme_path = os.path.join(os.path.dirname(__file__), "README.md") # 拼接README文件的绝对路径
|
|
16
|
+
if os.path.exists(readme_path): # 检查README文件是否存在
|
|
17
|
+
with open(readme_path, "r", encoding="utf-8") as f: # 以UTF-8编码打开README文件
|
|
18
|
+
content = f.read().strip() # 读取文件内容并去除首尾空白字符
|
|
19
|
+
# 若README为空,返回简短描述,否则返回README内容
|
|
20
|
+
return content if content else SHORT_DESCRIPTION
|
|
21
|
+
return SHORT_DESCRIPTION # 无README文件时,返回简短描述
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
setup(
|
|
25
|
+
name=PACKAGE_NAME, # 指定包名(必填,与常量保持一致)
|
|
26
|
+
version=VERSION, # 指定包版本(必填,语义化版本不可重复)
|
|
27
|
+
author=AUTHOR, # 指定作者名(必填,显示在PyPI包页面)
|
|
28
|
+
author_email=AUTHOR_EMAIL, # 指定作者邮箱(必填,PyPI身份验证用)
|
|
29
|
+
description=SHORT_DESCRIPTION, # 指定包简短描述(必填,PyPI搜索结果展示)
|
|
30
|
+
license="MIT", # 指定开源协议(修正:小写l,MIT为最宽松协议)
|
|
31
|
+
long_description=get_long_description(), # 指定包详细描述(容错读取README)
|
|
32
|
+
long_description_content_type="text/markdown", # 指定详细描述格式为Markdown
|
|
33
|
+
url="", # 包源码地址(无GitHub则留空)
|
|
34
|
+
packages=find_packages(include=["src", "tests"]), # 递归查找sgg包及其子包
|
|
35
|
+
classifiers=[ # 包分类标签(帮助PyPI索引,提升可发现性)
|
|
36
|
+
"Development Status :: 3 - Alpha", # 开发状态:测试版(Alpha)
|
|
37
|
+
"Intended Audience :: Developers", # 目标用户:开发者
|
|
38
|
+
"Programming Language :: Python :: 3", # 支持Python3
|
|
39
|
+
"Programming Language :: Python :: 3.8", # 支持Python3.8
|
|
40
|
+
"Programming Language :: Python :: 3.9", # 支持Python3.9
|
|
41
|
+
"Programming Language :: Python :: 3.10", # 支持Python3.10
|
|
42
|
+
"License :: OSI Approved :: MIT License", # 开源协议:MIT
|
|
43
|
+
"Operating System :: OS Independent", # 支持所有操作系统
|
|
44
|
+
],
|
|
45
|
+
python_requires=">=3.8", # 限制Python最低版本为3.8
|
|
46
|
+
install_requires=[ # 包依赖列表(用户安装时自动下载)
|
|
47
|
+
"six>=1.10.0", # 仅11KB,Python2/3兼容工具,几乎无安装耗时
|
|
48
|
+
],
|
|
49
|
+
keywords=["sgg", "test", "demo", "add_one"], # 搜索关键词,提升PyPI搜索曝光
|
|
50
|
+
include_package_data=True, # 包含非代码文件(如README)
|
|
51
|
+
zip_safe=False, # 禁止压缩包,避免文件读取异常
|
|
52
|
+
)
|
tjw-1.0.1/src/core.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tjw
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: 一个 tjw 的私人库
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: saogegood
|
|
7
|
+
Author-email: saogegood@163.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: sgg,test,demo,add_one
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: six>=1.10.0
|
|
22
|
+
|
|
23
|
+
# tjw
|
|
24
|
+
一个私人的tjw类库
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
第一部分:使用频率最高(特别是更新版本)
|
|
29
|
+
最常用内容(如:tjw)
|
|
30
|
+
MAC:
|
|
31
|
+
删除旧打包资料
|
|
32
|
+
MAC: rm -rf dist/ build/ src.egg-info/
|
|
33
|
+
Windows: Remove-Item -Recurse -Force dist, build, src.egg-info -ErrorAction SilentlyContinue
|
|
34
|
+
打包 python setup.py sdist bdist_wheel
|
|
35
|
+
上传 twine upload dist/*
|
|
36
|
+
使用: pip install --upgrade tjw --index-url https://pypi.org/simple/
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
other:
|
|
43
|
+
|
|
44
|
+
注册pypi账号: https://pypi.org/account/register/
|
|
45
|
+
安装打包工具: pip install setuptools wheel twine
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
setup.py
|
|
4
|
+
src/__init__.py
|
|
5
|
+
src/core.py
|
|
6
|
+
tests/__init__.py
|
|
7
|
+
tjw.egg-info/PKG-INFO
|
|
8
|
+
tjw.egg-info/SOURCES.txt
|
|
9
|
+
tjw.egg-info/dependency_links.txt
|
|
10
|
+
tjw.egg-info/not-zip-safe
|
|
11
|
+
tjw.egg-info/requires.txt
|
|
12
|
+
tjw.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
six>=1.10.0
|