pyrulecc 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.
@@ -0,0 +1,3 @@
1
+ include requirements.txt
2
+ include README.md
3
+ include setup.py
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyrulecc
3
+ Version: 0.0.1
4
+ Summary: A Python package for intelligent information bagging system
5
+ Home-page: https://github.com/lqxnjk/pyrulecc
6
+ Author: lqxnjk
7
+ Author-email: lqxnjk@qq.com
8
+ License: MIT
9
+ Project-URL: Bug Reports, https://github.com/lqxnjk/pyrulecc/issues
10
+ Project-URL: Source, https://github.com/lqxnjk/pyrulecc
11
+ Keywords: rule,tool,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: full
27
+ Requires-Dist: pyrulecc[dev]; extra == "full"
28
+ Requires-Dist: pyrulecc[plot]; extra == "full"
29
+ Requires-Dist: pyrulecc[gpu]; extra == "full"
30
+ Dynamic: author
31
+ Dynamic: author-email
32
+ Dynamic: classifier
33
+ Dynamic: description
34
+ Dynamic: description-content-type
35
+ Dynamic: home-page
36
+ Dynamic: keywords
37
+ Dynamic: license
38
+ Dynamic: project-url
39
+ Dynamic: provides-extra
40
+ Dynamic: requires-python
41
+ Dynamic: summary
42
+
43
+ ```
44
+ pip install -r ./requirements.txt -i https://mirrors.tencent.com/pypi/simple
45
+ pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
46
+ python -m pip install twine -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
+ python -m twine upload dist/*
53
+ ```
54
+ ```shell
55
+ pip install -e .
56
+ ```
57
+ ```shell
58
+ python setup.py sdist bdist_wheel
59
+ ```
60
+ ```shell
61
+ python -m twine upload dist/*
62
+ ```
@@ -0,0 +1,20 @@
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
+ pip install -e .
14
+ ```
15
+ ```shell
16
+ python setup.py sdist bdist_wheel
17
+ ```
18
+ ```shell
19
+ python -m twine upload dist/*
20
+ ```
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyrulecc
3
+ Version: 0.0.1
4
+ Summary: A Python package for intelligent information bagging system
5
+ Home-page: https://github.com/lqxnjk/pyrulecc
6
+ Author: lqxnjk
7
+ Author-email: lqxnjk@qq.com
8
+ License: MIT
9
+ Project-URL: Bug Reports, https://github.com/lqxnjk/pyrulecc/issues
10
+ Project-URL: Source, https://github.com/lqxnjk/pyrulecc
11
+ Keywords: rule,tool,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: full
27
+ Requires-Dist: pyrulecc[dev]; extra == "full"
28
+ Requires-Dist: pyrulecc[plot]; extra == "full"
29
+ Requires-Dist: pyrulecc[gpu]; extra == "full"
30
+ Dynamic: author
31
+ Dynamic: author-email
32
+ Dynamic: classifier
33
+ Dynamic: description
34
+ Dynamic: description-content-type
35
+ Dynamic: home-page
36
+ Dynamic: keywords
37
+ Dynamic: license
38
+ Dynamic: project-url
39
+ Dynamic: provides-extra
40
+ Dynamic: requires-python
41
+ Dynamic: summary
42
+
43
+ ```
44
+ pip install -r ./requirements.txt -i https://mirrors.tencent.com/pypi/simple
45
+ pip install wheel setuptools -i https://mirrors.tencent.com/pypi/simple
46
+ python -m pip install twine -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
+ python -m twine upload dist/*
53
+ ```
54
+ ```shell
55
+ pip install -e .
56
+ ```
57
+ ```shell
58
+ python setup.py sdist bdist_wheel
59
+ ```
60
+ ```shell
61
+ python -m twine upload dist/*
62
+ ```
@@ -0,0 +1,10 @@
1
+ MANIFEST.in
2
+ README.md
3
+ requirements.txt
4
+ setup.py
5
+ pyrulecc.egg-info/PKG-INFO
6
+ pyrulecc.egg-info/SOURCES.txt
7
+ pyrulecc.egg-info/dependency_links.txt
8
+ pyrulecc.egg-info/entry_points.txt
9
+ pyrulecc.egg-info/requires.txt
10
+ pyrulecc.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pyrulecc_version = pyrulecc.__init__:version
@@ -0,0 +1,14 @@
1
+
2
+ [:python_version < "3.8"]
3
+ typing-extensions
4
+
5
+ [dev]
6
+
7
+ [full]
8
+ pyrulecc[dev]
9
+ pyrulecc[plot]
10
+ pyrulecc[gpu]
11
+
12
+ [gpu]
13
+
14
+ [plot]
@@ -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 # -*- coding: utf-8 -*-
7
+ #------------------------------------------------------------------------------------------------------------
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,116 @@
1
+ LIBRARY = "pyrulecc"
2
+ VERSION = "0.0.1"
3
+
4
+ AUTHOR = "lqxnjk"
5
+ AUTHOR_EMAIL = "lqxnjk@qq.com"
6
+ DESCRIPTION = "A Python package for intelligent information bagging system"
7
+ LICENSE = "MIT"
8
+ PYTHON_REQUIRES = ">=3.7"
9
+ URL = f"https://github.com/lqxnjk/{LIBRARY}"
10
+
11
+ PROJECT_URLS = {
12
+ 'Bug Reports': f'{URL}/issues',
13
+ 'Source': URL,
14
+ }
15
+
16
+ # Package discovery
17
+ PACKAGE_EXCLUDES = ['tests*', 'docs*', 'examples*']
18
+
19
+ # Classifiers
20
+ CLASSIFIERS = [
21
+ "Development Status :: 3 - Alpha",
22
+ "Intended Audience :: Developers",
23
+ "Intended Audience :: Science/Research",
24
+ "Programming Language :: Python :: 3.7",
25
+ "License :: OSI Approved :: MIT License",
26
+ "Operating System :: OS Independent",
27
+ "Topic :: Software Development :: Libraries",
28
+ "Topic :: Scientific/Engineering",
29
+ ]
30
+
31
+ # Keywords
32
+ KEYWORDS = ["rule", "tool", "data"]
33
+
34
+ # Package data
35
+ PACKAGE_DATA = {
36
+ LIBRARY: ['data/*.json', 'data/*.csv'],
37
+ }
38
+
39
+ # 定义命令行工具
40
+ ENTRY_POINTS = {
41
+ 'console_scripts': [ # 命令行工具,用户安装后可以在终端运行的命令
42
+ f'{LIBRARY}_version = {LIBRARY}.__init__:version',
43
+ ],
44
+ 'gui_scripts': [ # 让你的 Python 代码可以被其他工具(如桌面应用、IDE)动态调用
45
+ # "my-gui-app = my_package.gui:run_app", # 命令名 = 模块名:函数名
46
+ ],
47
+ "flask.blueprints": [ # Flask 蓝图(扩展)
48
+ # "my_bp = my_package.blueprint", # 插件名 = 模块名
49
+ ],
50
+ "pytest11": [ # pytest 的插件入口点
51
+ # "my_plugin = my_package.plugin", # 插件名 = 模块名
52
+ ],
53
+ }
54
+
55
+ EXTRAS_REQUIRE = {
56
+ ':python_version < "3.8"': ['typing-extensions'],
57
+ 'dev': [
58
+ # 'pytest>=6.0',
59
+ # 'pytest-cov>=2.0',
60
+ # 'flake8>=3.9',
61
+ # 'mypy>=0.910',
62
+ # 'sphinx>=4.0',
63
+ ],
64
+ 'plot': [
65
+ # 'matplotlib>=3.0',
66
+ # 'seaborn>=0.11',
67
+ ],
68
+ 'gpu': [
69
+ # 'cupy>=10.0'
70
+ ],
71
+ 'full': [f'{LIBRARY}[dev]', f'{LIBRARY}[plot]', f'{LIBRARY}[gpu]']
72
+ }
73
+
74
+
75
+ def readme_text():
76
+ """Read README.md content as long description."""
77
+ with open('README.md', 'r', encoding='utf-8') as f:
78
+ return f.read()
79
+
80
+
81
+ def requirements_list():
82
+ """Read requirements from requirements.txt."""
83
+ import pathlib
84
+ with open(pathlib.Path(__file__).absolute().parent / 'requirements.txt', 'r', encoding='utf-8') as f:
85
+ return [
86
+ line.strip() for line in f
87
+ if line.strip()
88
+ and not line.startswith('#')
89
+ and not line.startswith('--')
90
+ ]
91
+
92
+
93
+ # ========== Setup Configuration ==========
94
+ import setuptools
95
+
96
+ setuptools.setup(
97
+ name=LIBRARY,
98
+ version=VERSION,
99
+ packages=setuptools.find_packages(exclude=PACKAGE_EXCLUDES),
100
+ install_requires=requirements_list(),
101
+ extras_require=EXTRAS_REQUIRE,
102
+ include_package_data=True,
103
+ package_data=PACKAGE_DATA,
104
+ author=AUTHOR,
105
+ author_email=AUTHOR_EMAIL,
106
+ description=DESCRIPTION,
107
+ long_description=readme_text(),
108
+ long_description_content_type='text/markdown',
109
+ url=URL,
110
+ project_urls=PROJECT_URLS,
111
+ classifiers=CLASSIFIERS,
112
+ python_requires=PYTHON_REQUIRES,
113
+ entry_points=ENTRY_POINTS,
114
+ license=LICENSE,
115
+ keywords=KEYWORDS,
116
+ )