antkit 0.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.
- antkit-0.0.1/MANIFEST.in +1 -0
- antkit-0.0.1/PKG-INFO +59 -0
- antkit-0.0.1/README.md +18 -0
- antkit-0.0.1/antkit/__init__.py +5 -0
- antkit-0.0.1/antkit.egg-info/PKG-INFO +59 -0
- antkit-0.0.1/antkit.egg-info/SOURCES.txt +11 -0
- antkit-0.0.1/antkit.egg-info/dependency_links.txt +1 -0
- antkit-0.0.1/antkit.egg-info/entry_points.txt +2 -0
- antkit-0.0.1/antkit.egg-info/requires.txt +13 -0
- antkit-0.0.1/antkit.egg-info/top_level.txt +1 -0
- antkit-0.0.1/requirements.txt +5 -0
- antkit-0.0.1/setup.cfg +4 -0
- antkit-0.0.1/setup.py +190 -0
antkit-0.0.1/MANIFEST.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include requirements.txt
|
antkit-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: antkit
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A Python package for intelligent information bagging system
|
|
5
|
+
Home-page: https://github.com/lqxnjk/antkit
|
|
6
|
+
Author: lqxnjk
|
|
7
|
+
Author-email: lqxnjk@qq.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Bug Reports, https://github.com/lqxnjk/antkit/issues
|
|
10
|
+
Project-URL: Source, https://github.com/lqxnjk/antkit
|
|
11
|
+
Keywords: ii,etls,lqxnjk,data
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering
|
|
20
|
+
Requires-Python: >=3.7
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
Requires-Dist: typing-extensions; python_version < "3.8"
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Provides-Extra: plot
|
|
25
|
+
Provides-Extra: gpu
|
|
26
|
+
Provides-Extra: all
|
|
27
|
+
Requires-Dist: antkit[dev]; extra == "all"
|
|
28
|
+
Requires-Dist: antkit[plot]; extra == "all"
|
|
29
|
+
Dynamic: author
|
|
30
|
+
Dynamic: author-email
|
|
31
|
+
Dynamic: classifier
|
|
32
|
+
Dynamic: description
|
|
33
|
+
Dynamic: description-content-type
|
|
34
|
+
Dynamic: home-page
|
|
35
|
+
Dynamic: keywords
|
|
36
|
+
Dynamic: license
|
|
37
|
+
Dynamic: project-url
|
|
38
|
+
Dynamic: provides-extra
|
|
39
|
+
Dynamic: requires-python
|
|
40
|
+
Dynamic: summary
|
|
41
|
+
|
|
42
|
+
## 构建依赖包
|
|
43
|
+
|
|
44
|
+
```基础命令
|
|
45
|
+
python -m pip install twine -i https://mirrors.tencent.com/pypi/simple
|
|
46
|
+
pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
|
|
47
|
+
python setup.py sdist bdist_wheel
|
|
48
|
+
python -m build
|
|
49
|
+
pip install .
|
|
50
|
+
pip install -e .
|
|
51
|
+
pip install -e .[dev]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```shell 构建命令
|
|
55
|
+
#rm -rf './dist'
|
|
56
|
+
#python -m build
|
|
57
|
+
python setup.py sdist bdist_wheel
|
|
58
|
+
python -m twine upload dist/*
|
|
59
|
+
```
|
antkit-0.0.1/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## 构建依赖包
|
|
2
|
+
|
|
3
|
+
```基础命令
|
|
4
|
+
python -m pip install twine -i https://mirrors.tencent.com/pypi/simple
|
|
5
|
+
pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
|
|
6
|
+
python setup.py sdist bdist_wheel
|
|
7
|
+
python -m build
|
|
8
|
+
pip install .
|
|
9
|
+
pip install -e .
|
|
10
|
+
pip install -e .[dev]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```shell 构建命令
|
|
14
|
+
#rm -rf './dist'
|
|
15
|
+
#python -m build
|
|
16
|
+
python setup.py sdist bdist_wheel
|
|
17
|
+
python -m twine upload dist/*
|
|
18
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: antkit
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A Python package for intelligent information bagging system
|
|
5
|
+
Home-page: https://github.com/lqxnjk/antkit
|
|
6
|
+
Author: lqxnjk
|
|
7
|
+
Author-email: lqxnjk@qq.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Bug Reports, https://github.com/lqxnjk/antkit/issues
|
|
10
|
+
Project-URL: Source, https://github.com/lqxnjk/antkit
|
|
11
|
+
Keywords: ii,etls,lqxnjk,data
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering
|
|
20
|
+
Requires-Python: >=3.7
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
Requires-Dist: typing-extensions; python_version < "3.8"
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Provides-Extra: plot
|
|
25
|
+
Provides-Extra: gpu
|
|
26
|
+
Provides-Extra: all
|
|
27
|
+
Requires-Dist: antkit[dev]; extra == "all"
|
|
28
|
+
Requires-Dist: antkit[plot]; extra == "all"
|
|
29
|
+
Dynamic: author
|
|
30
|
+
Dynamic: author-email
|
|
31
|
+
Dynamic: classifier
|
|
32
|
+
Dynamic: description
|
|
33
|
+
Dynamic: description-content-type
|
|
34
|
+
Dynamic: home-page
|
|
35
|
+
Dynamic: keywords
|
|
36
|
+
Dynamic: license
|
|
37
|
+
Dynamic: project-url
|
|
38
|
+
Dynamic: provides-extra
|
|
39
|
+
Dynamic: requires-python
|
|
40
|
+
Dynamic: summary
|
|
41
|
+
|
|
42
|
+
## 构建依赖包
|
|
43
|
+
|
|
44
|
+
```基础命令
|
|
45
|
+
python -m pip install twine -i https://mirrors.tencent.com/pypi/simple
|
|
46
|
+
pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
|
|
47
|
+
python setup.py sdist bdist_wheel
|
|
48
|
+
python -m build
|
|
49
|
+
pip install .
|
|
50
|
+
pip install -e .
|
|
51
|
+
pip install -e .[dev]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```shell 构建命令
|
|
55
|
+
#rm -rf './dist'
|
|
56
|
+
#python -m build
|
|
57
|
+
python setup.py sdist bdist_wheel
|
|
58
|
+
python -m twine upload dist/*
|
|
59
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
MANIFEST.in
|
|
2
|
+
README.md
|
|
3
|
+
requirements.txt
|
|
4
|
+
setup.py
|
|
5
|
+
antkit/__init__.py
|
|
6
|
+
antkit.egg-info/PKG-INFO
|
|
7
|
+
antkit.egg-info/SOURCES.txt
|
|
8
|
+
antkit.egg-info/dependency_links.txt
|
|
9
|
+
antkit.egg-info/entry_points.txt
|
|
10
|
+
antkit.egg-info/requires.txt
|
|
11
|
+
antkit.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
antkit
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
--extra-index-url https://mirrors.tencent.com/pypi/simple
|
|
2
|
+
# python 3.7.9
|
|
3
|
+
# pip install -r ./requirements.txt -i https://mirrors.tencent.com/pypi/simple
|
|
4
|
+
# --default-timeout=100
|
|
5
|
+
#------------------------------------------------------------------------------------------------------------
|
antkit-0.0.1/setup.cfg
ADDED
antkit-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import os.path
|
|
2
|
+
|
|
3
|
+
from setuptools import setup, find_packages
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
import re
|
|
6
|
+
|
|
7
|
+
# ========== Configuration Variables ==========
|
|
8
|
+
# Basic package info
|
|
9
|
+
ROOT_DIR = Path(__file__).absolute().parent
|
|
10
|
+
PACKAGE_NAME = Path(__file__).absolute().parent.name.split("_")[-1].split("-")[-1]
|
|
11
|
+
|
|
12
|
+
AUTHOR = "lqxnjk"
|
|
13
|
+
AUTHOR_EMAIL = "lqxnjk@qq.com"
|
|
14
|
+
DESCRIPTION = "A Python package for intelligent information bagging system"
|
|
15
|
+
LICENSE = "MIT"
|
|
16
|
+
PYTHON_REQUIRES = ">=3.7"
|
|
17
|
+
URL = f"https://github.com/lqxnjk/{PACKAGE_NAME}"
|
|
18
|
+
PROJECT_URLS = {
|
|
19
|
+
'Bug Reports': f'{URL}/issues',
|
|
20
|
+
'Source': URL,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
# Package discovery
|
|
24
|
+
PACKAGE_EXCLUDES = ['tests*', 'docs*', 'examples*']
|
|
25
|
+
|
|
26
|
+
# Classifiers
|
|
27
|
+
CLASSIFIERS = [
|
|
28
|
+
"Development Status :: 3 - Alpha",
|
|
29
|
+
"Intended Audience :: Developers",
|
|
30
|
+
"Intended Audience :: Science/Research",
|
|
31
|
+
"Programming Language :: Python :: 3.7",
|
|
32
|
+
"License :: OSI Approved :: MIT License",
|
|
33
|
+
"Operating System :: OS Independent",
|
|
34
|
+
"Topic :: Software Development :: Libraries",
|
|
35
|
+
"Topic :: Scientific/Engineering",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
# Keywords
|
|
39
|
+
KEYWORDS = ["ii", "etls", "lqxnjk", "data"]
|
|
40
|
+
|
|
41
|
+
# Package data
|
|
42
|
+
PACKAGE_DATA = {
|
|
43
|
+
PACKAGE_NAME: ['data/*.json', 'data/*.csv'],
|
|
44
|
+
}
|
|
45
|
+
# Entry points
|
|
46
|
+
ENTRY_POINTS = {
|
|
47
|
+
'hello': [
|
|
48
|
+
f'{PACKAGE_NAME}_version = {PACKAGE_NAME}.__init__:version',
|
|
49
|
+
],
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# ========== Dynamic Value Functions ==========
|
|
54
|
+
def get_long_description():
|
|
55
|
+
"""Read README.md content as long description."""
|
|
56
|
+
with open('README.md', 'r', encoding='utf-8') as f:
|
|
57
|
+
return f.read()
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def get_version():
|
|
61
|
+
"""Read version from package __init__.py file."""
|
|
62
|
+
init_file = f"./{PACKAGE_NAME}/__init__.py"
|
|
63
|
+
if not os.path.exists(init_file):
|
|
64
|
+
init_file = f"./demo/__init__.py"
|
|
65
|
+
with open(init_file, 'r', encoding='utf-8') as f:
|
|
66
|
+
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
|
|
67
|
+
if version_match:
|
|
68
|
+
return version_match.group(1)
|
|
69
|
+
raise RuntimeError("Unable to find version string.")
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def get_requirements():
|
|
73
|
+
"""Read requirements from requirements.txt."""
|
|
74
|
+
with open(ROOT_DIR / 'requirements.txt', 'r', encoding='utf-8') as f:
|
|
75
|
+
return [
|
|
76
|
+
line.strip() for line in f
|
|
77
|
+
if line.strip()
|
|
78
|
+
and not line.startswith('#')
|
|
79
|
+
and not line.startswith('--')
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
REQUIREMENTS = get_requirements()
|
|
84
|
+
|
|
85
|
+
# Optional dependencies
|
|
86
|
+
EXTRAS_REQUIRE = {
|
|
87
|
+
':python_version < "3.8"': ['typing-extensions'],
|
|
88
|
+
'dev': [
|
|
89
|
+
# 'pytest>=6.0',
|
|
90
|
+
# 'pytest-cov>=2.0',
|
|
91
|
+
# 'flake8>=3.9',
|
|
92
|
+
# 'mypy>=0.910',
|
|
93
|
+
# 'sphinx>=4.0',
|
|
94
|
+
],
|
|
95
|
+
'plot': [
|
|
96
|
+
# 'matplotlib>=3.0',
|
|
97
|
+
# 'seaborn>=0.11',
|
|
98
|
+
],
|
|
99
|
+
'gpu': [
|
|
100
|
+
# 'cupy>=10.0'
|
|
101
|
+
],
|
|
102
|
+
'all': [f'{PACKAGE_NAME}[dev]', f'{PACKAGE_NAME}[plot]']
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
# ========== Setup Configuration ==========
|
|
106
|
+
setup(
|
|
107
|
+
name=PACKAGE_NAME,
|
|
108
|
+
version=get_version(),
|
|
109
|
+
packages=find_packages(exclude=PACKAGE_EXCLUDES),
|
|
110
|
+
install_requires=REQUIREMENTS,
|
|
111
|
+
extras_require=EXTRAS_REQUIRE,
|
|
112
|
+
include_package_data=True,
|
|
113
|
+
package_data=PACKAGE_DATA,
|
|
114
|
+
author=AUTHOR,
|
|
115
|
+
author_email=AUTHOR_EMAIL,
|
|
116
|
+
description=DESCRIPTION,
|
|
117
|
+
long_description=get_long_description(),
|
|
118
|
+
long_description_content_type='text/markdown',
|
|
119
|
+
url=URL,
|
|
120
|
+
project_urls=PROJECT_URLS,
|
|
121
|
+
classifiers=CLASSIFIERS,
|
|
122
|
+
python_requires=PYTHON_REQUIRES,
|
|
123
|
+
entry_points=ENTRY_POINTS,
|
|
124
|
+
license=LICENSE,
|
|
125
|
+
keywords=KEYWORDS,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# ========== Pyproject.toml Generation ==========
|
|
130
|
+
def generate_pyproject_toml():
|
|
131
|
+
"""Generate pyproject.toml from extracted variables."""
|
|
132
|
+
# Format project URLs for TOML
|
|
133
|
+
urls_toml = "\n".join(
|
|
134
|
+
f'{key.replace(" ", "-").lower()} = "{value}"'
|
|
135
|
+
for key, value in PROJECT_URLS.items()
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
# Format extras_require for TOML
|
|
139
|
+
extras_toml = []
|
|
140
|
+
for key, deps in EXTRAS_REQUIRE.items():
|
|
141
|
+
if key.startswith(':python_version'):
|
|
142
|
+
# Handle conditional dependencies
|
|
143
|
+
condition = key.split('"')[1]
|
|
144
|
+
extras_toml.append(
|
|
145
|
+
f'python_version_lt_{condition.replace(".", "_")} = {deps}'
|
|
146
|
+
)
|
|
147
|
+
else:
|
|
148
|
+
extras_toml.append(f'{key} = {deps}')
|
|
149
|
+
extras_toml_str = "\n".join(extras_toml)
|
|
150
|
+
PACKAGE_DATA_STR = "{" + ",\n".join([f'"{k}" = {v}' for k, v in PACKAGE_DATA.items()]) + "}"
|
|
151
|
+
pyproject_content = f"""[build-system]
|
|
152
|
+
requires = ["setuptools>=42", "wheel"]
|
|
153
|
+
build-backend = "setuptools.build_meta"
|
|
154
|
+
|
|
155
|
+
[project]
|
|
156
|
+
name = "{PACKAGE_NAME}"
|
|
157
|
+
version = "{get_version()}"
|
|
158
|
+
description = "{DESCRIPTION}"
|
|
159
|
+
readme = "README.md"
|
|
160
|
+
requires-python = "{PYTHON_REQUIRES}"
|
|
161
|
+
authors = [
|
|
162
|
+
{{ name = "{AUTHOR}", email = "{AUTHOR_EMAIL}" }},
|
|
163
|
+
]
|
|
164
|
+
license = {{ text = "{LICENSE}" }}
|
|
165
|
+
keywords = {KEYWORDS}
|
|
166
|
+
classifiers = {CLASSIFIERS}
|
|
167
|
+
dependencies = {REQUIREMENTS}
|
|
168
|
+
|
|
169
|
+
[project.urls]
|
|
170
|
+
homepage = "{URL}"
|
|
171
|
+
{urls_toml}
|
|
172
|
+
|
|
173
|
+
[project.optional-dependencies]
|
|
174
|
+
{extras_toml_str}
|
|
175
|
+
|
|
176
|
+
[tool.setuptools]
|
|
177
|
+
packages = {find_packages(exclude=PACKAGE_EXCLUDES)}
|
|
178
|
+
package-data = {PACKAGE_DATA_STR}
|
|
179
|
+
include-package-data = true
|
|
180
|
+
|
|
181
|
+
[tool.setuptools.dynamic]
|
|
182
|
+
version = {{ attr = "{PACKAGE_NAME}.__version__" }}
|
|
183
|
+
readme = {{ file = ["README.md"] }}
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
with open("pyproject.toml", "w", encoding="utf-8") as f:
|
|
187
|
+
f.write(pyproject_content)
|
|
188
|
+
print("pyproject.toml generated successfully!")
|
|
189
|
+
|
|
190
|
+
# generate_pyproject_toml()
|