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'])