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='seandhunt_7@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='seandhunt_7@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',
]
)
|