CFLAGS="-I$(xcrun --show-sdk-path)/usr/include"
CPPFLAGS="-I$(brew --prefix zlib)/include"
[tox] | |
isolated_build = True | |
envlist = py{38,39}-django{20,21,22,30,31,32},py310-django{21,22,30,31,32} | |
requires = | |
tox-poetry-installer[poetry] == 0.8.1 | |
tox-py == 1.1.0 | |
[tox:.package] | |
basepython = python3 |
git rebase -x 'git reset --soft HEAD~1 && git commit -C HEAD@{1}' -i target_branch_or_commit |
# Block HTTP(S) in test suites | |
# ============================ | |
# | |
# Tested with dependencies: | |
# - Django 1.10-2.x (may work on future versions) | |
# - future 0.17.1+ | |
# - Python 2.7.x,3.7.x | |
# - py.test | |
# - nose |
version: "3.0" | |
services: | |
web: | |
volumes: | |
- pycharm_helpers_PY-191.7479.30:/opt/.pycharm_helpers | |
volumes: | |
pycharm_helpers_PY-191.7479.30: {} |
# Add the following 'help' target to your Makefile | |
# And add help text after each target name starting with '\#\#' | |
help: ## Show this help. | |
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
# Everything below is an example | |
target00: ## This message will show up when typing 'make help' | |
@echo does nothing |
# Confirmed working under: | |
# - Python3.7 / Django 2.2 / Django Extensions / IPython Available | |
# - Python3.7 / Django 2.2 / Django Extensions / IPython Unavailable | |
# | |
# Notices: | |
# - This might even work in PyCharm CE with the python console, but no guarantees there. | |
# - There are no language features required that shouldn't be available as far back as python2.6, maybe 2.5. | |
# - There are no framework features required that shouldn't be available as far back as Django 1.7 | |
# - Should still provide basic Django shell when Django Extensions is unavailable. | |
# - This is for all of my friends to enjoy! |
Run:
brew install gnupg gnupg2 pinentry-mac
git config --global user.signingkey <key>
git config --global commit.gpgsign true
git config --global gpg.program gpg
Followed by:
nano ~/.gnupg/gpg.conf
from decimal import Decimal as D | |
from numbers import Number | |
from django.test import TestCase | |
class Adder(object): | |
def __init__(self, addend, augend): | |
if not (isinstance(addend, Number) or isinstance(augend, Number)): | |
raise TypeError('Adder requires both addend and augend to be Numbers.') |