[BUG] Invalid string type when reading declarative `setup.cfg` under Python 2
See original GitHub issueHi,
I’m seeing the following error:
error: 'egg_base' must be a directory name (got `src`)
The config contains:
[options]
...
package_dir =
= src
Contents of package_dir
is
{u'': u'src'}
(I’ve worked around this by manually reading config and patching this applying str()
to keys and vars)
Python: 2.7 OS: GNU/Linux
The issue appears to be the same as for:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:8 (3 by maintainers)
Top Results From Across the Web
pyproject.toml won't find project name with setuptools python
At the time the question was asked, setuptools did not have support for writing its configuration in a pyproject.toml file (PEP 621). So...
Read more >Specifying package version in `setup.py` - Python Help
I'm trying to upload my first package to PyPI. I'm specifying version="0.1.0" in setup.py, and version = 0.1.0 in setup.cfg.
Read more >Configuring setuptools using setup.cfg files
Setuptools allows using configuration files (usually setup. cfg ) to define a package's metadata and other options that are normally supplied to the...
Read more >Frequently Asked Questions - PyScaffold 4.3.1 documentation
Can I use PyScaffold ≥ 3 to develop a Python package that is Python 2 & 3 ... the declarative configuration with setup.cfg...
Read more >Changelog — PyJWT 2.0.1 documentation
We no longer need to use mypy Python 2 compatibility mode (comments) ... Move setup information to declarative setup.cfg (#495) by @jdufresne ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Work in #1180 released as 40.7.0.
We have users still reporting this with setuptools 41.4