Skip to content

Commit 1245eaf

Browse files
author
Bobby Swingler
committed
Minor improvements for PyPI publishing.
1 parent 52437b6 commit 1245eaf

File tree

9 files changed

+35
-22
lines changed

9 files changed

+35
-22
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ pydomo/datasets/__pycache__
77
pydomo/groups/__pycache__
88
pydomo/streams/__pycache__
99
pydomo/users/__pycache__
10+
publishPypiLive.sh
11+
publishPypiTest.sh
12+
MANIFEST
13+
dist

LICENSE LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
### About
55

6-
The official Domo Python3 SDK (pydomo)
6+
The official Domo Python3 SDK (PyDomo)
77
* This has not yet been tested with Python2
8-
* This python package will soon be published to PyPI; for now, please clone and import pydomo
8+
* PyDomo has been published to PyPI, and can be installed via `pip3 install pydomo requests jsonpickle`
99

1010
### Features:
1111
* DataSet Management: https://developer.domo.com/docs/domo-apis/data
@@ -18,7 +18,7 @@ The official Domo Python3 SDK (pydomo)
1818
* Linux: 'apt-get install python3'
1919
* MacOS: 'brew install python3'
2020
* Windows: direct download, or use Bash on Windows 10
21-
* Clone the repo and run setup.sh, or execute "pip3 install requests jsonpickle"
21+
* Install PyDomo and its dependencies via `pip3 install pydomo requests jsonpickle`
2222

2323
### Usage
2424
* See 'examples.py' for full usage

pydomo/__init__.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
from pydomo.datasets.DataSetClient import DataSetClient
2-
from pydomo.streams.StreamClient import StreamClient
3-
from pydomo.groups.GroupClient import GroupClient
4-
from pydomo.users.UserClient import UserClient
51
from pydomo.Transport import DomoAPITransport
2+
from pydomo.datasets import DataSetClient
3+
from pydomo.groups import GroupClient
4+
from pydomo.streams import StreamClient
5+
from pydomo.users import UserClient
66
import logging
77

8-
98
DOMO = """####################################################################################################
109
####################################################################################################
1110
####################################################################################################
@@ -89,4 +88,3 @@ def set_logging_level(self, level):
8988

9089
def get_logger(self):
9190
return self.logger
92-

pydomo/datasets/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from pydomo.datasets.DataSetModel import Column, ColumnType, DataSetRequest, DataSet, DataSetAndPDP, DataSetListResult
2-
from pydomo.datasets.DataSetModel import FilterOperator, Owner, Policy, PolicyType, PolicyFilter, Schema
3-
from pydomo.datasets.DataSetClient import DataSetClient
1+
from .DataSetModel import Column, ColumnType, DataSetRequest, DataSet, DataSetAndPDP, DataSetListResult
2+
from .DataSetModel import FilterOperator, Owner, Policy, PolicyType, PolicyFilter, Schema
3+
from .DataSetClient import DataSetClient

pydomo/groups/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from pydomo.groups.GroupsModel import Group, CreateGroupRequest
2-
from pydomo.groups.GroupClient import GroupClient
1+
from .GroupsModel import Group, CreateGroupRequest
2+
from .GroupClient import GroupClient

pydomo/streams/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from pydomo.streams.StreamsModel import Stream, CreateStreamRequest, Execution, UpdateMethod
2-
from pydomo.streams.StreamClient import StreamClient
1+
from .StreamsModel import Stream, CreateStreamRequest, Execution, UpdateMethod
2+
from .StreamClient import StreamClient

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
from setuptools import setup
1+
from distutils.core import setup
2+
23

34
setup(
45
name='pydomo',
5-
description='The official python3 Domo SDK',
6-
version='0.1',
6+
version='0.1.1',
7+
description='The official python3 Domo API SDK - Domo, Inc.',
78
author='Bobby Swingler',
8-
url='http://developer.domo.com',
9-
install_requires=[
9+
author_email='[email protected]',
10+
url='https://github.com/domoinc/domo-python-sdk',
11+
keywords=['domo', 'api', 'sdk'],
12+
license='MIT',
13+
packages=['pydomo',
14+
'pydomo.datasets',
15+
'pydomo.groups',
16+
'pydomo.streams',
17+
'pydomo.users'],
18+
requires=[
1019
'requests',
1120
'jsonpickle'
1221
]

0 commit comments

Comments
 (0)