Skip to content

Commit 915f790

Browse files
committed
fix pyproject.toml
1 parent c5c4373 commit 915f790

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

pyproject.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pyadtpulse"
7-
version="1.1.2"
7+
dynamic = ["version"]
88
description="Python interface for ADT Pulse security systems"
9-
readme="README.md"
10-
author="Ryan Snodgrass"
11-
maintainer="Robert Lippmann"
12-
license="Apache Software License"
13-
install_requires=["aiohttp>=3.8.1", "uvloop>=0.17.0", "beautifulsoup4>=4.11.1"]
14-
keywords=["security system", "adt", "home automation", "security alarm"]
15-
classifiers=[
9+
readme = "README.md"
10+
authors = [{name = "Ryan Snodgrass"}]
11+
maintainers = [{name = "Robert Lippmann"}]
12+
license = {file = "LICENSE.md"}
13+
dependencies = ["aiohttp>=3.8.1", "uvloop>=0.17.0", "beautifulsoup4>=4.11.1"]
14+
keywords = ["security system", "adt", "home automation", "security alarm"]
15+
classifiers = [
1616
"Programming Language :: Python :: 3",
1717
"License :: OSI Approved :: Apache Software License",
1818
"Operating System :: OS Independent",
@@ -23,6 +23,9 @@ classifiers=[
2323
"Source" = "https://github.com/rlippmann/pyadtpulse"
2424
"Issues" = "https://github.com/rlippmann/pyadtpulse/issues"
2525

26+
[tool.setuptools.dynamic]
27+
version = {attr = "pyadtpulse.const.__version__"}
28+
2629
[tool.isort]
2730
profile = "black"
2831
force_to_top = [ "logging" ]

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
#!/usr/bin/env python
22

3-
import os
43
import sys
4+
from os import path, system
55
from pathlib import Path
66

77
import setuptools
88

99
from pyadtpulse.const import __version__
1010

1111
if sys.argv[-1] == "publish":
12-
os.system("python setup.py sdist upload")
12+
system("python setup.py sdist upload")
1313
sys.exit()
1414

15-
# read the contents of your README file
16-
from os import path
1715

1816
this_directory = path.abspath(path.dirname(__file__))
1917
long_description = Path(

0 commit comments

Comments
 (0)