From 48eea90a6f972ccf8fb7076880c32bc4398bd45f Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sep 07 2019 00:40:57 +0000 Subject: [PATCH 1/3] Remove unnecessary PKG-INFO. --- diff --git a/PKG-INFO b/PKG-INFO deleted file mode 100644 index 18b469e..0000000 --- a/PKG-INFO +++ /dev/null @@ -1,11 +0,0 @@ -Metadata-Version: 1.1 -Name: R2spec -Version: 4.2.1 -Summary: R2spec is a small python tool that generates spec file and rpm for R libraries. -Home-page: https://fedorahosted.org/r2spec/ -Author: Pierre-Yves Chibon -Author-email: pingou@pingoured.fr -License: GPLv3+ -Download-URL: https://fedorahosted.org/releases/r/2/r2spec/ -Description: UNKNOWN -Platform: UNKNOWN From c6c808c5450be4ee18dff9ca0042aeaccac2a9d6 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sep 07 2019 00:40:57 +0000 Subject: [PATCH 2/3] Tell setuptools to install package data. Otherwise, the specfile.tpl template does not get installed. --- diff --git a/setup.py b/setup.py index c4a1c66..dfc41a4 100644 --- a/setup.py +++ b/setup.py @@ -24,5 +24,6 @@ setup( url='https://pagure.io/r2spec', package_dir = {'R2spec': 'r2spec'}, packages = ['r2spec'], + include_package_data=True, scripts=['R2spec', 'R2rpm'], ) From 9d91998c81070478caf5580798d8ecd5cfb2f438 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sep 07 2019 00:40:57 +0000 Subject: [PATCH 3/3] Use setuptools instead of distutils. It's more modern, expected to be everywhere, and means setup.py works the same as if using pip. --- diff --git a/setup.py b/setup.py index dfc41a4..3ced326 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Setup script from __future__ import absolute_import, division, print_function -from distutils.core import setup +from setuptools import setup from r2spec import VERSION setup(