Skip to content

Commit 04cfb36

Browse files
committed
rename project due to similar name in pypi
1 parent a58234c commit 04cfb36

28 files changed

+38
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ To use the spam detector in your Django project:
167167
3. Use the `is_spam` method to check if a message is spam.
168168

169169
```python
170-
from prediction import VotingSpamDetector
170+
from spam_detector.prediction import VotingSpamDetector
171171

172172
# Create the spam detector
173173
spam_detector = VotingSpamDetector()

setup.cfg

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
name = spam-detection
2+
name = spam-detector
33
version = 1.0.0
44
description = A package for spam detection using machine learning algorithms.
55
long_description = file: README.md
@@ -24,16 +24,16 @@ classifiers =
2424
[options]
2525
include_package_data = true
2626
packages =
27-
spam_detection
28-
spam_detection.models
29-
spam_detection.models.svm
30-
spam_detection.models.bayes
31-
spam_detection.models.random_forest
32-
spam_detection.training
33-
spam_detection.classifiers
34-
spam_detection.loading_and_processing
35-
spam_detection.prediction
36-
spam_detection.test_and_tuning
27+
spam_detector
28+
spam_detector.models
29+
spam_detector.models.svm
30+
spam_detector.models.bayes
31+
spam_detector.models.random_forest
32+
spam_detector.training
33+
spam_detector.classifiers
34+
spam_detector.loading_and_processing
35+
spam_detector.prediction
36+
spam_detector.test_and_tuning
3737

3838
python_requires = >=3.8
3939
install_requires =
@@ -43,4 +43,4 @@ install_requires =
4343

4444
[options.package_data]
4545
* = data/*
46-
spam_detection = models/*/*
46+
spam_detector = models/*/*

spam_detection/__init__.py renamed to spam_detector/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detection/__init__.py
1+
# spam_detector/__init__.py
22

33
from . import classifiers
44
from . import loading_and_processing
File renamed without changes.

spam_detection/classifiers/base_classifier.py renamed to spam_detector/classifiers/base_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detection/classifiers/base_classifier.py
1+
# spam_detector/classifiers/base_classifier.py
22

33
from abc import ABC, abstractmethod
44

spam_detection/classifiers/classifier_types.py renamed to spam_detector/classifiers/classifier_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detection/classifiers/classifier_types.py
1+
# spam_detector/classifiers/classifier_types.py
22

33
from enum import Enum, auto
44

spam_detection/classifiers/naive_bayes_classifier.py renamed to spam_detector/classifiers/naive_bayes_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detection/classifiers/naive_bayes_classifier.py
1+
# spam_detector/classifiers/naive_bayes_classifier.py
22

33
import pickle
44
from sklearn.feature_extraction.text import CountVectorizer

spam_detection/classifiers/random_forest_classifier.py renamed to spam_detector/classifiers/random_forest_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detection/classifiers/random_forest_classifier.py
1+
# spam_detector/classifiers/random_forest_classifier.py
22

33
import pickle
44
from sklearn.feature_extraction.text import TfidfVectorizer

spam_detection/classifiers/svm_classifier.py renamed to spam_detector/classifiers/svm_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detection/classifiers/svm_classifier.py
1+
# spam_detector/classifiers/svm_classifier.py
22

33
import pickle
44
from sklearn.feature_extraction.text import TfidfVectorizer
File renamed without changes.

0 commit comments

Comments
 (0)