diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..55878cb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[tool.poetry] +name = "celery-pubsub" +version = "2.0.0-beta3" +description = "A Publish and Subscribe library for Celery" +license = "MIT" +authors = ["Samuel GIFFARD "] +readme = "README.md" +homepage = "https://github.com/Mulugruntz/celery-pubsub" +repository = "https://github.com/Mulugruntz/celery-pubsub" +keywords = ["celery", "publish", "subscribe", "pubsub"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + "Topic :: Software Development :: Libraries", + "Topic :: System :: Distributed Computing", + "Topic :: Utilities", + ] + +[tool.poetry.dependencies] +python = ">=3.7" +celery = ">=4.0.0" + + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 993a186..0000000 --- a/setup.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[metadata] -description-file = README.md - -[files] -extra_files = - LICENSE \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index bec910c..0000000 --- a/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -import codecs -import os -import setuptools.command.test - - -def long_description(): - try: - return codecs.open("README.md", "r", "utf-8").read() - except IOError: - return "Long description error: Missing README.md file" - - -def _strip_comments(line): - return line.split("#", 1)[0].strip() - - -def parse_req_file(filename): - full_path = os.path.join(os.getcwd(), filename) - return [ - _strip_comments(req) - for req in codecs.open(full_path, "r", "utf-8").readlines() - if req - ] - - -def install_requires(): - return parse_req_file("requirements.txt") - - -def tests_require(): - return parse_req_file("requirements_test.txt") - - -setuptools.setup( - name="celery-pubsub", - packages=["celery_pubsub"], - version="2.0.0-beta3", - description="A Publish and Subscribe library for Celery", - long_description=long_description(), - long_description_content_type="text/markdown", - author="Samuel GIFFARD", - author_email="mulugruntz@gmail.com", - license="MIT", - url="https://github.com/Mulugruntz/celery-pubsub", - download_url="https://github.com/Mulugruntz/celery-pubsub/tarball/2.0.0-beta3", - keywords=["celery", "publish", "subscribe", "pubsub"], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", - "Topic :: Software Development :: Libraries", - "Topic :: System :: Distributed Computing", - "Topic :: Utilities", - ], - include_package_data=True, - install_requires=install_requires(), - tests_require=tests_require(), -)