
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Support venv detection on Windows with mingw Python Β· Issue #12544 Β· pytest-dev/pytest
Description:
What's the problem this feature will solve? Currently pytest checks platform depended paths in a directory to see if it might be a venv: pytest/src/_pytest/main.py Lines 370 to 387 in 0ed2d79 d...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Education
- Technology & Computing
- Automotive
Content Management System {π}
What CMS is github.com built with?
Github.com utilizes 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,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
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 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
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 {π}
venv, issue, python, pyvenvcfg, mingw, pytest, windows, added, zachsnicker, commented, sign, support, detection, lazka, platform, type, bluetech, solutions, code, pull, projects, closed, problem, activate, return, check, commit, references, ronnypfannschmidt, member, contributor, webknjaz, navigation, pytestdev, requests, actions, security, directory, path, virtual, environment, checking, existence, false, activates, fine, include, assume, happy, run,
Topics {βοΈ}
support venv detection org/pep-0405/ defines venvs pytest/src/_pytest/main activity lazka added issue easy issue include test coverage pull request official cpython releases avoid stdlib distutils python binary accompanied type projects site-packages directory projects milestone initial code python virtual environment zachsnicker mentioned contributor platform run pytest code mingw python venv files venv module mingw type virtual environment 7 years ago simpler test platform replace solutions addressed type bin/scripts def _in_venv unix layout collect tests current logic additional research simplest form milestone relationships pytest return false bug problem works fine github venv activate script cfg file bin added bindir = path python 3 python 2
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Can I take this up?
- What's the problem this feature will solve?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Support venv detection on Windows with mingw Python
articleBody:#### What's the problem this feature will solve?
Currently pytest checks platform depended paths in a directory to see if it might be a venv: https://github.com/pytest-dev/pytest/blob/0ed2d79457b499119693588b71233db957e972c0/src/_pytest/main.py#L370-L387
This works fine with the official CPython releases, but the mingw Python on Windows uses the Unix layout, which looks like this, despite being on Windows:
```console
$ tree -L 1 .venv
.venv
βββ bin
βββ include
βββ lib
βββ pyvenv.cfg
```
This results in pytest trying to collect tests in venv files by default.
#### Describe the solution you'd like
I can see three solutions to this:
1) Check for both bin/Scripts
2) First check for the existence of "pyvenv.cfg", which should be in every venv on every platform
3) Replace the current logic and just check for "pyvenv.cfg". "pyvenv.cfg" was introduced in Python 3.3 with the venv module, so it might be enough to assume it exists in every venv. Maybe I'm missing something though.
**Note:** I'm happy to create a PR for any of the above solutions.
author:
url:https://github.com/lazka
type:Person
name:lazka
datePublished:2024-06-28T05:36:30.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/12544/pytest/issues/12544
context:https://schema.org
headline:Support venv detection on Windows with mingw Python
articleBody:#### What's the problem this feature will solve?
Currently pytest checks platform depended paths in a directory to see if it might be a venv: https://github.com/pytest-dev/pytest/blob/0ed2d79457b499119693588b71233db957e972c0/src/_pytest/main.py#L370-L387
This works fine with the official CPython releases, but the mingw Python on Windows uses the Unix layout, which looks like this, despite being on Windows:
```console
$ tree -L 1 .venv
.venv
βββ bin
βββ include
βββ lib
βββ pyvenv.cfg
```
This results in pytest trying to collect tests in venv files by default.
#### Describe the solution you'd like
I can see three solutions to this:
1) Check for both bin/Scripts
2) First check for the existence of "pyvenv.cfg", which should be in every venv on every platform
3) Replace the current logic and just check for "pyvenv.cfg". "pyvenv.cfg" was introduced in Python 3.3 with the venv module, so it might be enough to assume it exists in every venv. Maybe I'm missing something though.
**Note:** I'm happy to create a PR for any of the above solutions.
author:
url:https://github.com/lazka
type:Person
name:lazka
datePublished:2024-06-28T05:36:30.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/12544/pytest/issues/12544
Person:
url:https://github.com/lazka
name:lazka
url:https://github.com/lazka
name:lazka
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:5
interactionType:https://schema.org/CommentAction
userInteractionCount:5
External Links {π}(3)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- 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