summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDennis Fink2019-08-27 11:28:19 +0200
committerDennis Fink2019-08-27 11:28:19 +0200
commitad8244571d87412acce2773005ef248ab9bfcfb6 (patch)
treeaf88910e7fe964b06f1ab65f33b9fbf78a1694e7 /setup.py
parent87c29c09c159c251cbe303fd8dd1f520d7dd187f (diff)
downloadpatternutils-ad8244571d87412acce2773005ef248ab9bfcfb6.tar.gz
patternutils-ad8244571d87412acce2773005ef248ab9bfcfb6.zip
Use global variables for version an entry_points in setup.py
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/setup.py b/setup.py
index f5919d1..91e6062 100644
--- a/setup.py
+++ b/setup.py
@@ -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,