New submission from Decorater:

So, I could have an example setup.py which sets a bugtrack url however using 
sdist and bdist_wheel on them produces this warning:

H:\Python\Python360\lib\distutils\dist.py:261: UserWarning: Unknown 
distribution option: 'bugtrack_url'
  warnings.warn(msg)

The issue with this is wanting to set or change the bug track url's for the 
particular packages using setup.py to generate a PKG-INFO file which explicitly 
sets the value.

Currently there is no way to modify the fields online anymore since probably 
like 3~4 months ago I before was able to do it for a little while without 
having to upload a PKG-INFO file.

Example setup.py that does this:

from setuptools import setup
import re

requirements = []
try:
    with open('requirements.txt') as f:
        requirements = f.read().splitlines()
except Exception as ex:
    with open('sasync.egg-info\requires.txt') as f:
        requirements = f.read().splitlines()

version = '0.0.1'

if not version:
    raise RuntimeError('version is not set')

with open('README') as f:
    readme = f.read()

setup(name='examplepackage',
      author='Decorater',
      author_email='seandhun...@yahoo.com',
      url='https://github.com/AraHaan/examplepackage',
      bugtrack_url='https://github.com/AraHaan/examplepackage/issues',
      version=version,
      packages=['sasync'],
      license='MIT',
      description=('example package package demonstrating that bugtrack_url is 
not recognized by distutils.'),
      long_description=readme,
      maintainer_email='seandhun...@yahoo.com',
      download_url='https://github.com/AraHaan/examplepackage',
      include_package_data=True,
      install_requires=requirements,
      platforms='Any',
      classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: Other Audience',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Libraries :: Python Modules',
      ]
)

----------
components: Distutils, Library (Lib)
messages: 284323
nosy: Decorater, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: distutils.core.setup does not let people set 'bugtrack_url'.
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29115>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to