Fabian Peter Hammerle преди 4 години
родител
ревизия
a8dfdfefe8
променени са 3 файла, в които са добавени 89 реда и са изтрити 3 реда
  1. 5 1
      Pipfile
  2. 31 2
      Pipfile.lock
  3. 53 0
      setup.py

+ 5 - 1
Pipfile

@@ -4,7 +4,11 @@ verify_ssl = true
 name = "pypi"
 
 [packages]
-#intertechno-cc1101-mqtt = {editable = true,path = "."}
+intertechno-cc1101-mqtt = {path = ".", editable = true}
+# apparently, pipenv does not support dependency_links.
+# > Warning: You installed a VCS dependency in non–editable mode.
+# > This will work fine, but sub-dependencies will not be resolved by $ pipenv lock.
+intertechno-cc1101 = {git = "https://git.hammerle.me/fphammerle/intertechno-cc1101", editable = true, ref = "v0.1.0"}
 
 [dev-packages]
 # black requires python>=3.6

+ 31 - 2
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "11bac9205501acd774f3fdf3d1a0e205f247aa4143d7b946d1d27eb9e6046a72"
+            "sha256": "58daea9b443031f62b91f759ac9d965ea636164f0846e5015397cb728b43d18a"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -15,7 +15,36 @@
             }
         ]
     },
-    "default": {},
+    "default": {
+        "cc1101": {
+            "hashes": [
+                "sha256:8e384b9a6b93863ed28e93f81cef5b20b7f065f4f79b86d846e83d636e1246a3",
+                "sha256:c1f11aefffaac6773fd242dd26d09d7d3c91d9857f2ec78b97368acef74f883f"
+            ],
+            "version": "==2.7.0"
+        },
+        "intertechno-cc1101": {
+            "editable": true,
+            "git": "https://git.hammerle.me/fphammerle/intertechno-cc1101",
+            "ref": "ac373ecf524351e5c22c2a17e2e5bbaf4ce010de"
+        },
+        "intertechno-cc1101-mqtt": {
+            "editable": true,
+            "path": "."
+        },
+        "paho-mqtt": {
+            "hashes": [
+                "sha256:9feb068e822be7b3a116324e01fb6028eb1d66412bf98595ae72698965cb1cae"
+            ],
+            "version": "==1.5.1"
+        },
+        "spidev": {
+            "hashes": [
+                "sha256:8a7f5c289f161ea2ac4697fa8a10918232c990678dd0053084b3c43b1363910d"
+            ],
+            "version": "==3.5"
+        }
+    },
     "develop": {
         "appdirs": {
             "hashes": [

+ 53 - 0
setup.py

@@ -0,0 +1,53 @@
+import pathlib
+
+import setuptools
+
+_REPO_URL = "https://git.hammerle.me/fphammerle/intertechno-cc1101-mqtt"
+
+setuptools.setup(
+    name="intertechno-cc1101-mqtt",
+    use_scm_version={
+        # > AssertionError: cant parse version docker/0.1.0-amd64
+        # https://github.com/pypa/setuptools_scm/blob/master/src/setuptools_scm/git.py#L15
+        "git_describe_command": "git describe --dirty --tags --long --match v*"
+    },
+    packages=setuptools.find_packages(),
+    description="MQTT client controlling Intertechno smart outlets via CC1101 transceiver, "
+    # https://www.home-assistant.io/integrations/switch.mqtt/
+    "compatible with home-assistant.io's MQTT Switch platform",
+    long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
+    long_description_content_type="text/markdown",
+    author="Fabian Peter Hammerle",
+    author_email="fabian@hammerle.me",
+    url=_REPO_URL,
+    project_urls={"Changelog": _REPO_URL + "/blob/master/CHANGELOG.md"},
+    keywords=[
+        "automation",
+        "home-assistant.io",
+        "home-automation",
+        "intertechno",
+        "mqtt",
+        "outlet",
+        "power",
+        "radio-frequency",
+        "raspberry-pi",
+        "remote-control",
+        "switch",
+    ],
+    classifiers=[
+        # https://pypi.org/classifiers/
+        "Development Status :: 2 - Pre-Alpha",
+        "Intended Audience :: End Users/Desktop",
+        "Intended Audience :: System Administrators",
+        "Operating System :: POSIX :: Linux",
+        "Topic :: Home Automation",
+    ],
+    # entry_points={"console_scripts": ["intertechno-cc1101-mqtt = intertechno_cc1101:_main"]},
+    install_requires=["intertechno-cc1101>=0.1.0,<0.2", "paho-mqtt<2"],
+    setup_requires=["setuptools_scm"],
+    tests_require=["pytest"],
+    dependency_links=[
+        "git+https://git.hammerle.me/fphammerle/intertechno-cc1101@v0.1.0"
+        "#egg=intertechno-cc1101-0.1.0"
+    ],
+)