From cf5d85497b81651eda0914feafcd269e9c0c1884 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Sat, 14 Jun 2025 08:16:43 +1000 Subject: [PATCH] doc updates --- README.rst | 4 ++-- pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++ setup.py | 47 ----------------------------------------------- 3 files changed, 40 insertions(+), 49 deletions(-) delete mode 100644 setup.py diff --git a/README.rst b/README.rst index 1c5cef9..e84b8fd 100644 --- a/README.rst +++ b/README.rst @@ -144,14 +144,14 @@ To build the package, you will need to install the following packages: :: - pip install setuptools wheel twine + pip install build Then, from the root directory of the repository, run: :: rm -rf dist/* - python3 setup.py sdist bdist_wheel + python3 -m build The package will be built in the ``dist`` directory. diff --git a/pyproject.toml b/pyproject.toml index 022472c..2ddd4a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,41 @@ [build-system] requires = ["setuptools>=42", "wheel"] build-backend = "setuptools.build_meta" + +[project] +name = "pystackql" +version = "3.8.0" +description = "A Python interface for StackQL" +readme = "README.rst" +authors = [ + {name = "Jeffrey Aven", email = "javen@stackql.io"} +] + +license = "MIT" +classifiers = [ + "Operating System :: Microsoft :: Windows", + "Operating System :: MacOS", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] +requires-python = ">=3.9" +dependencies = [ + "requests", + "pandas", + "IPython", + "psycopg[binary]>=3.1.0", + "nest-asyncio>=1.5.5", + "termcolor>=1.1.0", + "tqdm>=4.61.0", +] + +[tool.setuptools] +packages = ["pystackql"] + +[project.urls] +Homepage = "https://github.com/stackql/pystackql" +Documentation = "https://pystackql.readthedocs.io" \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index f69d19d..0000000 --- a/setup.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- - -from setuptools import setup, find_packages - -with open('README.rst') as f: - readme = f.read() - -with open('LICENSE') as f: - license = f.read() - -setup( - name='pystackql', - version='v3.8.0', - description='A Python interface for StackQL', - long_description=readme, - author='Jeffrey Aven', - author_email='javen@stackql.io', - url='https://github.com/stackql/pystackql', - license=license, - packages=['pystackql'], - # include_package_data=True, - install_requires=[ - 'requests', - 'pandas', - 'IPython', - 'psycopg[binary]>=3.1.0', # Added psycopg with binary wheels for all platforms - 'nest-asyncio>=1.5.5', # For async support in Jupyter - 'termcolor>=1.1.0', # For colored output in test runner - 'tqdm>=4.61.0', # For progress bars in download method - ], - # entry_points={ - # 'console_scripts': [ - # 'stackql = pystackql:setup' - # ] - # }, - classifiers=[ - 'Operating System :: Microsoft :: Windows', - 'Operating System :: MacOS', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3.13', - 'License :: OSI Approved :: MIT License', - ] -)