File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ test-template: &test-template
3939 command : |
4040 if [[ "$CIRCLE_JOB" != "test-3.3" ]]; then
4141 sudo rm -rf dist *.egg-info;
42- ./scripts /test-packaging.sh;
42+ ./test-packaging /test-packaging.sh;
4343 fi
4444 - store_test_results :
4545 path : test-reports
Original file line number Diff line number Diff line change 1- try :
2- from setuptools import setup , Command
3- except ImportError :
4- from distutils .core import setup
1+ from setuptools import find_packages , setup , Command
52
63import sys
74import uuid
@@ -51,7 +48,7 @@ def run(self):
5148 version = ldclient_version ,
5249 author = 'LaunchDarkly' ,
5350 author_email = 'team@launchdarkly.com' ,
54- packages = [ 'ldclient' ] ,
51+ packages = find_packages () ,
5552 url = 'https://github.com/launchdarkly/python-client' ,
5653 description = 'LaunchDarkly SDK for Python' ,
5754 long_description = 'LaunchDarkly SDK for Python' ,
Original file line number Diff line number Diff line change 55rm -rf dist
66python setup.py sdist
77
8- rm -rf test-packaging
9- mkdir test-packaging
108cd test-packaging
9+ rm -rf env
1110virtualenv env
1211source env/bin/activate
1312
1413pip install ../dist/* .tar.gz
14+
15+ python test.py
Original file line number Diff line number Diff line change 1+ import ldclient
2+ import ldclient .integrations
3+ import ldclient .interfaces
4+
5+ print ("Successfully installed and imported ldclient" )
You can’t perform that action at this time.
0 commit comments