Skip to content

Instantly share code, notes, and snippets.

View pradyunsg's full-sized avatar
👀
Away from open source stuff for a bit.

Pradyun Gedam pradyunsg

👀
Away from open source stuff for a bit.
View GitHub Profile
@pradyunsg
pradyunsg / pip_upgrade.rst
Last active August 6, 2019 18:52
Pip Upgrade Writeup
..
Title: Collecting Information about pip's dependency resolution
Version: $Revision$
Last-Modified: $Date$
Author: Pradyun S. Gedam <[email protected]>,
Status: Draft
Type: Informational
Content-Type: text/x-rst
Created: 05-May-2016
Post-History: 15-May-2016
@pradyunsg
pradyunsg / pip_upgrade_v2.rst
Last active June 26, 2016 04:16
Proposed change to pip for better upgrading behaviour

Abstract

@pradyunsg
pradyunsg / proposal.md
Last active February 7, 2020 19:56
@pradyunsg's GSoC 2017 proposal

Adding Proper Dependency Resolution to pip

  • Name: Pradyun S. Gedam
  • Email: [[email protected]][mailto-email]
  • Github: [pradyunsg][github-profile]
  • University: [VIT University, Vellore, India][vit-homepage]
  • Course: Bachelor of Technology in Computer Science and Engineering
  • Course Term: 2016/17 - 2019/20 (4 Year)
  • Timezone: IST (GMT +5:30)
  • GSoC Blog RSS Feed URL:
@pradyunsg
pradyunsg / README.md
Last active January 24, 2019 15:25
A proposal for a new output format for pip

Reworking the output of pip install, download, wheel

Current Output

Collecting Flask
  Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)
    100% |████████████████████████████████| 92kB 296kB/s
Collecting itsdangerous>=0.21 (from Flask)
  Downloading itsdangerous-0.24.tar.gz (46kB)
@pradyunsg
pradyunsg / keybase.md
Created July 4, 2018 11:03
Keybase Identity stuff

Keybase proof

I hereby claim:

  • I am pradyunsg on github.
  • I am pradyunsg (https://keybase.io/pradyunsg) on keybase.
  • I have a public key whose fingerprint is 1A43 3BF0 F622 C12B 41EF 3A7A DA17 C4B2 9CB3 2E4B

To claim this, I am signing this object:

@pradyunsg
pradyunsg / pypi-download-dump-20190621.md
Last active June 21, 2019 16:42
6 months of PyPI download information -- project,pyversion,week,year,count -- query and data dump

There's 2 files in this Gist -- the query and the 16000 JSON records (BigQuery download limit) of the result of that executing that query.

It used >500 GB of the free 1 TB quota, so I can't really run this again. :)

@pradyunsg
pradyunsg / django-on_delete-deprecation.txt
Last active March 10, 2020 15:20
Junction Test warnings, as on March 10, 2020
tests/integrations/test_conferences.py::test_conferences
/Users/pradyunsg/Projects/junction/junction/profiles/migrations/0001_initial.py:25: RemovedInDjango20Warning: on_delete will be a required arg for OneToOneField in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),
tests/integrations/test_conferences.py::test_conferences
/Users/pradyunsg/Projects/junction/junction/conferences/migrations/0014_conferencesettings.py:63: RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ForeignKey.on_delete
('conference', models.ForeignKey(to='confe
@pradyunsg
pradyunsg / new.sql
Created April 16, 2020 17:59
Quota Usage with new BigQuery structure
SELECT
COUNT(*) as count
FROM
`the-psf.pypi.file_downloads`
WHERE
DATE(timestamp) between DATE "2020-04-01" and DATE "2020-04-15"
-- This query will process 18.3 GB when run.
This file has been truncated, but you can view the full file.
2020-05-08T17:44:53,092 Non-user install because user site-packages disabled
2020-05-08T17:44:53,102 Created temporary directory: /private/var/folders/4d/bt0_xfx56bjfmmt2bv3r5_qh0000gn/T/pip-ephem-wheel-cache-ql7y4i0p
2020-05-08T17:44:53,103 Created temporary directory: /private/var/folders/4d/bt0_xfx56bjfmmt2bv3r5_qh0000gn/T/pip-req-tracker-ch141f_5
2020-05-08T17:44:53,103 Initialized build tracking at /private/var/folders/4d/bt0_xfx56bjfmmt2bv3r5_qh0000gn/T/pip-req-tracker-ch141f_5
2020-05-08T17:44:53,103 Created build tracker: /private/var/folders/4d/bt0_xfx56bjfmmt2bv3r5_qh0000gn/T/pip-req-tracker-ch141f_5
2020-05-08T17:44:53,103 Entered build tracker: /private/var/folders/4d/bt0_xfx56bjfmmt2bv3r5_qh0000gn/T/pip-req-tracker-ch141f_5
2020-05-08T17:44:53,103 Created temporary directory: /private/var/folders/4d/bt0_xfx56bjfmmt2bv3r5_qh0000gn/T/pip-install-go6b3ifp
2020-05-08T17:44:53,178 1 location(s) to search for versions of alembic:
2020-05-08T17:44:53,178 * https://pypi.org/simple/alembic/
2020-05-08T17:
function commands_to_test() {
pip install oslo.utils==1.4.0
}
if [ "$VIRTUAL_ENV" ]; then
echo "Please run 'deactivate' and try again."
exit 1
fi
# Make a virtualenv and use that.