diff --git a/.circleci/config.yml b/.circleci/config.yml index 421c9b5..a35cb60 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,4 @@ -# CircleCI 2.1 configuration file for https://github.com/zxdavb/geniushub-client +# CircleCI 2.1 configuration file for https://github.com/manzanotti/geniushub-client # Check https://circleci.com/docs/2.0/language-python/ for more details version: 2.1 diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e473f4d..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -0.7.0.b3 (2020-04-01) ---------------------- \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in index a26be8b..c85c660 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,5 +4,7 @@ include LICENSE include *.md prune .circleci +prune .github +prune tests exclude *.txt exclude .flake8 .pre-commit-config.yaml diff --git a/README.md b/README.md index 5c0a5de..fcd8f14 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![CircleCI](https://circleci.com/gh/zxdavb/geniushub-client.svg?style=svg)](https://circleci.com/gh/zxdavb/geniushub-client) [![Join the chat at https://gitter.im/geniushub-client/community](https://badges.gitter.im/geniushub-client/community.svg)](https://gitter.im/geniushub-client/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/geniushub-client) +[![CircleCI](https://circleci.com/gh/manzanotti/geniushub-client.svg?style=svg)](https://circleci.com/gh/manzanotti/geniushub-client) [![Join the chat at https://gitter.im/geniushub-client/community](https://badges.gitter.im/geniushub-client/community.svg)](https://gitter.im/geniushub-client/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/geniushub-client) # geniushub-client This is a Python library to provide access to a **Genius Hub** by abstracting its [RESTful API](https://my.geniushub.co.uk/docs). It uses **aiohttp** and is therefore async-friendly. @@ -9,7 +9,7 @@ If you use the v3 API, you can interrogate the hub directly, rather than via Hea It is a WIP, and may be missing some functionality. In addition, there are some other limitations (see below). -It is based upon work by [@GeoffAtHome](https://github.com/zxdavb/geniushub-client/commits?author=GeoffAtHome) - thanks! +It is based upon work by [@GeoffAtHome](https://github.com/manzanotti/geniushub-client/commits?author=GeoffAtHome) and [@zxdavb]](https://github.com/manzanotti/geniushub-client/commits?author=zxdavb) - thanks! ## Current limitations Current limitations & to-dos include: diff --git a/setup.py b/setup.py index 21baae0..6ebd1df 100644 --- a/setup.py +++ b/setup.py @@ -3,11 +3,7 @@ # """The setup.py file.""" -import os -import sys - from setuptools import find_packages, setup -from setuptools.command.install import install with open("geniushubclient/__init__.py") as fh: for line in fh: @@ -21,16 +17,6 @@ LONG_DESCRIPTION = fh.read() -class VerifyVersionCommand(install): - """Custom command to verify that the git tag matches our VERSION.""" - - def run(self): - tag = os.getenv("CIRCLE_TAG") - if tag != VERSION: - info = "Git tag: {tag} does not match the version of this pkg: {VERSION}" - sys.exit(info) - - setup( name="geniushub-client", description="A aiohttp-based client for Genius Hub systems", @@ -39,7 +25,7 @@ def run(self): author_email="manzo@gorilla-tactics.com", url=URL, download_url=f"{URL}/archive/{VERSION}.tar.gz", - install_requires=[list(val.strip() for val in open("requirements.txt"))], + install_requires=["aiohttp"], long_description=LONG_DESCRIPTION, long_description_content_type="text/markdown", packages=find_packages(exclude=["test", "docs"]), @@ -53,7 +39,8 @@ def run(self): "Programming Language :: Python :: 3.7", "Topic :: Home Automation", ], - cmdclass={ - "verify": VerifyVersionCommand, + project_urls={ # Optional + "Bug Reports": "https://github.com/manzanotti/geniushub-client/issues", + "Source": "https://github.com/manzanotti/geniushub-client/", }, )