diff options
| author | Dennis Fink | 2019-08-27 11:28:19 +0200 |
|---|---|---|
| committer | Dennis Fink | 2019-08-27 11:28:19 +0200 |
| commit | ad8244571d87412acce2773005ef248ab9bfcfb6 (patch) | |
| tree | af88910e7fe964b06f1ab65f33b9fbf78a1694e7 | |
| parent | 87c29c09c159c251cbe303fd8dd1f520d7dd187f (diff) | |
| download | patternutils-ad8244571d87412acce2773005ef248ab9bfcfb6.tar.gz patternutils-ad8244571d87412acce2773005ef248ab9bfcfb6.zip | |
Use global variables for version an entry_points in setup.py
Diffstat (limited to '')
| -rw-r--r-- | setup.py | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -9,6 +9,17 @@ URL = 'https://projects.metalgamer.eu/patternutils' EMAIL = 'dennis.fink@c3l.lu' AUTHOR = 'Dennis Fink' +VERSION = '0.0.1' +ENTRY_POINTS = { + 'console_scripts': [ + 'pmatch=patternutils.commands.pmatch:pmatch', + 'targs=patternutils.commands.targs:targs', + 'tmv=patternutils.commands.tmv:tmv', + 'patterncfg=patternutils.commands.patterncfg:patterncfg', + ], +} + + REQUIRED = [ 'click==7.0', ] @@ -19,20 +30,13 @@ OPTIONAL = { setup( name=NAME, - version='0.0.1', + version=VERSION, description=DESCRIPTION, author=AUTHOR, author_email=EMAIL, url=URL, packages=find_packages(exclude=('tests',)), - entry_points={ - 'console_scripts': [ - 'pmatch=patternutils.commands.pmatch:pmatch', - 'targs=patternutils.commands.targs:targs', - 'tmv=patternutils.commands.tmv:tmv', - 'patterncfg=patternutils.commands.patterncfg:patterncfg', - ], - }, + entry_points=ENTRY_POINTS, install_requires=REQUIRED, extras_requires=OPTIONAL, include_package_data=True, |
