Skip to content

Commit

Permalink
modify setup to include td.app
Browse files Browse the repository at this point in the history
  • Loading branch information
areed1192 committed Jun 20, 2020
1 parent 67b9ff2 commit aa73229
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/instructions/installation_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pip install --upgrade twine
Now that we have everything installed, we can build or distribution package. To build our distribution pacakge run the following command:

```console
setup.py sdist bdist_wheel
python setup.py sdist bdist_wheel
```

This will generate a distrubtion archives in the _dist_ folder. In fact, if you look in your directory you should see a few new folders one called _dist_ and one called _build_. These were generated when we ran the command.
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# I'm in alpha development still, so a compliant version number is a1.
# read this as MAJOR VERSION 0, MINOR VERSION 1, MAINTENANCE VERSION 0
version='0.2.6',
version='0.2.8',

# here is a simple description of the library, this will appear when
# someone searches for the library on https://pypi.org/search
Expand Down Expand Up @@ -46,7 +46,13 @@
keywords='finance, td ameritrade, api',

# here are the packages I want "build."
packages=find_packages(include=['td', 'samples']),
packages=find_packages(include=['td', 'samples', 'td.app','td.templates']),

# here we specify any package data.
package_data={
# And include any files found subdirectory of the "td" package.
"td": ["app/*", "templates/*"],
},

# I also have some package data, like photos and JSON files, so I want to
# include those too.
Expand Down
3 changes: 2 additions & 1 deletion td/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,10 @@ async def _connect(self, pipeline_start: bool = True) -> websockets.WebSocketCli
return self.connection

else:

# Login to the stream.
await self._send_message(login_request)
await self._receive_message(return_value=False)

This comment has been minimized.

Copy link
@vbxx3

vbxx3 Sep 26, 2020

Looks like "Login Denied. - Please login first." was fixed here

return self.connection


Expand Down Expand Up @@ -703,7 +705,6 @@ async def _receive_message(self, return_value: bool = False) -> dict:
await self._write_to_csv(data = message_decoded)
except:
print('Could not write content to CSV file, closing stream')
# await asyncio.get_running_loop().stop()
await self.close_stream()
break

Expand Down

0 comments on commit aa73229

Please sign in to comment.