From 313e7e59858f75a318706e401cab9f972b2ba934 Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Jul 27 2019 21:14:28 +0000 Subject: Improve setup.py and setup.cfg --- diff --git a/setup.cfg b/setup.cfg index 0c9e0fc..8b4e84b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,17 @@ [metadata] -license_file = LICENSE +name = cranc +version = 0.2.3 +summary = command line interface tool for Pagure pull requests +description = README.md +license_file = GPLv3 +author = Lenka Segura +author-email = lenka@sepu.cz +home-page = https://pagure.io/cranc + +[files] +packages= + cranc + +[entry_points] +console_scripts = + cranc = cranc.cranc:cranc diff --git a/setup.py b/setup.py index 5496f66..fd2c28f 100755 --- a/setup.py +++ b/setup.py @@ -1,22 +1,9 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -try: - from setuptools import setup -except ImportError: - from distutils import setup +from setuptools import setup setup( - name='cranc', - version='0.2.2', - description='command line interface tool for pagure pull requests', - long_description=''.join(open('README.md').readlines()), - packages=['cranc'], - author='Lenka Segura', - author_email='lenka@sepu.cz', - license='GPLv3', - entry_points=""" - [console_scripts] - cranc=cranc.cranc:cranc - """ + setup_requires=['pbr'], + pbr=True, )