From 69b82b5e46cbb473a94ecfe26e9b7bddd54906c0 Mon Sep 17 00:00:00 2001 From: Steve Phelps Date: Thu, 18 May 2023 10:06:27 +0100 Subject: [PATCH] move project metadata to setup.cfg --- setup.cfg | 18 ++++++++++++++++++ setup.py | 9 +-------- 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..7a5ffe4 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,18 @@ +[metadata] +name = openai_pygenerator +version = attr: setuptools_scm.get_version + +[options] +packages = find: +package_dir = + =src + +[options.packages.find] +where=src + +[options.entry_points] +console_scripts = + openai_pygenerator = openai_pygenerator:main + +[tool.setuptools_scm] +write_to = openai_pygenerator/version.py diff --git a/setup.py b/setup.py index 535c487..f021df7 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,2 @@ from setuptools import setup - -setup( - name='openai_pygenerator', - use_scm_version=True, - setup_requires=['setuptools_scm'], - py_modules=['openai_pygenerator'], - package_dir={'': 'src'}, -) \ No newline at end of file +setup(use_scm_version=True, setup_requires=['setuptools_scm'])