From 581cf29db769690c08fced0607123be149b91721 Mon Sep 17 00:00:00 2001 From: sokoli Date: Fri, 26 Jan 2024 10:26:17 +0100 Subject: [PATCH] remove pyproject --- pnap_bmc_api/pyproject.toml | 30 ------------------------------ template/setup.mustache | 4 +++- 2 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 pnap_bmc_api/pyproject.toml diff --git a/pnap_bmc_api/pyproject.toml b/pnap_bmc_api/pyproject.toml deleted file mode 100644 index 4948c94d..00000000 --- a/pnap_bmc_api/pyproject.toml +++ /dev/null @@ -1,30 +0,0 @@ -[tool.poetry] -name = "pnap_bmc_api" -version = "1.0.0" -description = "Bare Metal Cloud API" -authors = ["PhoenixNAP Team "] -license = "Apache 2.0" -readme = "README.md" -repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" -keywords = ["OpenAPI", "OpenAPI-Generator", "Bare Metal Cloud API"] -include = ["pnap_bmc_api/py.typed"] - -[tool.poetry.dependencies] -python = "^3.7" - -urllib3 = ">= 1.25.3" -python-dateutil = ">=2.8.2" -pydantic = ">=2" -typing-extensions = ">=4.7.1" - -[tool.poetry.dev-dependencies] -pytest = ">=7.2.1" -tox = ">=3.9.0" -flake8 = ">=4.0.0" - -[build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" - -[tool.pylint.'MESSAGES CONTROL'] -extension-pkg-whitelist = "pydantic" diff --git a/template/setup.mustache b/template/setup.mustache index d316fbe9..bdd2a0cf 100644 --- a/template/setup.mustache +++ b/template/setup.mustache @@ -2,6 +2,7 @@ {{>partial_header}} +from {{packageName}}.version import VERSION from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following @@ -11,7 +12,8 @@ from setuptools import setup, find_packages # noqa: H301 # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "{{{projectName}}}" -VERSION = {{VERSION}} +VERSION = VERSION + PYTHON_REQUIRES = ">=3.7" {{#apiInfo}} {{#apis}}