Skip to content

Commit

Permalink
move project metadata to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
phelps-sg committed May 18, 2023
1 parent 9833a35 commit 69b82b5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
18 changes: 18 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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'},
)
setup(use_scm_version=True, setup_requires=['setuptools_scm'])

0 comments on commit 69b82b5

Please sign in to comment.