#3374 Add long description to setup.py
Merged 2 months ago by tkopecek. Opened 3 months ago by tkopecek.
tkopecek/koji pypi-long-desc  into  master

file modified
+1
@@ -146,6 +146,7 @@ 

  BuildRequires: python3-pip

  BuildRequires: python3-wheel

  BuildRequires: python3-setuptools

+ BuildRequires: python3-six

  %if 0%{?fedora} || 0%{?rhel} >= 8

  Requires: python%{python3_pkgversion}-rpm

  %else

file modified
+14 -1
@@ -1,6 +1,7 @@ 

  #!/usr/bin/env python

  from __future__ import absolute_import

  

+ import os.path

  from setuptools import setup

  

  
@@ -23,16 +24,25 @@ 

  

  

  def get_version():

-     exec(open('koji/_version.py', 'rt').read())

+     cwd = os.path.dirname(__file__)

+     exec(open(os.path.join(cwd, 'koji/_version.py'), 'rt').read())

      return(locals()['__version__'])

  

  

+ def get_long_description():

+     cwd = os.path.dirname(__file__)

+     return open(os.path.join(cwd, "README.md"), "rt").read()

+ 

+ 

  setup(

      name="koji",

      version=get_version(),

      description=("Koji is a system for building and tracking RPMS. The base"

                   " package contains shared libraries and the command-line"

                   " interface."),

+     long_description=get_long_description(),

+     long_description_content_type='text/markdown',

+     include_package_data=True,

      license="LGPLv2 and GPLv2+",

      url="http://pagure.io/koji/",

      author='Koji developers',
@@ -58,6 +68,9 @@ 

          'koji_cli': 'cli/koji_cli',

          'koji_cli_plugins': 'plugins/cli',

      },

+     package_data={

+         '': ['README.md'],

+     },

      # doesn't make sense, as we have only example config

      # data_files=[

      #     ('/etc', ['cli/koji.conf']),

rebased onto ee287c008bc1b21bef53510a52b5d4e670717ffc

3 months ago

It fails in some cases (jenkins process will replicate it, but only first time, probably during rpm dep rebuild). It looks there is some cache created that fix it for next run. Need some free time to look at it.

rebased onto a3faa2334c170a8aa2e6fa44ca6fb234214417f7

3 months ago

rebased onto 9053487b356986848eaf7087c9f5ce3a1daafa58

3 months ago

1 new commit added

  • w
3 months ago

rebased onto 8107fcf97a89d48cc8265b761eef91ba68d3daae

3 months ago

rebased onto 5c978710d638d7c2b72b4762eb58d99c8f16836e

3 months ago

Metadata Update from @tkopecek:
- Pull-request tagged with: no_qe

3 months ago

rebased onto 30daec8

2 months ago

Commit 52c608a fixes this pull-request

Pull-Request has been merged by tkopecek

2 months ago