Skip to content

Commit

Permalink
Merge pull request #90 from launchdarkly/eb/ch31044/test-package-import
Browse files Browse the repository at this point in the history
1. test for ANOTHER packaging error
  • Loading branch information
eli-darkly authored Jan 31, 2019
2 parents 60aa805 + 424db63 commit b2e6c59
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test-template: &test-template
command: |
if [[ "$CIRCLE_JOB" != "test-3.3" ]]; then
sudo rm -rf dist *.egg-info;
./scripts/test-packaging.sh;
./test-packaging/test-packaging.sh;
fi
- store_test_results:
path: test-reports
Expand Down
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup
from setuptools import find_packages, setup, Command

import sys
import uuid
Expand Down Expand Up @@ -51,7 +48,7 @@ def run(self):
version=ldclient_version,
author='LaunchDarkly',
author_email='team@launchdarkly.com',
packages=['ldclient'],
packages=find_packages(),
url='https://github.com/launchdarkly/python-client',
description='LaunchDarkly SDK for Python',
long_description='LaunchDarkly SDK for Python',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ set -e
rm -rf dist
python setup.py sdist

rm -rf test-packaging
mkdir test-packaging
cd test-packaging
rm -rf env
virtualenv env
source env/bin/activate

pip install ../dist/*.tar.gz

python test.py
5 changes: 5 additions & 0 deletions test-packaging/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import ldclient
import ldclient.integrations
import ldclient.interfaces

print("Successfully installed and imported ldclient")

0 comments on commit b2e6c59

Please sign in to comment.