Skip to content

Commit

Permalink
Merge pull request #148 from Hunter2807/master
Browse files Browse the repository at this point in the history
Removed the loop parameter
  • Loading branch information
TheSpookyCat authored Nov 13, 2021
2 parents c011d57 + dad4a38 commit fe2e869
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ And that's it!

## Running the tests
The Tox tests are currently deprecated as there is no way to run Discord on the test machine. If you want to contribute to testing, you can fake the Discord client and add some tests.

~~Before running the tests, make sure the following are done~~:
1. ~~Install Python 3.5, 3.6, and 3.7~~
1. ~~Install Python 3.8, 3.9 and 3.10~~
2. ~~Add a valid Discord application ID to the environment variable PYPRESENCE_CLIENT_ID (Windows Search -> "Environment variables")~~

```bash
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Notable Contributors: [GiovanniMCMXCIX](https://github.com/GiovanniMCMXCIX), [Gh
[![GitHub stars](https://img.shields.io/github/stars/qwertyquerty/pypresence.svg?style=for-the-badge&label=Stars)](https://github.com/qwertyquerty/pypresence) [![license](https://img.shields.io/github/license/qwertyquerty/pypresence.svg?style=for-the-badge)](https://github.com/qwertyquerty/pypresence/blob/master/LICENSE) ![GitHub last commit](https://img.shields.io/github/last-commit/qwertyquerty/pypresence.svg?style=for-the-badge) ![GitHub top language](https://img.shields.io/github/languages/top/qwertyquerty/pypresence.svg?style=for-the-badge) ![PyPI](https://img.shields.io/pypi/v/pypresence.svg?style=for-the-badge)


## NOTE: Only Python versions 3.8 and above are supported.


## NOTICE: Activity() class has been removed in 4.0.0


Expand Down
2 changes: 1 addition & 1 deletion pypresence/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
__author__ = 'qwertyquerty'
__copyright__ = 'Copyright 2018 qwertyquerty'
__license__ = 'MIT'
__version__ = '4.2.0'
__version__ = '4.2.1'
2 changes: 1 addition & 1 deletion pypresence/baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def send_data(self, op: int, payload: Union[dict, Payload]):

async def handshake(self):
if sys.platform == 'linux' or sys.platform == 'darwin':
self.sock_reader, self.sock_writer = await asyncio.open_unix_connection(self.ipc_path, loop=self.loop)
self.sock_reader, self.sock_writer = await asyncio.open_unix_connection(self.ipc_path)
elif sys.platform == 'win32' or sys.platform == 'win64':
self.sock_reader = asyncio.StreamReader(loop=self.loop)
reader_protocol = asyncio.StreamReaderProtocol(
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setup(name='pypresence',
author='qwertyquerty',
url='https://github.com/qwertyquerty/pypresence',
version='4.2.0',
version='4.2.1',
packages=['pypresence'],
python_requires='>=3.5',
platforms=['Windows', 'Linux', 'OSX'],
Expand All @@ -31,11 +31,10 @@
'Operating System :: MacOS :: MacOS X',

'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',

'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',

Expand Down

0 comments on commit fe2e869

Please sign in to comment.