[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Decorater

Decorater added the comment:

In that case why does pypi.python.org not let me change that bug track url 
option or set it anymore?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

I did some more research: setuptools didn't have this keyword either.

It was added to PyPI at some point and then probably got picked up by some 
package authors as new "optional" keyword argument for setup():

http://stackoverflow.com/questions/14459828/how-to-set-bug-tracker-url-in-setup-py-script

There isn't anything we can do about this in the Python stdlib and neither can 
setuptools (except write a filter for it).

It's probably best to let the package authors still using the keyword know that 
they have to remove the keyword settings from their setup.py.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Berker Peksag

Berker Peksag added the comment:

Again, this is not a distutils bug and it has already been reported to the 
setuptools maintainers: https://github.com/pypa/setuptools/issues/29

Quoting from the original report:

> Currently setuptools.dist.Distribution passes the unfiltered collection
> of keyword arguments up to distutils.core.Distribution. This results in
> lots of scary looking "UserWarning" messages when you actually use the
> setuptools-only options

and see also:

> It also makes it look like you're calling distutils rather than setuptools,
> since the stack trace (showing that this is a call up into setuptools)
> isn't visible.

The setuptools maintainer replied (which he also maintains distutils):

> Indeed, setuptools just passes the attributes through directly through to 
> Distribution. [...]

And by the way, I saw your own report while doing a research on this. Quoting 
from https://github.com/pypa/setuptools/issues/906

> [...] So that way setuptools can fix this bug as the standard library devs
> that manage distutils are too lazy to fix it themselves.

Next time I suggest you to do a better research before starting to blame the 
core developers.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Decorater

Decorater added the comment:

Except for the setup function, yeah. 
https://github.com/pypa/setuptools/blob/master/setuptools/__init__.py#L112

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread R. David Murray

R. David Murray added the comment:

Except that setuptools monkey patches distutiles all over the place.  So no, it 
isn't the same at all.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Decorater

Decorater added the comment:

So basically what from setuptools import setup is really doing is the same as 
doing from distutils.core import setup

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Decorater

Decorater added the comment:

The problem with setuptools on that is that they export their setup like so 
which uses the distutils setup by doing:

setup = distutils.core.setup. That is how they are doing it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Berker Peksag

Berker Peksag added the comment:

Marc-Andre is correct. bugtrack_url is a distribute/setuptools specific option. 
Please report your problem to them.

--
nosy: +berker.peksag
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

I believe you need to report this problem to the setuptools maintainers. The 
stdlib distutils itself never defined a setup() argument 'bugtrack_url', so 
raises a warning when seeing this argument.

--
nosy: +lemburg

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29115] distutils.core.setup does not let people set 'bugtrack_url'.

2016-12-30 Thread Decorater

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com