From 3d8eabfaba8f4995957d4218e3c12621cb98ee2c Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Nov 17 2019 20:16:28 +0000 Subject: Changes in setup and gitignore --- diff --git a/.gitignore b/.gitignore index c5d21b6..edbea12 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,6 @@ build/ *.pyo *.swp *.egg-info +*.eggs/ *.conf __pycache__ diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..04f196a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include README.md +include LICENSE diff --git a/cranc/commands/create.py b/cranc/commands/create.py index b07a815..14655de 100644 --- a/cranc/commands/create.py +++ b/cranc/commands/create.py @@ -26,7 +26,7 @@ def create_pr(ctx, repo_to, title, branch_to, branch_from, repo_from): try: api_token = ctx.obj['api_token'] except KeyError: - raise click.UsageError('Missing required API token to create a PR') + raise click.UsageError('Missing required API token to create a PR. Type: cranc config') project = ctx.obj['project'] instance_url = ctx.obj['instance_url'] repo_to = utils.get_dict_from_str(repo_to) diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 964dabd..0000000 --- a/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -# Used for when working from a virtualenv. -# Use this file by running "$ pip install -r requirements.txt" -black -click -git-url-parse --e git+https://pagure.io/libpagure.git#egg=libpagure -pbr -pytest -requests diff --git a/setup.cfg b/setup.cfg index 4e6cab6..e58b2c7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,17 +1,24 @@ [metadata] name = cranc -version = 1.0.1 -summary = command line interface tool for Pagure pull requests -description-file = README.rst +version = 1.1.0 +description = command line interface tool for Pagure pull requests +long_description = file: README.rst license_file = LICENSE author = Lenka Segura -author-email = lenka@sepu.cz -home-page = https://pagure.io/cranc +author_email = lenka@sepu.cz +url = https://pagure.io/cranc -[files] -packages= - cranc +[options] +install_requires = + click + git-url-parse + libpagure + requests +tests_require = + black + pytest +packages = find: -[entry_points] +[options.entry_points] console_scripts = cranc = cranc.cranc:cranc diff --git a/setup.py b/setup.py index fd2c28f..8b95793 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,4 @@ from setuptools import setup -setup( - setup_requires=['pbr'], - pbr=True, -) +setup()