chkp-talexm
commited on
Commit
Β·
4c6a68b
1
Parent(s):
1d8f5c6
update
Browse files- dist/is_click_predictor-0.1.2-py3-none-any.whl +0 -0
- dist/is_click_predictor-0.1.2.tar.gz +0 -0
- is_click_predictor.egg-info/PKG-INFO +45 -0
- is_click_predictor.egg-info/SOURCES.txt +7 -0
- is_click_predictor.egg-info/dependency_links.txt +1 -0
- is_click_predictor.egg-info/requires.txt +20 -0
- is_click_predictor.egg-info/top_level.txt +1 -0
- requirements.txt +20 -12
- setup.py +41 -0
- upload_package.py +47 -0
- upload_package.sh +30 -0
dist/is_click_predictor-0.1.2-py3-none-any.whl
ADDED
Binary file (1.55 kB). View file
|
|
dist/is_click_predictor-0.1.2.tar.gz
ADDED
Binary file (1.73 kB). View file
|
|
is_click_predictor.egg-info/PKG-INFO
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Metadata-Version: 2.2
|
2 |
+
Name: is_click_predictor
|
3 |
+
Version: 0.1.2
|
4 |
+
Summary: An SDK for the is_click predictor model
|
5 |
+
Home-page: https://huggingface.co/chagu13/is_click_predictor
|
6 |
+
Author: Talex Maxim
|
7 |
+
Author-email: taimax13@gmail.com
|
8 |
+
Classifier: Programming Language :: Python :: 3
|
9 |
+
Classifier: License :: OSI Approved :: MIT License
|
10 |
+
Classifier: Operating System :: OS Independent
|
11 |
+
Requires-Python: >=3.8
|
12 |
+
Description-Content-Type: text/markdown
|
13 |
+
Requires-Dist: numpy>=1.26.3
|
14 |
+
Requires-Dist: pandas>=2.2.0
|
15 |
+
Requires-Dist: scikit-learn>=1.4.0
|
16 |
+
Requires-Dist: matplotlib>=3.8.2
|
17 |
+
Requires-Dist: seaborn>=0.13.2
|
18 |
+
Requires-Dist: imbalanced-learn>=0.11.0
|
19 |
+
Requires-Dist: catboost>=1.2.0
|
20 |
+
Requires-Dist: xgboost>=2.0.3
|
21 |
+
Requires-Dist: joblib>=1.3.2
|
22 |
+
Requires-Dist: wandb>=0.16.1
|
23 |
+
Requires-Dist: python-dateutil>=2.9.0.post0
|
24 |
+
Requires-Dist: python-slugify>=8.0.4
|
25 |
+
Requires-Dist: pytz>=2025.1
|
26 |
+
Requires-Dist: requests>=2.32.3
|
27 |
+
Requires-Dist: six>=1.17.0
|
28 |
+
Requires-Dist: text-unidecode>=1.3
|
29 |
+
Requires-Dist: tqdm>=4.67.1
|
30 |
+
Requires-Dist: tzdata>=2025.1
|
31 |
+
Requires-Dist: urllib3>=2.3.0
|
32 |
+
Requires-Dist: webencodings>=0.5.1
|
33 |
+
Dynamic: author
|
34 |
+
Dynamic: author-email
|
35 |
+
Dynamic: classifier
|
36 |
+
Dynamic: description
|
37 |
+
Dynamic: description-content-type
|
38 |
+
Dynamic: home-page
|
39 |
+
Dynamic: requires-dist
|
40 |
+
Dynamic: requires-python
|
41 |
+
Dynamic: summary
|
42 |
+
|
43 |
+
---
|
44 |
+
license: mit
|
45 |
+
---
|
is_click_predictor.egg-info/SOURCES.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
README.md
|
2 |
+
setup.py
|
3 |
+
is_click_predictor.egg-info/PKG-INFO
|
4 |
+
is_click_predictor.egg-info/SOURCES.txt
|
5 |
+
is_click_predictor.egg-info/dependency_links.txt
|
6 |
+
is_click_predictor.egg-info/requires.txt
|
7 |
+
is_click_predictor.egg-info/top_level.txt
|
is_click_predictor.egg-info/dependency_links.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
|
is_click_predictor.egg-info/requires.txt
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
numpy>=1.26.3
|
2 |
+
pandas>=2.2.0
|
3 |
+
scikit-learn>=1.4.0
|
4 |
+
matplotlib>=3.8.2
|
5 |
+
seaborn>=0.13.2
|
6 |
+
imbalanced-learn>=0.11.0
|
7 |
+
catboost>=1.2.0
|
8 |
+
xgboost>=2.0.3
|
9 |
+
joblib>=1.3.2
|
10 |
+
wandb>=0.16.1
|
11 |
+
python-dateutil>=2.9.0.post0
|
12 |
+
python-slugify>=8.0.4
|
13 |
+
pytz>=2025.1
|
14 |
+
requests>=2.32.3
|
15 |
+
six>=1.17.0
|
16 |
+
text-unidecode>=1.3
|
17 |
+
tqdm>=4.67.1
|
18 |
+
tzdata>=2025.1
|
19 |
+
urllib3>=2.3.0
|
20 |
+
webencodings>=0.5.1
|
is_click_predictor.egg-info/top_level.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
|
requirements.txt
CHANGED
@@ -1,12 +1,20 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
scikit-learn
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
catboost
|
8 |
-
xgboost
|
9 |
-
joblib
|
10 |
-
wandb
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
numpy>=1.26.3
|
2 |
+
pandas>=2.2.0
|
3 |
+
scikit-learn>=1.4.0
|
4 |
+
matplotlib>=3.8.2
|
5 |
+
seaborn>=0.13.2
|
6 |
+
imbalanced-learn>=0.11.0
|
7 |
+
catboost>=1.2.0
|
8 |
+
xgboost>=2.0.3
|
9 |
+
joblib>=1.3.2
|
10 |
+
wandb>=0.16.1
|
11 |
+
python-dateutil>=2.9.0.post0
|
12 |
+
python-slugify>=8.0.4
|
13 |
+
pytz>=2025.1
|
14 |
+
requests>=2.32.3
|
15 |
+
six>=1.17.0
|
16 |
+
text-unidecode>=1.3
|
17 |
+
tqdm>=4.67.1
|
18 |
+
tzdata>=2025.1
|
19 |
+
urllib3>=2.3.0
|
20 |
+
webencodings>=0.5.1
|
setup.py
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from setuptools import setup, find_packages
|
2 |
+
|
3 |
+
setup(
|
4 |
+
name="is_click_predictor",
|
5 |
+
version="0.1.2",
|
6 |
+
author="Talex Maxim",
|
7 |
+
author_email="taimax13@gmail.com",
|
8 |
+
description="An SDK for the is_click predictor model",
|
9 |
+
long_description=open("README.md", "r", encoding="utf-8").read(),
|
10 |
+
long_description_content_type="text/markdown",
|
11 |
+
url="https://huggingface.co/chagu13/is_click_predictor", # Update with actual repo URL
|
12 |
+
packages=find_packages(where="."), # β
No subdirectory
|
13 |
+
install_requires=[
|
14 |
+
"numpy>=1.26.3",
|
15 |
+
"pandas>=2.2.0",
|
16 |
+
"scikit-learn>=1.4.0",
|
17 |
+
"matplotlib>=3.8.2",
|
18 |
+
"seaborn>=0.13.2",
|
19 |
+
"imbalanced-learn>=0.11.0",
|
20 |
+
"catboost>=1.2.0",
|
21 |
+
"xgboost>=2.0.3",
|
22 |
+
"joblib>=1.3.2",
|
23 |
+
"wandb>=0.16.1",
|
24 |
+
"python-dateutil>=2.9.0.post0",
|
25 |
+
"python-slugify>=8.0.4",
|
26 |
+
"pytz>=2025.1",
|
27 |
+
"requests>=2.32.3",
|
28 |
+
"six>=1.17.0",
|
29 |
+
"text-unidecode>=1.3",
|
30 |
+
"tqdm>=4.67.1",
|
31 |
+
"tzdata>=2025.1",
|
32 |
+
"urllib3>=2.3.0",
|
33 |
+
"webencodings>=0.5.1"
|
34 |
+
],
|
35 |
+
classifiers=[
|
36 |
+
"Programming Language :: Python :: 3",
|
37 |
+
"License :: OSI Approved :: MIT License",
|
38 |
+
"Operating System :: OS Independent",
|
39 |
+
],
|
40 |
+
python_requires=">=3.8",
|
41 |
+
)
|
upload_package.py
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import subprocess
|
3 |
+
import sys
|
4 |
+
|
5 |
+
|
6 |
+
def run_command(command):
|
7 |
+
"""Run a shell command and check for errors."""
|
8 |
+
result = subprocess.run(command, shell=True, check=True, text=True)
|
9 |
+
return result
|
10 |
+
|
11 |
+
|
12 |
+
def main():
|
13 |
+
print("π Starting the PIP package build & upload process...\n")
|
14 |
+
|
15 |
+
# Step 1: Ensure dependencies are installed
|
16 |
+
print("β
Installing required dependencies (setuptools, wheel, twine)...")
|
17 |
+
run_command(f"{sys.executable} -m pip install --upgrade setuptools wheel twine")
|
18 |
+
|
19 |
+
# Step 2: Remove old build directories if they exist
|
20 |
+
print("ποΈ Removing old `dist/`, `build/`, and `*.egg-info` files...")
|
21 |
+
run_command("rm -rf dist build *.egg-info")
|
22 |
+
|
23 |
+
# Step 3: Build the package
|
24 |
+
print("π¦ Building the package...")
|
25 |
+
run_command(f"{sys.executable} setup.py sdist bdist_wheel")
|
26 |
+
|
27 |
+
# Step 4: Upload the package to PyPI (or TestPyPI)
|
28 |
+
upload_option = input("Upload to (1) PyPI or (2) TestPyPI? [1/2]: ").strip()
|
29 |
+
|
30 |
+
if upload_option == "2":
|
31 |
+
print("π Uploading package to TestPyPI...")
|
32 |
+
run_command("twine upload --repository testpypi dist/*")
|
33 |
+
print("β
Package uploaded to TestPyPI!")
|
34 |
+
else:
|
35 |
+
print("π Uploading package to PyPI...")
|
36 |
+
run_command("twine upload dist/*")
|
37 |
+
print("β
Package uploaded to PyPI!")
|
38 |
+
|
39 |
+
print("\nπ Done! Your package is now available online.")
|
40 |
+
|
41 |
+
|
42 |
+
if __name__ == "__main__":
|
43 |
+
try:
|
44 |
+
main()
|
45 |
+
except subprocess.CalledProcessError as e:
|
46 |
+
print(f"\nβ Error: {e}")
|
47 |
+
print("β οΈ Make sure you are logged in with `twine` before uploading.")
|
upload_package.sh
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
echo "π Starting the PIP package build & upload process..."
|
4 |
+
|
5 |
+
# Step 1: Ensure required tools are installed
|
6 |
+
echo "β
Installing required dependencies (setuptools, wheel, twine)..."
|
7 |
+
pip install --upgrade setuptools wheel twine
|
8 |
+
|
9 |
+
# Step 2: Remove old build directories
|
10 |
+
echo "ποΈ Cleaning old builds..."
|
11 |
+
rm -rf dist build *.egg-info
|
12 |
+
|
13 |
+
# Step 3: Build the package
|
14 |
+
echo "π¦ Building the package..."
|
15 |
+
python setup.py sdist bdist_wheel
|
16 |
+
|
17 |
+
# Step 4: Ask user where to upload
|
18 |
+
read -p "Upload to (1) PyPI or (2) TestPyPI? [1/2]: " upload_option
|
19 |
+
|
20 |
+
if [ "$upload_option" == "2" ]; then
|
21 |
+
echo "π Uploading package to TestPyPI..."
|
22 |
+
twine upload --repository testpypi dist/*
|
23 |
+
echo "β
Package uploaded to TestPyPI!"
|
24 |
+
else
|
25 |
+
echo "π Uploading package to PyPI..."
|
26 |
+
twine upload dist/*
|
27 |
+
echo "β
Package uploaded to PyPI!"
|
28 |
+
fi
|
29 |
+
|
30 |
+
echo "π Done! Your package is now available online."
|