View build.sh
# Prime the Cache
$ time python setup.py build --build-base ~v/tmp-ec63b471f919101/cache/
...
python setup.py build --build-base ~v/tmp-ec63b471f919101/cache/ 76.24s user 4.16s system 96% cpu 1:23.33 total
# Test in place rebuilds
$ time python setup.py build --build-base ~v/tmp-ec63b471f919101/cache/
...
python setup.py build --build-base ~v/tmp-ec63b471f919101/cache/ 0.81s user 0.27s system 84% cpu 1.265 total
View main.tf
# US-East-1 Has 5 availability zones, and we want to split our network over all
# of them. So we will do a /19 per AZ which will give us the ability to expand
# up to 8 total AZs or to add more capacity in 3/5 of the other AZs if need be.
# If for some reason this is being run in a region with less AZs, we will just
# have more left over capacity being reserved as a spare. In addition, we will
# split our allocation within each AZ up into a /20 for all of our private
# instances, a /21 for all of our public instances, and a /21 left over for
# spare capacity. This will give us the largest block of IP addresses for our
# private tier, where most of our instances will reside, while still leaving
# spare allocation for the future.
View etc_cron.daily_letsencrypt
#!/bin/bash
set -e
DOMAINS=""
while read d; do
DOMAINS="$DOMAINS -d $d"
done < /etc/letsencrypt/domains
letsencrypt certonly \
-n --agree-tos --email donald@stufft.io --webroot -w /var/www/letsencrypt \
View first.toml
[package]
name = "Pyramid"
[package.build-system]
tool = "whatever"
requires = ["setuptools", "wheel"]
[package.test-system]
command = "py.test"
requires = ["pytest", "pytest-timeout"]
View pyproject.toml
[package]
name = "Django"
# version = ... # This is omitted, ``setup.py`` must be executed to read it.
summary = """
A high-level Python Web framework that encourages rapid development and\
clean, pragmatic design.\
"""
url = "http://www.djangoproject.com/"
author = "Django Software Foundation"
author-email = "foundation@djangoproject.com"
View conftest.py
def pytest_addoption(parser):
parser.addoption(
"--backend", action="store", metavar="NAME",
help="Only run tests matching the backend NAME."
)
View query.sql
SELECT
details.system.name,
details.system.release,
COUNT(*) AS downloads,
FROM
TABLE_DATE_RANGE( [long-stack-762:pypi.downloads], TIMESTAMP("20160114"), CURRENT_TIMESTAMP() )
WHERE
details.system.name = 'linux'
GROUP BY
details.system.name,
View query.sql
SELECT
details.distro.name,
details.distro.version,
COUNT(*) AS downloads,
FROM
TABLE_DATE_RANGE( [long-stack-762:pypi.downloads], TIMESTAMP("20160114"), CURRENT_TIMESTAMP() )
WHERE
details.distro.name IS NOT NULL
GROUP BY
details.distro.name,
View query.sql
SELECT
COUNT(*) AS downloads,
file.project
FROM
TABLE_DATE_RANGE( [long-stack-762:pypi.downloads], TIMESTAMP("20160114"), CURRENT_TIMESTAMP() )
WHERE
file.type = 'bdist_wheel'
AND NOT REGEXP_MATCH(file.filename, '^.*-none-any.whl$')
GROUP BY
file.project
View query.sql
SELECT
COUNT(*) AS downloads,
file.filename
FROM
TABLE_DATE_RANGE( [long-stack-762:pypi.downloads], TIMESTAMP("20160114"), CURRENT_TIMESTAMP() )
WHERE
file.type = 'bdist_wheel'
AND NOT REGEXP_MATCH(file.filename, '^.*-none-any.whl$')
GROUP BY
file.filename