diff --git a/lmwsip/__init__.py b/lmwsip/__init__.py index 4d5b1fa..848b670 100644 --- a/lmwsip/__init__.py +++ b/lmwsip/__init__.py @@ -12,7 +12,7 @@ from datetime import datetime, timedelta from dateutil import tz """ Version info changed by git hook """ -__version__ = '0.9.0' +__version__ = '' class LmwSip: """Class to connect to the LMW Standard Interface prototcol (sip) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..374b58c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..9b0193f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,17 @@ +[metadata] +name = lmwsip +version = 0.9.0 +author = Marcel Nijenhof +author_email = pip@marceln.org +description = Interface for the lmw sip protocol +long_description = file: README.md +long_description_content_type = text/markdown +url = https://marceln.org/git/Werk/lmwsip +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + Topic :: Lmw sip interface + +[options] +python_requires = >= 3.6 diff --git a/setup.py b/setup.py index 36e65ff..7f1a176 100644 --- a/setup.py +++ b/setup.py @@ -1,26 +1,4 @@ -import setuptools +from setuptools import setup -with open("README.md", "r") as fh: - long_description = fh.read() - -setuptools.setup( - name="lmwsip", # Replace with your own username - version="0.9.0", - author="Marcel Nijenhof", - author_email="pip@marceln.org", - description="Interface for the lmw sip protocol", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://marceln.org/git/Werk/lmwsip", - packages=setuptools.find_packages(), - install_requires=[ - 'python-dateutil' - ], - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Topic :: Lmw sip interface" - ], - python_requires='>=3.6', -) +if __name__ == "__main__": + setup()