From 12a60c05e45cc3830925b0083e46ca32bfa94e53 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 8 Jul 2025 12:43:24 -0500 Subject: [PATCH] updating installer --- pyproject.toml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 30 ---------------------------- 2 files changed, 53 insertions(+), 30 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..af9c359 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,53 @@ +[build-system] +requires = ["setuptools>=45", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "smart-top" # Replace with meta.__app_name__ +dynamic = ["version"] +description = "" # Add your project description here +authors = [ + {name = "Your Name", email = "meta@the-phi.com"} # Replace with meta.__author__ +] +license = {text = "MIT"} # Replace with meta.__license__ +readme = "README.md" # Optional: add if you have a README +requires-python = ">=3.7" +keywords = [ + "mongodb", + "couchdb", + "rabbitmq", + "file", + "read", + "write", + "s3", + "sqlite" +] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", +] +dependencies = [ + "typer", + "pandas", + "numpy", + "plugin-ix @ git+https://dev.the-phi.com/git/library/plugins" +] + +[project.optional-dependencies] +transport = [ + "data-transport @ git+https://github.com/lnyemba/data-transport.git" +] + +[project.urls] +Homepage = "https://dev.the-phi.com/git/steve/smart-top.git" +Repository = "https://dev.the-phi.com/git/steve/smart-top.git" + +[project.scripts] +smart-logger = "smart.logger:main" # Adjust the module path as needed + +[tool.setuptools.packages.find] +include = ["meta", "smart", "smart.cmd", "smart.top", "smart.folder", "smart.logger", "smart.files"] + +[tool.setuptools.dynamic] +version = {attr = "meta.__version__"} diff --git a/setup.py b/setup.py deleted file mode 100644 index 323b02f..0000000 --- a/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -""" -""" -from setuptools import setup, find_packages -import os -import sys -import meta -# def read(fname): -# return open(os.path.join(os.path.dirname(__file__), fname)).read() -args = { - "name":meta.__app_name__, - "version":meta.__version__, - "author":meta.__author__,"author_email":"meta@the-phi.com", - "license":meta.__license__, - "packages":["meta","smart","smart.cmd","smart.top","smart.folder","smart.logger","smart.files"] - } -args["keywords"]=['mongodb','couchdb','rabbitmq','file','read','write','s3','sqlite'] -args["install_requires"] = ['typer','pandas','numpy','data-transport@git+https://github.com/lnyemba/data-transport.git',"plugin-ix@git+https://dev.the-phi.com/git/library/plugins"] - -args["url"] = "https://dev.the-phi.com/git/steve/smart-top.git" -args['scripts'] = ['bin/smart-logger'] -# args['entry_point'] = {'console-scripts':['smart-top=smart-top:main']} -# -#@TODO: -# How to run this from the command line (and submit the data to [file,url,mongodb,couchdb,s3]) -# -if sys.version_info[0] == 2 : - args['use_2to3'] = True - args['use_2to3_exclude_fixers']=['lib2to3.fixes.fix_import'] -setup(**args) -