rulecc 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.

Potentially problematic release.


This version of rulecc might be problematic. Click here for more details.

@@ -0,0 +1 @@
1
+ include requirements.txt
rulecc-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: rulecc
3
+ Version: 0.0.1
4
+ Summary: A Python package for intelligent information bagging system
5
+ Home-page: https://github.com/lqxnjk/rulecc
6
+ Author: lqxnjk
7
+ Author-email: lqxnjk@qq.com
8
+ License: MIT
9
+ Project-URL: Bug Reports, https://github.com/lqxnjk/rulecc/issues
10
+ Project-URL: Source, https://github.com/lqxnjk/rulecc
11
+ Keywords: ii,etls,lqxnjk,data
12
+ Platform: UNKNOWN
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Topic :: Software Development :: Libraries
20
+ Classifier: Topic :: Scientific/Engineering
21
+ Requires-Python: >=3.7
22
+ Description-Content-Type: text/markdown
23
+ Provides-Extra: dev
24
+ Provides-Extra: plot
25
+ Provides-Extra: gpu
26
+ Provides-Extra: all
27
+
28
+ ```
29
+ pip install -r ./requirements.txt -i https://mirrors.tencent.com/pypi/simple
30
+ pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
31
+ python -m pip install twine -i https://mirrors.tencent.com/pypi/simple
32
+ python setup.py sdist bdist_wheel
33
+ python -m build
34
+ pip install .
35
+ pip install -e .
36
+ pip install -e .[dev]
37
+ python -m twine upload dist/*
38
+ ```
39
+ ```shell
40
+ python setup.py sdist bdist_wheel
41
+ ```
42
+
43
+ ```shell
44
+ python -m twine upload dist/*
45
+ ```
46
+
rulecc-0.0.1/README.md ADDED
@@ -0,0 +1,18 @@
1
+ ```
2
+ pip install -r ./requirements.txt -i https://mirrors.tencent.com/pypi/simple
3
+ pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
4
+ python -m pip install twine -i https://mirrors.tencent.com/pypi/simple
5
+ python setup.py sdist bdist_wheel
6
+ python -m build
7
+ pip install .
8
+ pip install -e .
9
+ pip install -e .[dev]
10
+ python -m twine upload dist/*
11
+ ```
12
+ ```shell
13
+ python setup.py sdist bdist_wheel
14
+ ```
15
+
16
+ ```shell
17
+ python -m twine upload dist/*
18
+ ```
@@ -0,0 +1,7 @@
1
+ --extra-index-url https://mirrors.tencent.com/pypi/simple
2
+ # pip config set global.index-url https://mirrors.tencent.com/pypi/simple
3
+ # pip config unset global.index-url
4
+ # python -m pip install --upgrade --force-reinstall pip -i https://mirrors.tencent.com/pypi/simple
5
+ # pip install -r ./requirements.txt -i https://mirrors.tencent.com/pypi/simple
6
+ # --default-timeout=100
7
+ #------------------------------------------------------------------------------------------------------------
@@ -0,0 +1,4 @@
1
+ """
2
+ lqxnjk lqxnjk@qq.com
3
+ """
4
+ __version__ = "0.0.1"
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: rulecc
3
+ Version: 0.0.1
4
+ Summary: A Python package for intelligent information bagging system
5
+ Home-page: https://github.com/lqxnjk/rulecc
6
+ Author: lqxnjk
7
+ Author-email: lqxnjk@qq.com
8
+ License: MIT
9
+ Project-URL: Bug Reports, https://github.com/lqxnjk/rulecc/issues
10
+ Project-URL: Source, https://github.com/lqxnjk/rulecc
11
+ Keywords: ii,etls,lqxnjk,data
12
+ Platform: UNKNOWN
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Topic :: Software Development :: Libraries
20
+ Classifier: Topic :: Scientific/Engineering
21
+ Requires-Python: >=3.7
22
+ Description-Content-Type: text/markdown
23
+ Provides-Extra: dev
24
+ Provides-Extra: plot
25
+ Provides-Extra: gpu
26
+ Provides-Extra: all
27
+
28
+ ```
29
+ pip install -r ./requirements.txt -i https://mirrors.tencent.com/pypi/simple
30
+ pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
31
+ python -m pip install twine -i https://mirrors.tencent.com/pypi/simple
32
+ python setup.py sdist bdist_wheel
33
+ python -m build
34
+ pip install .
35
+ pip install -e .
36
+ pip install -e .[dev]
37
+ python -m twine upload dist/*
38
+ ```
39
+ ```shell
40
+ python setup.py sdist bdist_wheel
41
+ ```
42
+
43
+ ```shell
44
+ python -m twine upload dist/*
45
+ ```
46
+
@@ -0,0 +1,11 @@
1
+ MANIFEST.in
2
+ README.md
3
+ requirements.txt
4
+ setup.py
5
+ rulecc/__init__.py
6
+ rulecc.egg-info/PKG-INFO
7
+ rulecc.egg-info/SOURCES.txt
8
+ rulecc.egg-info/dependency_links.txt
9
+ rulecc.egg-info/entry_points.txt
10
+ rulecc.egg-info/requires.txt
11
+ rulecc.egg-info/top_level.txt
@@ -0,0 +1,3 @@
1
+ [hello]
2
+ rulecc_version = rulecc.__init__:version
3
+
@@ -0,0 +1,13 @@
1
+
2
+ [:python_version < "3.8"]
3
+ typing-extensions
4
+
5
+ [all]
6
+ rulecc[dev]
7
+ rulecc[plot]
8
+
9
+ [dev]
10
+
11
+ [gpu]
12
+
13
+ [plot]
@@ -0,0 +1 @@
1
+ rulecc
rulecc-0.0.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
rulecc-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
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()