Skip to content

Commit

Permalink
Use setuptools and its entry_points option to avoid --command-package…
Browse files Browse the repository at this point in the history
…s=stdeb.command.

However, this requires setuptools (which was removed in 2009).
  • Loading branch information
mgallet authored and nuclearsandwich committed Nov 14, 2024
1 parent fbe2834 commit 019ca56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from distutils.core import setup
from setuptools import setup
import codecs

with codecs.open('README.rst', encoding='utf-8') as file:
long_description = file.read()


setup(
name='stdeb',
# Keep version in sync with stdeb/__init__.py and install section
Expand All @@ -17,6 +16,8 @@
license='MIT',
url='http://github.com/astraw/stdeb',
packages=['stdeb', 'stdeb.command'],
entry_points={'distutils.commands': ["%(cmd)s = stdeb.command.%(cmd)s:%(cmd)s" % {'cmd': x}
for x in ('bdist_deb', 'debianize', 'install_deb', 'sdist_dsc', )], },
scripts=[
'scripts/py2dsc',
'scripts/py2dsc-deb',
Expand Down

0 comments on commit 019ca56

Please sign in to comment.