Skip to content

Commit

Permalink
Updated setup to build package using __info__
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspd committed Jan 17, 2024
1 parent f7f4a1a commit 8b61f9c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
9 changes: 1 addition & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
[metadata]
name = spam-detector-ai
version = 1.0.3
description = A package for spam detection using machine learning algorithms.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/adamspd/spam-detection-project
author = Adams Pierre David
author_email = adamspd.developer@gmail.com
license = Apache License 2.0
classifiers =
Environment :: Console
Expand Down Expand Up @@ -41,6 +33,7 @@ install_requires =
pandas
numpy
pytest
joblib

[options.package_data]
* = data/*
Expand Down
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@

import setuptools

from spam_detector_ai.__info__ import (
__author__, __author_email__, __author_website__, __description__, __package_name__, __url__, __version__)

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

setuptools.setup(
name=__package_name__,
version=__version__,
author=__author__,
author_email=__author_email__,
long_description=long_description,
long_description_content_type="text/markdown",
url=__url__,
description=__description__,
project_urls={
"Author Website": __author_website__,
},
)
2 changes: 1 addition & 1 deletion spam_detector_ai/__info__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__author__ = "Adams Pierre David"
__author_email__ = "adamspd.developer@gmail.com"
__author_website__ = "https://adamspierredavid.com/"
__description__ = "Detecting and filtering spam messages using Machine Learning models."
__description__ = "A package for detecting and filtering spam messages using Machine Learning models."
__package_name__ = "spam-detector-ai"
__url__ = "https://github.com/adamspd/spam-detection-project"
__version__ = "2.0.0"
Expand Down

0 comments on commit 8b61f9c

Please sign in to comment.