Skip to content

Commit

Permalink
Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Jul 29, 2022
1 parent ff1ae31 commit d1df528
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ecowitt
# aioEcoWitt

Simple python library for the EcoWitt Protocol

Expand Down
2 changes: 1 addition & 1 deletion ecowitt/__init__.py → aioecowitt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""EcoWitt API wrapper."""
"""aioEcoWitt API wrapper."""
from .server import EcoWittListener
from .sensor import EcoWittSensor, EcoWittSensorTypes
2 changes: 1 addition & 1 deletion ecowitt/__main__.py → aioecowitt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import asyncio
import sys

from ecowitt import EcoWittListener, EcoWittSensor
from aioecowitt import EcoWittListener, EcoWittSensor


def usage():
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions ecowitt/server.py → aioecowitt/server.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""
Setup a bone simple webserver, listen to POST's from a device like a
GW1000 or in my case, HP3501, decode results.
"""
"""aioEcoWitt API server."""
from __future__ import annotations

import logging
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@


setup(
name="ecowitt",
name="aioecowitt",
version=VERSION,
url="https://github.com/home-assistant-libs/ecowitt",
download_url="https://github.com/home-assistant-libs/ecowitt",
url="https://github.com/home-assistant-libs/aioecowitt",
download_url="https://github.com/home-assistant-libs/aioecowitt",
author="Home Assistant Team",
author_email="[email protected]",
description="Python wrapper for EcoWitt Protocol",
long_description=README_FILE.read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
packages=find_packages(exclude=["test.*", "test", "misc"]),
package_data={"ecowitt": ["py.typed"]},
package_data={"aioecowitt": ["py.typed"]},
python_requires=">=3.9",
install_requires=["aiohttp>3", "meteocalc>=1.1.0"],
entry_points={"console_scripts": ["ecowitt-testserver = ecowitt.__main__:main"]},
entry_points={"console_scripts": ["ecowitt-testserver = aioecowitt.__main__:main"]},
include_package_data=True,
zip_safe=False,
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion tests/test_calc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Test for calulcated values from calc.py"""

from ecowitt import calc
from aioecowitt import calc

from .const import EASYWEATHER_DATA, GW2000A_DATA

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Test ecowitt sensor module."""

from ecowitt import sensor
from aioecowitt import sensor


def test_update_listener() -> None:
Expand Down
3 changes: 1 addition & 2 deletions tests/test_server.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""EcoWitt server tests."""

from aiohttp import web
import pytest

from ecowitt import server
from aioecowitt import server

from .const import GW2000A_DATA

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ deps =
[testenv:lint]
ignore_errors = True
commands =
flake8 ecowitt
pylint ecowitt
flake8 aioecowitt
pylint aioecowitt

[testenv:black]
commands =
black --target-version py39 --check ecowitt setup.py tests
black --target-version py39 --check aioecowitt setup.py tests

[testenv:tests]
commands =
Expand Down

0 comments on commit d1df528

Please sign in to comment.