profile
viewpoint

Bttstrp/bootstrap-switch 5099

Turn checkboxes and radio buttons in toggle switches.

6si/shipwright 111

Shipwright | The right way to build, tag and ship Docker containers.

binarydud/redshift_sqlalchemy 51

Amazon Redshift SQLAlchemy Dialect

bcoe/imaplib2 9

Fork of Piers Lauder's imaplib2 library for Python.

denji/cpulimit 9

CPU usage limiter for Linux, Solaris, *BSD, macOS

chrissorchard/malucrawl 5

GDP 23: Trending Terms Malware Crawler

danpalmer/mondo-bills 2

A service to monitor subscriptions and bills coming out of your Mondo account automatically.

issue commentpytest-dev/pytest

cannot make unicode match assertions with pytest.raises python2 pytest

@asottile I think the fix for this was already merged into the maintenance branch

graingert

comment created time in 5 hours

pull request commentpython-modernize/python-modernize

Monkey patch iterating context to include dict.

@rowillia you might want to make a PR to https://github.com/jreese/fissix then if https://github.com/python-modernize/python-modernize/pull/203 lands it will work in modernize too

rowillia

comment created time in 10 hours

pull request commenttimothycrosley/isort

Issue 1160: remove redundant as imports

@ucodery this import x as x syntax is used in mypy with https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport

ucodery

comment created time in 13 hours

issue openedtimothycrosley/isort

point to a specific requirements.txt in isort.cfg

I have multiple requirements eg requirements.txt requirements-test.txt etc

created time in 13 hours

Pull request review commentjreese/fissix

add test for index in iteration context Refs #12

 def test_map_trailers(self):         a = """x = list(map(f, 'abc'))[0][1]"""         self.check(b, a) +        b = """x = set(map(f, 'abc')[0])"""+        a = """x = set(list(map(f, 'abc'))[0])"""

@jreese this now fails as expected, a bug here? https://github.com/jreese/fissix/blob/master/fissix/fixer_util.py#L249-L265

I'm not sure how to fix the pattern though

graingert

comment created time in a day

push eventgraingert/fissix

Thomas Grainger

commit sha 131e770dfdf26710f06fd254dfcce314acf91c07

add test for index in iteration context Refs #12

view details

push time in a day

push eventgraingert/fissix

Thomas Grainger

commit sha ad11621ecfb954be14c38bdb4c01e71ef2de9015

Update fissix/tests/test_fixers.py

view details

push time in a day

Pull request review commentjreese/fissix

add test for index in iteration context Refs #12

 def test_map_trailers(self):         a = """x = list(map(f, 'abc'))[0][1]"""         self.check(b, a) +        b = """x = set(map(f, 'abc')[0])"""+        b = """x = set(list(map(f, 'abc'))[0])"""
        a = """x = set(list(map(f, 'abc'))[0])"""
graingert

comment created time in a day

push eventgraingert/fissix

Thomas Grainger

commit sha 2cc6a73c74bdddabf37a6d7be6a8af32aff9da5b

clarify permission to distribution permission to distribute fissix/pgen2/tokenize.py Fixes #8

view details

Thomas Grainger

commit sha 3d888be56b56bced4a6a28d9532989e238a806d6

Update LICENSE

view details

Thomas Grainger

commit sha bb4bf03c8d09266d9b6aad693549f3443815e6ef

run tests

view details

John Reese

commit sha da8375246a4bba6bbcf7bc73fa254db287aeb874

Merge pull request #11 from graingert/patch-1 clarify permission to distribution permission to distribute fissix/pg…

view details

John Reese

commit sha 9f66acdbe268299974d84ae645e14a0830bc3a46

Merge pull request #14 from graingert/run-tests run tests

view details

Thomas Grainger

commit sha dc842d3af5d59ae5b14e6f3822637330f0bc98ca

add test for index in iteration context Refs #12

view details

push time in a day

delete branch graingert/fetch

delete branch : patch-1

delete time in 6 days

issue commentasottile/pyupgrade

some way to skip replacing mock with unittest.mock

thirdly how should other backports be handled? eg functools32 contextlib2 pkg_util_resolve_name etc?

graingert

comment created time in 7 days

issue commentasottile/pyupgrade

some way to skip replacing mock with unittest.mock

Also I don't like an autodetect because I don't want some project files using unittest.mock and others using mock

graingert

comment created time in 7 days

issue commentasottile/pyupgrade

some way to skip replacing mock with unittest.mock

also mock.patch behaves differently when applied to a coroutinefunction

graingert

comment created time in 7 days

issue openedasottile/pyupgrade

some way to skip replacing mock with unittest.mock

when you're using python 3.6 unittest.mock.AsyncMock is unavailable, but mock.AsyncMock is available if you're using the latest backport

there should be some way to skip replacing mock with unittest.mock, or the fixer should be moved to --py38-plus and then to a later --py...-plus as and when unittest.mock gains features

created time in 7 days

issue commentPyCQA/pyflakes

Exclude "import ... as _" from unused-imports

another option:

import something
assert something
del something
anntzer

comment created time in 8 days

delete branch graingert/fissix

delete branch : patch-1

delete time in 10 days

PR opened tolomea/django-data-browser

replace description
+4 -1

0 comment

1 changed file

pr created time in 13 days

push eventgraingert/django-data-browser

Thomas Grainger

commit sha b4f107fc3cd560832e063cc32972c8a9aa2b03e5

replace description

view details

push time in 13 days

fork graingert/django-data-browser

Django app for user friendly querying of Django models

fork in 13 days

delete branch graingert/django-capture-on-commit-callbacks

delete branch : patch-1

delete time in 14 days

push eventgraingert/django-capture-on-commit-callbacks

Thomas Grainger

commit sha 3621577185d034f2019b963fb5fd8687543e6d30

Fix all call typo

view details

push time in 14 days

fork graingert/django-capture-on-commit-callbacks

Capture and make assertions on transaction.on_commit() callbacks.

fork in 14 days

pull request commentpython/cpython

bpo-40697 add fissix as a 3rd party lib2to3 alternative

@remilapeyre I've added a bpo issue

graingert

comment created time in 14 days

issue commentdocker/for-linux

Ensure Ubuntu packages for upcoming releases (LTS or otherwise) become available on a timely manner

@StefanScherer do you know when packages for 20.10 will be available?

behrangsa

comment created time in 15 days

pull request commentjreese/fissix

run tests

@jreese there's a few tests that fail already, I assume because of changes to how things are pickled to work with site-packages?

graingert

comment created time in 16 days

Pull request review commentjreese/fissix

run tests

-# Author: Collin Winter--import os--from test.support import load_package_tests---def load_tests(*args):-    return load_package_tests(os.path.dirname(__file__), *args)

I couldn't work out how to get this to work, so I used pytest to collect instead

Traceback (most recent call last):
  File "/home/graingert/projects/fissix/fissix/tests/__init__.py", line 9, in load_tests
    return load_package_tests(os.path.dirname(__file__), *args)
  File "/usr/lib/python3.8/test/support/__init__.py", line 243, in load_package_tests
    package_tests = loader.discover(start_dir=pkg_dir,
AssertionError: Path must be within the project
graingert

comment created time in 16 days

push eventgraingert/fissix

Thomas Grainger

commit sha bb4bf03c8d09266d9b6aad693549f3443815e6ef

run tests

view details

push time in 16 days

PR opened jreese/fissix

run tests

Description

<describe bug fix or new feature>

Fixes: #

+11 -6

0 comment

6 changed files

pr created time in 16 days

create barnchgraingert/fissix

branch : run-tests

created branch time in 16 days

PR opened jreese/fissix

add test for index in iteration context Refs #12

Description

<describe bug fix or new feature>

Fixes: #

+4 -0

0 comment

1 changed file

pr created time in 16 days

create barnchgraingert/fissix

branch : add-test-for-index-in-iteration-context

created branch time in 16 days

issue openedjreese/fissix

https://github.com/python-modernize/python-modernize/issues/204

Description

https://github.com/python-modernize/python-modernize/issues/204

input:

print(set(zip(*[(1, 2)])[0]))

output:

print(set(zip(*[(1, 2)])[0]))

expected:

print(set(list(zip(*[(1, 2)]))[0]))

Details

  • OS:
  • Python version:
  • fissix version:
  • Can you repro on master?
  • Can you repro in a clean virtualenv?

created time in 16 days

pull request commentpython-modernize/python-modernize

Monkey patch iterating context to include dict.

@takluyver lib2to3 is deprecated and won't receive new upstream patches

rowillia

comment created time in 16 days

push eventgraingert/docker-py

Thomas Grainger

commit sha ef6d4fabad9bebd1b585b68807d34737eaf4695c

copy deprecated splitnport from stdlib Signed-off-by: Thomas Grainger <tagrain@gmail.com>

view details

push time in 16 days

push eventgraingert/docker-py

Thomas Grainger

commit sha 4b36ad909da3a52b010d13dd9d560af622d43c99

copy deprecated splitnport from stdlib

view details

push time in 16 days

push eventgraingert/docker-py

Thomas Grainger

commit sha dda28592d565f0bb732698519127978f649fd9f3

!fixup

view details

push time in 16 days

Pull request review commentdocker/docker-py

copy deprecated splitnport from stdlib Fixes #2566

 def parse_repository_tag(repo_name):     return repo_name, None  +def _splitnport(host, defport=-1):+    """+    Split host and port, returning numeric port.+    Return given default port if no ':' found; defaults to -1.+    Return numerical port if a valid number are found after ':'.+    Return None if ':' but not a valid number.
    Return None if ':' but not a valid number.

graingert

comment created time in 16 days

push eventgraingert/docker-py

Thomas Grainger

commit sha c8682588f97af4d57b062735c8a5a893045b72c9

!fixup

view details

push time in 16 days

Pull request review commentdocker/docker-py

copy deprecated splitnport from stdlib Fixes #2566

 def parse_repository_tag(repo_name):     return repo_name, None  +def _splitnport(host, defport=-1):+    """+    Split host and port, returning numeric port.+    Return given default port if no ':' found; defaults to -1.+    Return numerical port if a valid number are found after ':'.+    Return None if ':' but not a valid number.+    

graingert

comment created time in 16 days

Pull request review commentdocker/docker-py

copy deprecated splitnport from stdlib Fixes #2566

 def parse_repository_tag(repo_name):     return repo_name, None  +def _splitnport(host, defport=-1):+    """+    Split host and port, returning numeric port.+    Return given default port if no ':' found; defaults to -1.+    Return numerical port if a valid number are found after ':'.+    Return None if ':' but not a valid number.+    +    From https://github.com/python/cpython/blob/3.8/Lib/urllib/parse.py

is this code long enough to need a licence declaration?

graingert

comment created time in 16 days

PR opened docker/docker-py

copy deprecated splitnport from stdlib Fixes #2566
+24 -8

0 comment

1 changed file

pr created time in 16 days

push eventgraingert/docker-py

Thomas Grainger

commit sha e8b04b580a9355b419ab989ab1092aa7e33c7935

copy deprecated splitnport from stdlib

view details

push time in 16 days

pull request commentpython-modernize/python-modernize

depend on fissix, lib2to3 fork Fixes #202

@takluyver ^

graingert

comment created time in 19 days

issue openedpython-modernize/python-modernize

fix_zip when indexed in iteration context

input:

print(set(zip(*[(1, 2)])[0]))

output:

from six.moves import zip
print(set(zip(*[(1, 2)])[0]))
from six.moves import zip
print(set(list(zip(*[(1, 2)]))[0]))

created time in 19 days

push eventgraingert/python-modernize

Thomas Grainger

commit sha ec076dd2a355f4284b17c103a6ef417bc22f7ea8

Update README.rst

view details

push time in 20 days

PR opened facebookincubator/Bowler

add move to using LibCST to roadmap
+2 -0

0 comment

1 changed file

pr created time in 20 days

push eventgraingert/Bowler

Thomas Grainger

commit sha 67c973d175417cfc264605b493ec1ade7bfb0e32

add move to using LibCST to roadmap

view details

push time in 20 days

fork graingert/Bowler

Safe code refactoring for modern Python.

https://pybowler.io

fork in 20 days

PR opened python/cpython

add fissix as a 3rd party lib2to3 alternative

<!-- Thanks for your contribution! Please read this comment in its entirety. It's quite important.

Pull Request title

It should be in the following format:

bpo-NNNN: Summary of the changes made

Where: bpo-NNNN refers to the issue number in the https://bugs.python.org.

Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.

Backport Pull Request title

If this is a backport PR (PR made against branches other than master), please ensure that the PR title is in the following format:

[X.Y] <title from the original PR> (GH-NNNN)

Where: [X.Y] is the branch name, e.g. [3.6].

GH-NNNN refers to the PR number from master.

-->

+3 -2

0 comment

1 changed file

pr created time in 20 days

push eventgraingert/cpython

Thomas Grainger

commit sha 310f4ec958f7f12b4cba30617077f21599a54c78

add fissix as a 3rd party lib2to3 alternative

view details

push time in 20 days

create barnchgraingert/python-modernize

branch : modernize-fissix

created branch time in 20 days

push eventgraingert/fissix

Thomas Grainger

commit sha 3d888be56b56bced4a6a28d9532989e238a806d6

Update LICENSE

view details

push time in 20 days

Pull request review commentjreese/fissix

clarify permission to distribution permission to distribute fissix/pg…

+Some Python files have been taken from the standard library and are therefore+PSF licensed.  Modifications on these files are also PSF).These files are:
PSF licensed.  Modifications on these files are also PSF. These files are:
graingert

comment created time in 20 days

PR opened jreese/fissix

clarify permission to distribution permission to distribute fissix/pg…

…en2/tokenize.py Fixes #8

Description

<describe bug fix or new feature>

Fixes: #

+6 -0

0 comment

1 changed file

pr created time in 20 days

push eventgraingert/fissix

Thomas Grainger

commit sha 2cc6a73c74bdddabf37a6d7be6a8af32aff9da5b

clarify permission to distribution permission to distribute fissix/pgen2/tokenize.py Fixes #8

view details

push time in 20 days

delete branch graingert/fissix

delete branch : patch-1

delete time in 20 days

delete branch graingert/tachyon-gun

delete branch : patch-1

delete time in 20 days

PR opened omnilib/aiomultiprocess

update docs, map takes a coroutinefunction

Description

<describe bug fix or new feature>

Fixes: #

+1 -1

0 comment

1 changed file

pr created time in 21 days

push eventgraingert/aiomultiprocess

Thomas Grainger

commit sha 80251e07ea87cb0d4b6cf338d00328d46b96bdeb

update docs, map takes a coroutinefunction

view details

push time in 21 days

fork graingert/aiomultiprocess

Take a modern Python codebase to the next level of performance.

https://aiomultiprocess.omnilib.dev

fork in 21 days

PR opened jreese/fissix

test with py3.8 on travis
+1 -0

0 comment

1 changed file

pr created time in 21 days

pull request commentpython-modernize/python-modernize

depend on fissix, lib2to3 fork Fixes #202

while fissix doesn't support running under py2.7 or py3.5 it will still parse the code from those version

graingert

comment created time in 21 days

push eventgraingert/fissix

Thomas Grainger

commit sha 911bce5aed0295b1b6577c7ad519b8089fed514d

test with py3.8 on travis

view details

push time in 21 days

fork graingert/fissix

backport of lib2to3, with enhancements

fork in 21 days

push eventgraingert/python-modernize

Thomas Grainger

commit sha 891f3495699ea7f9d597621b888bf1da05e5fbf9

drop EOL py2.7, and nearly EOL py3.5

view details

push time in 21 days

push eventgraingert/python-modernize

Thomas Grainger

commit sha d3c7ece93ef72a1d72d467f4c66d7fb30cc4dcfa

note that fissix is a fork of lib2to3

view details

push time in 21 days

Pull request review commentpython-modernize/python-modernize

depend on fissix, lib2to3 fork Fixes #202

       | '  \/ _ \/ _` / -_) '_| ' \| |_ / -_)       |_|_|_\___/\__,_\___|_| |_||_|_/__\___| -This library is a very thin wrapper around `lib2to3-<https://github.com/python/cpython/tree/master/Lib/lib2to3>`_ to utilize it+This library is a very thin wrapper around `fissix+<https://github.com/python/cpython/tree/master/Lib/fissix>`_ to utilize it
This library is a very thin wrapper around `fissix
<https://github.com/jreese/fissix>`_, a fork of lib2to3, to utilize it
graingert

comment created time in 21 days

create barnchgraingert/python-modernize

branch : fissix

created branch time in 21 days

fork graingert/python-modernize

Modernizes Python code for eventual Python 3 migration. Built on top of 2to3.

http://python-modernize.readthedocs.org/

fork in 21 days

issue openedpython-modernize/python-modernize

lib2to3 is deprecated, depend on fissix instead?

https://github.com/python/cpython/commit/503de7149d03bdcc671dcbbb5b64f761bb192b4d

created time in 21 days

delete branch graingert/epsilon

delete branch : py3

delete time in 22 days

created tagpsphere-project/psphere

tag0.6.0

vSphere SDK for Python. Provision, manage and query objects in your vSphere infrastructure.

created time in 22 days

push eventpsphere-project/psphere

Thomas Grainger

commit sha ea96f6fc93de25c37ee7d0029910f8a2eed4ed15

update changelog

view details

Thomas Grainger

commit sha 51dd90ded737c679235ec664022a8211212001ba

Preparing release 0.6.0

view details

Thomas Grainger

commit sha 7d2c68fddb14b08d6d6fa4ddde33685d41d2f9c7

Back to development: 0.6.1

view details

push time in 22 days

delete branch psphere-project/psphere

delete branch : upgrade-setup-py

delete time in 22 days

push eventpsphere-project/psphere

Thomas Grainger

commit sha 446901b46609e4f2e6122f10a344d8de8ebbf27d

upgrade setup.py

view details

Thomas Grainger

commit sha a99d4ec1235a0b5bd6050ac6b8ef5642d93d469b

remove unspported py3.4 add py3.8

view details

Thomas Grainger

commit sha 695d42c6f0edadef8ed1d7b5d4d0e7c9aced3f0c

Merge pull request #26 from psphere-project/upgrade-setup-py

view details

push time in 22 days

push eventpsphere-project/psphere

Thomas Grainger

commit sha 446901b46609e4f2e6122f10a344d8de8ebbf27d

upgrade setup.py

view details

Thomas Grainger

commit sha a99d4ec1235a0b5bd6050ac6b8ef5642d93d469b

remove unspported py3.4 add py3.8

view details

push time in 22 days

PR opened psphere-project/psphere

upgrade setup.py
+42 -39

0 comment

2 changed files

pr created time in 22 days

create barnchpsphere-project/psphere

branch : upgrade-setup-py

created branch time in 22 days

pull request commenttwisted/epsilon

start port to python 3 (tests mostly pass)

@glyph I don't even remember making this PR, thanks for taking it over

graingert

comment created time in 22 days

pull request commentpytest-dev/pytest-mock

Revert "Do not mark wheel as universal"

https://github.com/pypa/packaging.python.org/issues/726

graingert

comment created time in a month

issue openedpypa/packaging.python.org

advice for maintainers on dropping universal=1

There should be some advice on what to do about universal wheels when dropping support for python versions:

https://packaging.python.org/guides/dropping-older-python-versions/

# setup.cfg
[bdist_wheel]
universal=1

created time in a month

PR closed pytest-dev/pytest-mock

Revert "Do not mark wheel as universal"

Reverts pytest-dev/pytest-mock#187

the package already has a valid python_requires:

https://github.com/pytest-dev/pytest-mock/blob/master/setup.py#L11 I think removing the py2 tag from the wheel will cause pip on py2 to download the sdist before seeing the python_requires

+2 -0

1 comment

1 changed file

graingert

pr closed time in a month

PR opened pytest-dev/pytest-mock

Revert "Do not mark wheel as universal"

Reverts pytest-dev/pytest-mock#187

+2 -0

0 comment

1 changed file

pr created time in a month

pull request commentpytest-dev/pytest-mock

Do not mark wheel as universal

the package already has a valid python_requires:

https://github.com/pytest-dev/pytest-mock/blob/master/setup.py#L11

daa

comment created time in a month

pull request commentOsirium/vcdriver

catch ManagedObjectNotFound when getting all virtual machines

@GMaxera travis seems to have stopped working on this repo

graingert

comment created time in a month

create barnchgraingert/vcdriver-1

branch : catch-object-not-found

created branch time in a month

fork graingert/vcdriver-1

A vcenter driver based on pyvmomi, fabric and pywinrm

fork in a month

create barnchgraingert/vcdriver

branch : catch-object-not-found

created branch time in a month

issue commentpytest-dev/pytest

test

Hello @waawuu did you mean to submit an issue? If so please try to fill in the issue checklist

You can also ask for help in https://webchat.freenode.net/#pylib

waawuu

comment created time in a month

issue closedpytest-dev/pytest

test

closed time in a month

waawuu

issue openedjazzband/pip-tools

get sha256 hash from simple endpoint

What's the problem this feature will solve?

when using devpi or other non- pypi.org servers the hashing falls back to downloading the asset and hashing it locally

Describe the solution you'd like

use the sha256 hash from the /simple/ endpoint

Alternative Solutions

https://github.com/devpi/devpi/issues/801#issuecomment-623510074

Additional context

/cc @fschulze https://github.com/jazzband/pip-tools/pull/1109 view-source on: https://m.devpi.net/root/pypi/+simple/devpi-server/ and view-source on: https://pypi.org/simple/devpi-server/

created time in a month

issue openeddevpi/devpi

support the PyPI JSON api

warehouse provides an API endpoint for getting release metadata https://warehouse.pypa.io/api-reference/json/ specifically I'm looking for the hashes of the assets for a particular release so that pip-compile can use them: https://github.com/jazzband/pip-tools/pull/1109

created time in a month

issue commentunosquare/passcore

enforce edit distance when resetting passwords

bump

graingert

comment created time in a month

more