From ede5a01c4a5e1a9de8a6ee7d8855d93695e04a2a Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Thu, 5 Jun 2025 10:58:16 -0500 Subject: [PATCH 1/2] updating setup instructions --- pyproject.toml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a783dbf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,48 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "qcms" +dynamic = ["version"] +authors = [ + {email = "info@the-phi.com"}, +] +description = "" +readme = "README.md" +license = {text = "MIT"} +keywords = ["cms", "www", "https", "flask", "data-transport"] +classifiers = [ + "Topic :: Utilities", + "License :: OSI Approved :: MIT License", +] +dependencies = [ + "flask", + "gitpython", + "termcolor", + "flask-session", + "mistune", + "typer", + "data-transport @ git+https://github.com/lnyemba/data-transport.git", +] + +[project.urls] +Homepage = "https://healthcareio.the-phi.com/git/code/transport.git" + +[project.scripts] +qcms = "qcms:main" + +[tool.setuptools] +include-package-data = true +zip-safe = false + +[tool.setuptools.packages.find] +include = ["meta", "cms", "cms.*"] + +[tool.setuptools.dynamic] +version = {attr = "meta.__version__"} + +# If you have a meta.py file, you might also want to include the author dynamically: +# [tool.setuptools.dynamic] +# version = {attr = "meta.__version__"} +# authors = {attr = "meta.__author__"} \ No newline at end of file From 512093e13faee43d82c18a3a5c135a63fb778566 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Thu, 5 Jun 2025 11:08:52 -0500 Subject: [PATCH 2/2] update installer --- pyproject.toml | 2 +- setup.py | 26 -------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index a783dbf..df0012d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ include-package-data = true zip-safe = false [tool.setuptools.packages.find] -include = ["meta", "cms", "cms.*"] +include = ["meta","meta.*", "cms", "cms.*"] [tool.setuptools.dynamic] version = {attr = "meta.__version__"} diff --git a/setup.py b/setup.py deleted file mode 100644 index 634c93a..0000000 --- a/setup.py +++ /dev/null @@ -1,26 +0,0 @@ -from setuptools import setup, find_packages -import os -import sys -import meta -args = { - "name":"qcms", - "version":meta.__version__, - "author":meta.__author__,"author_email":"info@the-phi.com", - "license":meta.__license__, - # "packages":["transport","info","transport/sql"]}, - - "packages": find_packages(include=['meta','cms', 'cms.*','.'])} -args["keywords"]=['cms','www','https','flask','data-transport'] -args["install_requires"] = ['flask','gitpython','termcolor','gitpython','flask-session','mistune','typer','data-transport@git+https://github.com/lnyemba/data-transport.git'] -args['classifiers'] = ['Topic :: utilities', 'License :: MIT'] -args['include_package_data'] = True -# args['data_files'] = { -# ('','index.py'),} -args['zip_safe'] = False -args["url"] = "https://healthcareio.the-phi.com/git/code/transport.git" -args['scripts'] = ['bin/qcms'] -# if sys.version_info[0] == 2 : -# args['use_2to3'] = True -# args['use_2to3_exclude_fixers']=['lib2to3.fixes.fix_import'] -setup(**args) -