Skip to content

Commit 8b61f9c

Browse files
committed
Updated setup to build package using __info__
1 parent f7f4a1a commit 8b61f9c

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

setup.cfg

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
[metadata]
2-
name = spam-detector-ai
3-
version = 1.0.3
4-
description = A package for spam detection using machine learning algorithms.
5-
long_description = file: README.md
6-
long_description_content_type = text/markdown
7-
url = https://github.com/adamspd/spam-detection-project
8-
author = Adams Pierre David
9-
author_email = [email protected]
102
license = Apache License 2.0
113
classifiers =
124
Environment :: Console
@@ -41,6 +33,7 @@ install_requires =
4133
pandas
4234
numpy
4335
pytest
36+
joblib
4437

4538
[options.package_data]
4639
* = data/*

setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,22 @@
33

44
import setuptools
55

6+
from spam_detector_ai.__info__ import (
7+
__author__, __author_email__, __author_website__, __description__, __package_name__, __url__, __version__)
8+
69
with open("README.md", "r", encoding="utf-8") as fh:
710
long_description = fh.read()
811

912
setuptools.setup(
13+
name=__package_name__,
14+
version=__version__,
15+
author=__author__,
16+
author_email=__author_email__,
1017
long_description=long_description,
1118
long_description_content_type="text/markdown",
19+
url=__url__,
20+
description=__description__,
21+
project_urls={
22+
"Author Website": __author_website__,
23+
},
1224
)

spam_detector_ai/__info__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__author__ = "Adams Pierre David"
22
__author_email__ = "[email protected]"
33
__author_website__ = "https://adamspierredavid.com/"
4-
__description__ = "Detecting and filtering spam messages using Machine Learning models."
4+
__description__ = "A package for detecting and filtering spam messages using Machine Learning models."
55
__package_name__ = "spam-detector-ai"
66
__url__ = "https://github.com/adamspd/spam-detection-project"
77
__version__ = "2.0.0"

0 commit comments

Comments
 (0)