Skip to content

Commit f4a9d37

Browse files
authored
Merge pull request #63 from mattsb42-aws/finish-fixing-manifest
Finish fixing manifest and add test to make sure it is correct.
2 parents cebcd80 + c7a2558 commit f4a9d37

File tree

6 files changed

+51
-4
lines changed

6 files changed

+51
-4
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Changelog
33
*********
44

5+
1.0.3 -- 2018-05-03
6+
===================
7+
* Finish fixing ``MANIFEST.in``.
8+
59
1.0.2 -- 2018-05-03
610
===================
711
* Fill out ``MANIFEST.in`` to correctly include necessary files in source build.

MANIFEST.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ include LICENSE
44
include requirements.txt
55

66
recursive-include doc *
7-
recursive-include test *.py
7+
recursive-exclude doc .DS_Store *.pyc
8+
prune doc/build
9+
prune doc/lib/generated
10+
11+
recursive-include test *
12+
recursive-exclude test .DS_Store *.pyc

src/dynamodb_encryption_sdk/identifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from enum import Enum
1515

1616
__all__ = ('LOGGER_NAME', 'CryptoAction', 'EncryptionKeyType', 'KeyEncodingType')
17-
__version__ = '1.0.2'
17+
__version__ = '1.0.3'
1818

1919
LOGGER_NAME = 'dynamodb_encryption_sdk'
2020
USER_AGENT_SUFFIX = 'DynamodbEncryptionSdkPython/{}'.format(__version__)

test/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
hypothesis
22
mock
3-
git+https://github.com/spulec/moto.git
3+
moto>=1.3.3
44
pytest>=3.3.1
55
pytest-cov
66
pytest-mock

test/source-build-check.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
# Verify that tests can be successfully run from the source build.
3+
#
4+
#NOTE: Humans should not run this file directly. If you want to run this check, use the
5+
# tox to run the "sourcebuildcheck" test environment.
6+
7+
WORKINGDIR=$1
8+
DISTDIR=$2
9+
10+
echo "Locating the source build and copying it into the working directory."
11+
DISTFILE=`ls $DISTDIR/dynamodb-encryption-sdk-*.tar.gz | tail -1`
12+
cp $DISTFILE $WORKINGDIR
13+
DISTFILE=`ls $WORKINGDIR/dynamodb-encryption-sdk-*.tar.gz | tail -1`
14+
15+
echo "Extracting the source build."
16+
cd $WORKINGDIR
17+
tar xzvf $DISTFILE
18+
rm $DISTFILE
19+
EXTRACTEDDIR=`ls | tail -1`
20+
cd $EXTRACTEDDIR
21+
22+
echo "Installing requirements from extracted source build."
23+
pip install -r test/requirements.txt
24+
pip install -e .
25+
26+
echo "Running tests from extracted source build."
27+
pytest --cov dynamodb_encryption_sdk -m "local and not slow and not veryslow and not nope"

tox.ini

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{27,34,35,36}-{local,integ,examples}-fast, nocmk,
3+
py{27,34,35,36}-{local,integ,examples}-fast, nocmk, sourcebuildcheck,
44
bandit, doc8, readme,
55
flake8, pylint,
66
flake8-tests, pylint-tests,
@@ -66,6 +66,17 @@ sitepackages = False
6666
deps = -rtest/requirements.txt
6767
commands = {[testenv:base-command]commands} -m "local and not slow and not veryslow and not nope"
6868

69+
# Verify that tests can be successfully run from the source build.
70+
[testenv:sourcebuildcheck]
71+
basepython = python3
72+
sitepackages = False
73+
recreate = True
74+
deps =
75+
{[testenv:build]deps}
76+
commands =
77+
{[testenv:build]commands}
78+
{toxinidir}/test/source-build-check.sh {envtmpdir} {toxinidir}/dist
79+
6980
# mypy
7081
[testenv:mypy-coverage]
7182
commands =

0 commit comments

Comments
 (0)