diff --git a/pyproject.toml b/pyproject.toml index 8fe2f47..2c00719 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,56 @@ [build-system] -requires = ["setuptools>=42", "wheel"] +requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" + +[project] +name = "pytimbr_api" +version = "1.0.9" +description = "Timbr REST API connector" +readme = "README.md" +license = "MIT" +authors = [ + {name = "timbr", email = "contact@timbr.ai"} +] +maintainers = [ + {name = "timbr", email = "contact@timbr.ai"} +] +keywords = [ + "timbr", + "timbr-http", + "timbr-https", + "timbr-rest", + "timbr-api", + "timbr-rest-api", + "timbr-connector", + "PyTimbrRestAPI", + "PyTimbr", + "pytimbrapi", + "PyTimbrAPI", + "pytimbr_api", + "PyTimbr_API" +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Topic :: Software Development :: Build Tools", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12" +] +requires-python = ">=3.9" +dependencies = [ + "requests>=2.32.3" +] + +[project.urls] +Homepage = "https://github.com/WPSemantix/timbr_python_http" +Download = "https://github.com/WPSemantix/timbr_python_http/archive/refs/tags/v1.0.9.tar.gz" +"Bug Tracker" = "https://github.com/WPSemantix/timbr_python_http/issues" +Repository = "https://github.com/WPSemantix/timbr_python_http" + +[tool.setuptools.packages.find] +where = ["."] +include = ["pytimbr_api*"] +exclude = ["test*"] diff --git a/setup.py b/setup.py index 3e7cc1a..3f5f842 100644 --- a/setup.py +++ b/setup.py @@ -1,50 +1,5 @@ -import setuptools +# This file is kept for backward compatibility +# All configuration is now in pyproject.toml +from setuptools import setup -with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() - -setuptools.setup( - name='pytimbr_api', - version='1.0.8', - author='timbr', - author_email='contact@timbr.ai', - description='Timbr REST API connector', - long_description=long_description, - long_description_content_type="text/markdown", - url='https://github.com/WPSemantix/timbr_python_http', - download_url = 'https://github.com/WPSemantix/timbr_python_http/archive/refs/tags/v1.0.8.tar.gz', - project_urls={ - "Bug Tracker": "https://github.com/WPSemantix/timbr_python_http/issues" - }, - license='MIT', - packages=['pytimbr_api'], - install_requires=[ - 'requests>=2.32.3', - ], - package_data={}, - keywords = [ - 'timbr', - 'timbr-http', - 'timbr-https', - 'timbr-rest', - 'timbr-api', - 'timbr-rest-api', - 'timbr-connector', - 'PyTimbrRestAPI', - 'PyTimbr', - 'pytimbrapi', - 'PyTimbrAPI', - 'pytimbr_api', - 'PyTimbr_API', - ], - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Topic :: Software Development :: Build Tools', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - ], -) +setup()