[issue32716] setup.py register --repository is broken

2018-01-29 Thread Takayuki SHIMIZUKAWA

New submission from Takayuki SHIMIZUKAWA <shimizuk...@gmail.com>:

Although document 
https://docs.python.org/3.6/distutils/packageindex.html#package-cmdoptions says 
"The --repository or -r option lets you specify a PyPI server different from 
the default", if there is no URL specified in ``.pypirc`` it will display 
"ValueError:  not found in .pypirc".


::

  $ python3 setup.py register -r https://test.pypi.org/legacy/
  running register
  running egg_info
  writing dependency_links to test.egg-info/dependency_links.txt
  writing top-level names to test.egg-info/top_level.txt
  writing test.egg-info/PKG-INFO
  reading manifest file 'test.egg-info/SOURCES.txt'
  writing manifest file 'test.egg-info/SOURCES.txt'
  Traceback (most recent call last):
File "setup.py", line 4, in 
  setup(name='test')
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
  dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
  self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
  cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/register.py", line 
10, in run
  orig.register.run(self)
File "/usr/lib/python3.5/distutils/command/register.py", line 45, in run
  self._set_config()
File "/usr/lib/python3.5/distutils/command/register.py", line 80, in 
_set_config
  raise ValueError('%s not found in .pypirc' % self.repository)
  ValueError: https://test.pypi.org/legacy/ not found in .pypirc

  $ python3 -V
  Python 3.5.2

  $ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:Ubuntu 16.04.3 LTS
  Release:16.04
  Codename:   xenial

This behavior could be confirmed on Windows.

I think there are two correction methods.
One is to fix it so that we can specify any URL regardless of the setting of 
.pypirc.
The other is to write in the document that "-r option can specify server name 
or URL in .pypirc".

--
components: Distutils
messages: 311195
nosy: dstufft, eric.araujo, shimizukawa
priority: normal
severity: normal
status: open
title: setup.py register --repository is broken
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

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



[issue8304] time.strftime() and Unicode characters on Windows

2015-11-20 Thread Takayuki SHIMIZUKAWA

Takayuki SHIMIZUKAWA added the comment:

I've implemented a workaround for Sphinx:


>>> time.strftime(u'%Y 年'.encode('unicode-escape').decode(), 
>>> *args).encode().decode('unicode-escape')
2015 年

https://github.com/sphinx-doc/sphinx/blob/8ae43b9fd/sphinx/util/osutil.py#L175

--
nosy: +shimizukawa

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



[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2013-12-18 Thread Takayuki SHIMIZUKAWA

Takayuki SHIMIZUKAWA added the comment:

This issue affects mercurial too.
http://bz.selenic.com/show_bug.cgi?id=3624

--
nosy: +shimizukawa

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



[issue19556] A missing link to Python-2.7.6.tar.bz2 in Download page.

2013-11-11 Thread Takayuki SHIMIZUKAWA

New submission from Takayuki SHIMIZUKAWA:

http://python.org/download/ have a link to Python 2.7.6 bzipped source tarball 
(for Linux, Unix or Mac OS X, more compressed), but Python-2.7.6.tar.bz2 that 
is linked is not exist.

Thanks.

--
components: Build
messages: 202665
nosy: benjamin.peterson, shimizukawa
priority: normal
severity: normal
status: open
title: A missing link to Python-2.7.6.tar.bz2 in Download page.
versions: Python 2.7

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-23 Thread Takayuki SHIMIZUKAWA

Takayuki SHIMIZUKAWA added the comment:

Hi Steve,

 This becomes more of an issue since VC++ 2008 Express is no longer available 
 for download (unless you're an MSDN subscriber)

Here: http://www.microsoft.com/en-us/download/details.aspx?id=13276

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7511
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-02-24 Thread Takayuki SHIMIZUKAWA

Takayuki SHIMIZUKAWA added the comment:

FYI. I was able to build both 32bit/64bit.

Python 2.7.3 (32bit)
WinXP Professional SP3 (x86)
Visual Studio C++ Express 2008 SP1
Microsoft Windows SDK 2008

invoke Windows SDK's `CMD Shell` and do following:

C:\tmp setenv /x64 /release
C:\tmp set libpath=dummy
C:\tmp python setup.py build --plat-name=win-amd64 build_ext 
--library_dirs=C:\Python27\libs-amd64

details is here: 
http://www.freia.jp/taka/blog/python-win32-binary-building-and-x64-cross-compiling-on-32bit-platform/index.html

--
nosy: +shimizukawa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7511
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2013-01-18 Thread Takayuki SHIMIZUKAWA

Takayuki SHIMIZUKAWA added the comment:

 I think that moving to 'normpath' instead of 'normcase'

Official manual says 'abspath' include 'normpath' functionality.
I think it is need JUST remove '_os.path.normcase' calling.

But, I do not understand the circumstances which use 'normcase'.

--
nosy: +shimizukawa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14255
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14651] `pysetup run [cmd]` can't handle option values in the setup.cfg

2012-04-23 Thread Takayuki SHIMIZUKAWA

New submission from Takayuki SHIMIZUKAWA shimizuk...@gmail.com:

`pysetup run [cmd]` can't handle option values in the setup.cfg

setup.cfg::

  [sdist]
  formats = gztar
  dist-dir = _dist

run on windows::

  C: pysetup run sdist

That command generate `dist/package-version.zip` instead of 
`_dist/packcage-version.tar.gz`.

attached patch will fix it.

--
assignee: eric.araujo
components: Distutils2
files: use-setupcfg-options-r13146.patch
keywords: patch
messages: 159040
nosy: alexis, eric.araujo, shimizukawa, tarek
priority: normal
severity: normal
status: open
title: `pysetup run [cmd]` can't handle option values in the setup.cfg
type: behavior
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file25316/use-setupcfg-options-r13146.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14651
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11968] wsgiref's wsgi application sample code does not work

2011-04-30 Thread Takayuki SHIMIZUKAWA

New submission from Takayuki SHIMIZUKAWA shimizuk...@gmail.com:

WSGI sapmle code at wsgiref document 
(http://docs.python.org/py3k/library/wsgiref.html#wsgiref.util.setup_testing_defaults)
 was broken.


- status = b'200 OK'
- headers = [(b'Content-type', b'text/plain; charset=utf-8')]
+ status = '200 OK'
+ headers = [('Content-type', 'text/plain; charset=utf-8')]

--
assignee: docs@python
components: Documentation
messages: 134900
nosy: docs@python, shimizukawa
priority: normal
severity: normal
status: open
title: wsgiref's wsgi application sample code does not work
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11968
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9678] uuid._ifconfig_getnode can't work on NetBSD

2010-08-24 Thread Takayuki SHIMIZUKAWA

New submission from Takayuki SHIMIZUKAWA shimizuk...@gmail.com:

uuid.getnode() not work correctly on NetBSD5, then uuid.getnode() return random 
value per Python interpreter instance.
This problem is caused by the uuid._ifconfig_getnode() not supporting a 
'ifconfig' / 'arp' output format of NetBSD.

I create a patch for this problem and attached.

--
components: Library (Lib)
files: uuid-ifconfig_getnode-netbsd.patch
keywords: patch
messages: 114878
nosy: shimizukawa
priority: normal
severity: normal
status: open
title: uuid._ifconfig_getnode can't work on NetBSD
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1
Added file: http://bugs.python.org/file18641/uuid-ifconfig_getnode-netbsd.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9678
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com