Skip to content

Commit 541d521

Browse files
committed
package doesn't export class
1 parent 4868b29 commit 541d521

File tree

8 files changed

+41
-30
lines changed

8 files changed

+41
-30
lines changed

Pipfile.lock

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# micropython_async_websocket_client
1+
# micropython-async_websocket_client
22
This module is designed for ESP32 (and other) controllers.
33
Goal: create and keep alive connection channel with websocket server.
44
You may send captured data from controlled devices through this channel to server and accept managing signals on your controller.
@@ -15,7 +15,6 @@ https://github.com/peterhinch/micropython-async
1515
This module is designed and tested on [ESP32S-WROOM-32](https://ru.wikipedia.org/wiki/%D0%A4%D0%B0%D0%B9%D0%BB:ESP32_Espressif_ESP-WROOM-32_Dev_Board.jpg).
1616
Development and tests were done based on [esp32-20220117-v1.18.bin](https://micropython.org/resources/firmware/esp32-20220117-v1.18.bin).
1717

18-
...And by default and further I mean you use Ubuntu or something similar...
1918
# installation
2019
<details>
2120
<summary>Run this commands on your controller:</summary>
@@ -35,6 +34,6 @@ Development and tests were done based on [esp32-20220117-v1.18.bin](https://micr
3534
>>> upip.install('micropython_async_websocket_client')
3635
```
3736

38-
All needed dependencies are in bin-module.
37+
All needed dependencies are in esp32-20220117-v1.18.bin.
3938
# example
40-
Sample using of this module is in https://github.com/Vovaman/example_async_websocket.
39+
Sample using of this module is in https://github.com/Vovaman/example_async_websocket.

async_websocket_client/__init__.py

Whitespace-only changes.

how_to_make_package.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# build package
2+
```bash
3+
$ pipenv shell
4+
$ python setup.py sdist
5+
```
6+
# ...and upload to PyPi
7+
```bash
8+
$ rm dist/*.orig
9+
$ python -m twine upload dist/*
10+
```

micropython-async_websocket_client/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

sdist_upip/__init__.py

Whitespace-only changes.

setup.py

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
2-
from setuptools import setup, find_packages
3-
#import sdist_upip
4-
5-
61
import sys
2+
73
# Remove current dir from sys.path, otherwise setuptools will peek up our
84
# module instead of system's.
95
sys.path.pop(0)
10-
from setuptools import setup
6+
import setuptools
7+
118
sys.path.append("./sdist_upip")
12-
sys.path.append("..")
139
import sdist_upip
1410

1511
with open('README.md') as readme_file:
@@ -18,24 +14,27 @@
1814
with open('HISTORY.md') as history_file:
1915
HISTORY = history_file.read()
2016

21-
setup_args = dict(
22-
name='micropython-async_websocket_client',
23-
version='0.1.0',
17+
install_requires = []
18+
19+
setuptools.setup(
20+
name="micropython-async_websocket_client",
21+
version="0.1.4",
2422
description='Asynchronous websocket client for ESP32 controller.',
2523
long_description_content_type="text/markdown",
2624
long_description=README + '\n\n' + HISTORY,
2725
license='Apache License 2.0',
28-
packages=find_packages(),
2926
author='Vladimir Badashkin',
3027
author_email='bd_postbox1@mail.ru',
3128
keywords=['ESP32', 'micropython', 'websocket', 'asynchronous', 'client'],
3229
url='https://github.com/Vovaman/micropython_async_websocket_client',
33-
download_url='https://pypi.org/project/micropython_async_websocket_client/',
34-
py_modules=["async_websocket_client"],
35-
cmdclass={'sdist': sdist_upip.sdist}
30+
download_url='https://github.com/Vovaman/micropython_async_websocket_client/releases',
31+
cmdclass={'sdist': sdist_upip.sdist},
32+
install_requires=install_requires,
33+
classifiers=[
34+
"License :: OSI Approved :: Apache Software License",
35+
"Operating System :: OS Independent",
36+
],
37+
package_dir={"async_websocket_client": "async_websocket_client"},
38+
packages=["async_websocket_client"]
39+
3640
)
37-
38-
install_requires = []
39-
40-
if __name__ == '__main__':
41-
setup(**setup_args, install_requires=install_requires)

0 commit comments

Comments
 (0)