Commit Graph

247 Commits

Author SHA1 Message Date
Richard Chapman
c63cb6572b Merge pull request #1453 from alphagov/pyup-update-awscli-1.14.1-to-1.14.2
Update awscli to 1.14.2
2017-12-04 09:29:54 +00:00
Leo Hemsted
f565cf4824 Merge pull request #1454 from alphagov/smartypants-boost
update utils to 23.2.0
2017-12-01 13:39:26 +00:00
Leo Hemsted
f183d03775 update utils to 23.2.1
note: this requires adding smartypants as a line in requirements.txt,
due to it coming from a git repo. Once the new version of smartypants
is in pypi, this'll no longer be required
2017-12-01 13:29:17 +00:00
pyup-bot
382f429c6c Update awscli from 1.14.1 to 1.14.2 2017-11-30 20:19:45 +00:00
pyup-bot
59a37d79e5 Pin awscli to latest version 1.14.1 2017-11-30 04:19:44 +00:00
Leo Hemsted
5b7118973e take advantage of click's type validation/coercion
(saves us having to write the stuff ourselves). Also adds a small
click plugin to do datetime parsing.

Sample output:

```
[leohemsted:~/dev/api]$ flask command create_provider_rates --help
Usage: flask command create_provider_rates [OPTIONS]

  Backfill rates for a given provider

Options:
  -p, --provider_name [mmg|firetext|ses]
                                  [required]
  -c, --cost FLOAT                Cost (pence) per message including decimals
                                  [required]
  -d, --valid_from DATE           [required]
  --help                          Show this message and exit.
[leohemsted:~/dev/api]$ flask command create_provider_rates -p ses -c 1.234 -d invalid
Usage: flask command create_provider_rates [OPTIONS]

Error: Invalid value for "-d" / "--valid_from": Could not parse datetime string "invalid" formatted as %Y-%m-%dT%H:%M:%S
```
2017-11-28 12:50:29 +00:00
Venus Bailey
9af2b54e48 Merge pull request #1413 from alphagov/pyup-update-boto3-1.4.7-to-1.4.8
Update boto3 to 1.4.8
2017-11-27 16:09:25 +00:00
Leo Hemsted
b7d5e80509 Merge pull request #1423 from alphagov/fix-firetext-inbound-500s
fix 500s when inbound msgs sent from alphanumerics rather than normal…
2017-11-24 15:39:39 +00:00
Leo Hemsted
9f56dccdee Remove flask-script, move commands to click
click (http://click.pocoo.org/) is used by flask to run its cli args.
In removing flask_script (it's unmaintained), we had to migrate all our
commands to use click. This is a change for the better in my eyes - you
don't need to define the command in several places, and it makes
managing options a bit easier.

View diff with whitespace turned off unless you're a masochist.
2017-11-23 17:04:58 +00:00
Leo Hemsted
f3d129b0d8 fix 500s when inbound msgs sent from alphanumerics rather than normal phone numbers 2017-11-23 15:22:18 +00:00
pyup-bot
92efa9c82c Update boto3 from 1.4.7 to 1.4.8 2017-11-22 07:49:28 +00:00
Athanasios Voutsadakis
a0beb190f3 Merge branch 'master' into bump_utils_2301 2017-11-20 11:16:29 +00:00
Chris Hill-Scott
42bf329593 Merge pull request #1388 from alphagov/pyup-update-sqlalchemy-utils-0.32.19-to-0.32.21
Update sqlalchemy-utils to 0.32.21
2017-11-20 10:26:22 +00:00
Athanasios Voutsadakis
69e42b7a74 Bump utils to 23.0.1 2017-11-17 15:00:26 +00:00
Athanasios Voutsadakis
1da32f81d0 Bump utils version to 22.1.0 2017-11-16 12:10:55 +00:00
Athanasios Voutsadakis
7a24cd8753 Typos 2017-11-14 16:04:04 +00:00
Athanasios Voutsadakis
c52fae0a30 Bump utils version in requirements 2017-11-14 14:32:11 +00:00
pyup-bot
d45283d0f4 Update sqlalchemy-utils from 0.32.19 to 0.32.21 2017-11-11 19:18:01 +00:00
Richard Chapman
485c4a7c10 Merge pull request #1374 from alphagov/pyup-update-sqlalchemy-1.1.14-to-1.1.15
Update sqlalchemy to 1.1.15
2017-11-09 16:28:04 +00:00
pyup-bot
15deec37ed Update notifications-python-client from 4.5.0 to 4.6.0 2017-11-06 11:48:51 +00:00
pyup-bot
90de46bbb6 Update sqlalchemy from 1.1.14 to 1.1.15 2017-11-03 21:24:48 +00:00
Leo Hemsted
8d7ced798e Merge branch 'master' into pyup-update-monotonic-1.3-to-1.4 2017-11-02 11:51:52 +00:00
Leo Hemsted
d469d22084 Merge pull request #1345 from alphagov/pyup-update-marshmallow-2.13.6-to-2.14.0
Update marshmallow to 2.14.0
2017-11-02 11:51:15 +00:00
Rebecca Law
f01c088f2f Update utils with a fix for address formats for letters. 2017-10-31 15:03:12 +00:00
pyup-bot
437ef72047 Update monotonic from 1.3 to 1.4 2017-10-30 19:17:40 +00:00
pyup-bot
3966efb109 Update marshmallow from 2.13.6 to 2.14.0 2017-10-27 01:03:34 +01:00
Rebecca Law
515a69e8d9 Merge pull request #1339 from alphagov/pyup-update-psycopg2-2.7.3.1-to-2.7.3.2
Update psycopg2 to 2.7.3.2
2017-10-25 15:23:45 +01:00
Rebecca Law
fbc0b69685 Merge pull request #1336 from alphagov/pyup-update-marshmallow-sqlalchemy-0.13.1-to-0.13.2
Update marshmallow-sqlalchemy to 0.13.2
2017-10-25 15:22:31 +01:00
pyup-bot
a0de1d0698 Update psycopg2 from 2.7.3.1 to 2.7.3.2 2017-10-24 17:32:05 +01:00
pyup-bot
2e43044a0f Update marshmallow-sqlalchemy from 0.13.1 to 0.13.2 2017-10-24 01:17:28 +01:00
pyup-bot
b16c855f56 Update notifications-python-client from 4.4.0 to 4.5.0 2017-10-23 17:48:27 +01:00
Leo Hemsted
b384b13213 Merge pull request #1320 from alphagov/leohemsted-patch-1
log json to stdout
2017-10-17 15:44:43 +01:00
Leo Hemsted
bfb54a3b98 Merge pull request #1319 from alphagov/pyup-update-sqlalchemy-utils-0.32.18-to-0.32.19
Update sqlalchemy-utils to 0.32.19
2017-10-17 15:42:33 +01:00
Leo Hemsted
4d7098c5fd Merge pull request #1312 from alphagov/pyup-update-cffi-1.11.0-to-1.11.2
blacklist 1.11.0 and 1.11.2 of cffi
2017-10-17 15:42:16 +01:00
Leo Hemsted
7817fe1221 log json to stdout 2017-10-17 14:23:02 +01:00
pyup-bot
6d94e43066 Update sqlalchemy-utils from 0.32.18 to 0.32.19 2017-10-17 10:02:17 +01:00
Leo Hemsted
5ad6bc7621 ensure emails are formatted before sending
we allow some invalid to addresses - for example, phone numbers with
spaces or brackets - in the database. This is so that users can match
up their data in a format that they expect (since they passed it in).
When we send SMS, we strip this formatting just before sending - but we
weren't with email. This commit changes that and adds some tests.

It also adds formatting for reply_to addresses. We should never expect
invalid reply_to email addresses in our data, but just in case, lets
validate them here.

Also, bump requirements.txt to capture some more email validation
2017-10-16 17:29:45 +01:00
Chris Hill-Scott
15e7fff9ad Add to list of bad cffi versions
We blacklisted version 1.11.1 in 80c2d85508
because it caused the build to break. The bug hasn’t been fixed in the
next version, so we should ignore it too.
2017-10-16 13:40:58 +01:00
pyup-bot
9767633bc0 Update cffi from 1.11.0 to 1.11.2 2017-10-13 19:09:14 +01:00
Richard Chapman
b32b9bc344 Merge pull request #1308 from alphagov/pyup-update-flask-sqlalchemy-2.2-to-2.3.2
Update flask-sqlalchemy to 2.3.2
2017-10-13 09:27:33 +01:00
pyup-bot
6050526711 Update flask-sqlalchemy from 2.2 to 2.3.2 2017-10-11 16:19:09 +01:00
pyup-bot
ad5a7afe54 Update sqlalchemy-utils from 0.32.16 to 0.32.18 2017-10-06 08:32:01 +01:00
Athanasios Voutsadakis
80c2d85508 Instruct pyup to skip cffi==1.11.1 2017-10-04 12:20:21 +01:00
Athanasios Voutsadakis
c362bd06b0 Pin to a specific version of cffi
Version 1.11.1 seems to be
[broken](https://bitbucket.org/cffi/cffi/issues?status=new&status=open)

It's pulled in because of [Flask-bcrypt](https://github.com/alphagov/notifications-api/blob/master/requirements.txt#L4)
which [depends on bcrypt](https://github.com/maxcountryman/flask-bcrypt/blob/master/setup.py#L33) which
[asks for a version of cffi >= 1.1](https://github.com/pyca/bcrypt/blob/master/setup.py#L12)
2017-10-04 10:58:22 +01:00
chrisw
e3661440d6 bumped utils version 2017-09-19 16:13:42 +01:00
chrisw
f49eca5324 Add a non-GOV.UK banner option for email branding
Added an extra name, 'org_banner', for branding types into branding_type table
Added org banner into user model in database
Added checks for new branding type to ensure that the correct data is passed into the dict
Tested new checks in html email options
2017-09-19 14:40:22 +01:00
Chris Hill-Scott
21817aa865 Merge branch 'master' into running-without-six 2017-09-19 09:53:40 +01:00
Rebecca Law
e11b9cd498 Merge pull request #1229 from alphagov/pyup-update-pyjwt-1.5.2-to-1.5.3
Update pyjwt to 1.5.3
2017-09-19 09:21:39 +01:00
Rebecca Law
8323549f6c Merge branch 'master' into pyup-update-sqlalchemy-utils-0.32.14-to-0.32.16 2017-09-19 09:21:09 +01:00
Chris Hill-Scott
a539b3a3bd Remove six dependency
six is used for Python 2/3 compatibility. We never run under Python 2.
2017-09-18 09:36:56 +01:00