Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
chore: add a pyup config file
Browse files Browse the repository at this point in the history
also upgrade deps via pip-tools: and kill the unneeded future dep and
move pycrypto into tests only

also title case the Issue/Closes footer in CONTRIBUTING

Closes: #949
Issue: #454
  • Loading branch information
pjenvey committed Jul 13, 2017
1 parent 376ae65 commit 8c63442
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 45 deletions.
10 changes: 10 additions & 0 deletions .pyup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
update: insecure
schedule: "every day"
search: False
requirements:
- requirements.txt
branch_prefix: chore/pyup/
assignees:
- bbangert
- jrconlin
- pjenvey
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The subject contains succinct description of the change:
### Body

In order to maintain a reference to the context of the commit, add
`closes #<issue_number>` if it closes a related issue or `issue #<issue_number>`
`Closes #<issue_number>` if it closes a related issue or `Issue #<issue_number>`
if it's a partial fix.

You can also write a detailed description of the commit: Just as in the
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ build: $(BIN)/pip
$(INSTALL) -r $(REQS)
$(PYTHON) setup.py develop

requirements: $(BIN)/pip
$(INSTALL) pip-tools
pip-compile --no-header --upgrade -o $(REQS) requirements.in > /dev/null

test: $(BIN)/tox ddb
$(BIN)/tox

Expand Down
7 changes: 2 additions & 5 deletions autopush/noseplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@ class Plugin(object): # type: ignore


def track_object(obj, msg=None):
if not asizeof:
"""Track sizeof obj. Only when testing w/ pympler installed"""
if not _testing or not asizeof:
return

# Only track if testing
sizer = asizeof.Asizer()
sizer.exclude_types(_excludes)
if not _testing:
return

tracked_objects[id(obj)].append(
(time.time(), obj, sizer.asizeof(obj) / 1024.0, msg)
)
Expand Down
29 changes: 29 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apns
attrs
autobahn[twisted]
boto
boto3
click
configargparse
# Include https://github.com/pyca/cryptography/pull/3732 until it is released.
-e git+https://github.com/pyca/cryptography.git@f21ffff2d2bc916b70e66810b4582a604f03965f#egg=cryptography
cyclone
datadog
gcm-client
hyper
marshmallow
marshmallow-polyfield
objgraph
pyasn1
pyfcm
pyopenssl
raven
requests
service-identity
simplejson
twisted
-e git+https://github.com/habnabit/txstatsd.git@157ef85fbdeafe23865c7c4e176237ffcb3c3f1f#egg=txStatsD-master
typing
ua-parser
wsaccel ; platform_python_implementation == "CPython"
zope.interface
76 changes: 44 additions & 32 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,45 +1,57 @@
ConfigArgParse==0.12.0
Twisted==17.1.0
-e git+https://github.com/pyca/cryptography.git@f21ffff2d2bc916b70e66810b4582a604f03965f#egg=cryptography
-e git+https://github.com/habnabit/txstatsd.git@157ef85fbdeafe23865c7c4e176237ffcb3c3f1f#egg=txStatsD-master
apns==2.0.1
attrs==17.1.0
autobahn[twisted]==17.5.1
boto==2.46.1
asn1crypto==0.22.0
attrs==17.2.0
autobahn[twisted]==17.6.2
automat==0.6.0 # via twisted
boto3==1.4.4
botocore==1.5.53
boto==2.48.0
botocore==1.5.82 # via boto3, s3transfer
certifi==2017.4.17 # via requests
cffi==1.10.0
chardet==3.0.4 # via requests
click==6.7
contextlib2==0.5.5
# Include https://github.com/pyca/cryptography/pull/3732 until it is released.
-e git+https://github.com/pyca/cryptography.git@f21ffff2d2bc916b70e66810b4582a604f03965f#egg=cryptography
configargparse==0.12.0
constantly==15.1.0 # via twisted
contextlib2==0.5.5 # via raven
cyclone==1.1
datadog==0.16.0
decorator==4.0.11
enum34==1.1.6
future==0.16.0
futures==3.1.1
decorator==4.0.11 # via datadog
docutils==0.13.1 # via botocore
enum34==1.1.6 # via h2
futures==3.1.1 # via s3transfer
gcm-client==0.1.4
graphviz==0.8 # via objgraph
h2==2.6.2 # via hyper
hpack==3.0.0 # via h2
hyper==0.7.0
idna==2.5
hyperframe==3.2.0 # via h2, hyper
hyperlink==17.2.1 # via twisted
idna==2.5 # via requests
incremental==17.5.0 # via twisted
ipaddress==1.0.18
jmespath==0.9.2
jmespath==0.9.3 # via boto3, botocore
marshmallow-polyfield==3.1
marshmallow==2.13.5
marshmallow_polyfield==3.1
objgraph==3.1.0
pyOpenSSL==17.0.0
pyasn1-modules==0.0.9 # via service-identity
pyasn1==0.2.3
pyasn1-modules==0.0.8
pycparser==2.17
pycrypto==2.6.1
pyfcm==1.2.9
python-dateutil==2.6.0
raven==6.0.0
requests==2.14.2
service-identity==16.0.0
simplejson==3.10.0
six==1.10.0
pycparser==2.17 # via cffi
pyfcm==1.3.1
pyopenssl==17.1.0
python-dateutil==2.6.1 # via botocore
raven==6.1.0
requests-toolbelt==0.8.0 # via pyfcm
requests==2.18.1
s3transfer==0.1.10 # via boto3
service-identity==17.0.0
simplejson==3.11.1
six==1.10.0 # via autobahn, automat, pyopenssl, python-dateutil, txaio
twisted==17.5.0
txaio==2.8.0 # via autobahn
typing==3.6.1
-e git+https://github.com/habnabit/txstatsd.git@157ef85fbdeafe23865c7c4e176237ffcb3c3f1f#egg=txStatsD-master
txaio==2.7.1
ua_parser==0.7.3
zope.interface==4.4.1
wsaccel==0.6.2 ; platform_python_implementation == 'CPython'
ua-parser==0.7.3
urllib3==1.21.1 # via requests
wsaccel==0.6.2 ; platform_python_implementation == "CPython"
zope.interface==4.4.2
14 changes: 7 additions & 7 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-r requirements.txt
nose
coverage
ecdsa==0.13
python-jose==1.3.2
mock>=1.0.1
flake8==3.3.0
funcsigs==1.0.2
pbr==1.10.0
-e git+https://github.com/habnabit/txstatsd.git@master#egg=txStatsD
mock>=1.0.1
-e git+https://github.com/bbangert/moto.git@3bdb75a961148ea5aa526f0e88d9e7835a30df3a#egg=moto
flake8==3.3.0
nose
pbr==1.10.0
psutil
pycrypto==2.6.1
pympler==0.5
python-jose==1.3.2
websocket-client
Pympler==0.5

0 comments on commit 8c63442

Please sign in to comment.