
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Support cmdclass in setup.cfg Β· Issue #2570 Β· pypa/setuptools
Description:
Having cmdclass defined in setup.cfg causes sdist, or any other, command to fail because its value is not properly parsed into a dict. How to replicate setup.cfg example: [metadata] name = cmdclass example [options] packages = find: cmdc...
Website Age:
17 years and 9 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Video & Online Content
- Personal Finance
Content Management System {π}
What CMS is github.com built with?
Github.com is based on WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,666,394 visitors per month in the current month.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,347,507 paying customers.
The estimated monthly recurring revenue (MRR) is $22,459,531.
The estimated annual recurring revenues (ARR) are $269,514,368.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
setuptools, cmdclass, bump, setupcfg, sdist, file, line, issue, sign, pull, requests, projects, makeroo, buildcustomsdistcommand, setuppy, python, args, update, requirement, navigation, solutions, pypa, actions, security, support, closed, metadata, import, setuptoolssetup, class, setup, return, libpythondistutilsdistpy, venvlibpythonsitepackagessetuptoolsdistpy, parsecommandopts, string, clang, information, added, commit, references, correctly, parse, fixes, mentioned, jaraco, github, labels, milestone, footer,
Topics {βοΈ}
9/site-packages/setuptools/__init__ 9/site-packages/setuptools/dist update setuptools requirement import setuptools setuptools correctly parse cmdclass fix setuptools/dist venv/lib/python3 cmdclass[command] typeerror comment metadata assignees labels projects projects milestone py sdist traceback /lib/python3 solutions makeroo added cmdclass defined cmdclass evaluates cmdclass section parses cmdclass makeroo/main οΏ½οΏ½ python setup 9/distutils/dist sdist = build properly parsed 'custom steps recent call darwin type _parse_config_files method full minimal zip activity deps-dev assigned labels milestone relationships setuptools 1 setuptools 9/distutils/core = cmdclass def run string indices github replicate setup change setup py distribution customsdistcommand = dist information sdist [metadata] build cfg
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Support cmdclass in setup.cfg
articleBody:Having cmdclass defined in setup.cfg causes sdist, or any other, command to fail because its value is not properly parsed into a dict.
How to replicate
setup.cfg example:
```
[metadata]
name = cmdclass example
[options]
packages = find:
cmdclass =
sdist = build.CustomSdistCommand
```
setup.py:
```
import setuptools
setuptools.setup()
```
build.py
```
from setuptools.command.sdist import sdist
class CustomSdistCommand (sdist):
def run(self):
print('custom steps...')
super(sdist, self).run()
```
error:
```
β― python setup.py sdist
Traceback (most recent call last):
File ".../setup.py", line 5, in <module>
setuptools.setup()
File ".../.venv/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File ".../lib/python3.9/distutils/core.py", line 134, in setup
ok = dist.parse_command_line()
File ".../lib/python3.9/distutils/dist.py", line 483, in parse_command_line
args = self._parse_command_opts(parser, args)
File ".../.venv/lib/python3.9/site-packages/setuptools/dist.py", line 916, in _parse_command_opts
nargs = _Distribution._parse_command_opts(self, parser, args)
File ".../lib/python3.9/distutils/dist.py", line 539, in _parse_command_opts
cmd_class = self.get_command_class(command)
File ".../.venv/lib/python3.9/site-packages/setuptools/dist.py", line 750, in get_command_class
return self.cmdclass[command]
TypeError: string indices must be integers
```
It happens because self.cmdclass evaluates to the string "sdist = build.CustomSdistCommand" but it should be { "sdist": <class 'build.CustomSdistCommand'> }
Environment details:
```
β― python
Python 3.9.0 (v3.9.0:9cf6752276, Oct 5 2020, 11:29:23)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
```
PIP: 21.0.1
setuptools: 53.0.0
Possible solutions:
either change setup.cfg structure introducing options.cmdclass section or fix setuptools/dist.py Distribution._parse_config_files method so that it parses cmdclass value.
Full minimal example:
[example.zip](https://github.com/pypa/setuptools/files/5995374/example.zip)
author:
url:https://github.com/makeroo
type:Person
name:makeroo
datePublished:2021-02-17T11:50:00.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:0
url:https://github.com/2570/setuptools/issues/2570
context:https://schema.org
headline:Support cmdclass in setup.cfg
articleBody:Having cmdclass defined in setup.cfg causes sdist, or any other, command to fail because its value is not properly parsed into a dict.
How to replicate
setup.cfg example:
```
[metadata]
name = cmdclass example
[options]
packages = find:
cmdclass =
sdist = build.CustomSdistCommand
```
setup.py:
```
import setuptools
setuptools.setup()
```
build.py
```
from setuptools.command.sdist import sdist
class CustomSdistCommand (sdist):
def run(self):
print('custom steps...')
super(sdist, self).run()
```
error:
```
β― python setup.py sdist
Traceback (most recent call last):
File ".../setup.py", line 5, in <module>
setuptools.setup()
File ".../.venv/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File ".../lib/python3.9/distutils/core.py", line 134, in setup
ok = dist.parse_command_line()
File ".../lib/python3.9/distutils/dist.py", line 483, in parse_command_line
args = self._parse_command_opts(parser, args)
File ".../.venv/lib/python3.9/site-packages/setuptools/dist.py", line 916, in _parse_command_opts
nargs = _Distribution._parse_command_opts(self, parser, args)
File ".../lib/python3.9/distutils/dist.py", line 539, in _parse_command_opts
cmd_class = self.get_command_class(command)
File ".../.venv/lib/python3.9/site-packages/setuptools/dist.py", line 750, in get_command_class
return self.cmdclass[command]
TypeError: string indices must be integers
```
It happens because self.cmdclass evaluates to the string "sdist = build.CustomSdistCommand" but it should be { "sdist": <class 'build.CustomSdistCommand'> }
Environment details:
```
β― python
Python 3.9.0 (v3.9.0:9cf6752276, Oct 5 2020, 11:29:23)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
```
PIP: 21.0.1
setuptools: 53.0.0
Possible solutions:
either change setup.cfg structure introducing options.cmdclass section or fix setuptools/dist.py Distribution._parse_config_files method so that it parses cmdclass value.
Full minimal example:
[example.zip](https://github.com/pypa/setuptools/files/5995374/example.zip)
author:
url:https://github.com/makeroo
type:Person
name:makeroo
datePublished:2021-02-17T11:50:00.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:0
url:https://github.com/2570/setuptools/issues/2570
Person:
url:https://github.com/makeroo
name:makeroo
url:https://github.com/makeroo
name:makeroo
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:0
interactionType:https://schema.org/CommentAction
userInteractionCount:0
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- GSAP
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net