From e2019e9df622585f7d92d321235c06aff73947a1 Mon Sep 17 00:00:00 2001 From: Leonardo Rossetti Date: May 24 2022 10:59:10 +0000 Subject: [PATCH 1/2] setup.py support --- diff --git a/pyproject.toml b/pyproject.toml index edcbbc2..d87d2ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,3 +21,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] kojid-cloud-scheduler = "kojid_cloud_scheduler.cli:run" + +[tool.dephell.main] +from = {format = "poetry", path = "pyproject.toml"} +to = {format = "setuppy", path = "setup.py"} diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9dd432e --- /dev/null +++ b/setup.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- + +# DO NOT EDIT THIS FILE! +# This file has been autogenerated by dephell <3 +# https://github.com/dephell/dephell + +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + +readme = '' + +setup( + long_description=readme, + name='kojid-cloud-scheduler', + version='0.1.0', + description='kojid cloud scheduler is a component that auto-scales koji builders based on task demand', + python_requires='==3.*,>=3.10.0', + author='Leonardo Rossetti', + author_email='lrossett@redhat.com', + license='Apache-2.0', + entry_points={ + "console_scripts": [ + "kojid-cloud-scheduler = kojid_cloud_scheduler.cli:run" + ] + }, + packages=['kojid_cloud_scheduler'], + package_dir={"": "src"}, + package_data={}, + install_requires=[], + extras_require={ + "dev": ["pytest==7.*,>=7.1.2", "pytest-sugar==0.*,>=0.9.4"] + }, +) From 5bf86d75df922aad098578b22c46f85b7aef4373 Mon Sep 17 00:00:00 2001 From: Leonardo Rossetti Date: May 24 2022 13:18:26 +0000 Subject: [PATCH 2/2] adding requirement files --- diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ + diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..62bbd2a --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,13 @@ +atomicwrites==1.4.0; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.4.0" +attrs==21.4.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +colorama==0.4.4; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0" +coverage==6.4; python_version >= "3.7" +iniconfig==1.1.1; python_version >= "3.7" +packaging==21.3; python_version >= "3.7" +pluggy==1.0.0; python_version >= "3.7" +py==1.11.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7" +pyparsing==3.0.9; python_full_version >= "3.6.8" and python_version >= "3.7" +pytest-sugar==0.9.4 +pytest==7.1.2; python_version >= "3.7" +termcolor==1.1.0 +tomli==2.0.1; python_version >= "3.7"