diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b5a3c46 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..9a76749 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,26 @@ +[metadata] +name = ADS1x15-ADC +version = 1.1.1 +author = Chandra Wijaya Sentosa +author_email = chandra.w.sentosa@gmail.com +description = Python library used for ADS1x15 analog to digital converter (ADC) +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/chandrawi/ADS1x15-ADC +project_urls = + Bug Tracker = https://github.com/chandrawi/ADS1x15-ADC/issues +classifiers = + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: POSIX :: Linux + Topic :: System :: Hardware + Topic :: System :: Hardware :: Hardware Drivers + +[options] +include_package_data = True +packages = + ADS1x15 +python_requires = >=2.7 +install_requires = + smbus2 diff --git a/setup.py b/setup.py index 78d088c..c1057cf 100644 --- a/setup.py +++ b/setup.py @@ -1,38 +1,3 @@ -import pathlib -from setuptools import setup +import setuptools -# The directory containing this file -HERE = pathlib.Path(__file__).parent - -# The text of README file -README = (HERE / "README.md").read_text() - -# This call to setup() does all the work -setup( - name="ADS1x15-ADC", - version="1.1.0", - description="Python library used for ADS1x15 analog to digital converter (ADC)", - long_description=README, - long_description_content_type="text/markdown", - url="https://github.com/chandrawi/ADS1x15-ADC", - author="Chandra Wijaya Sentosa", - author_email="chandra.w.sentosa@gmail.com", - license="MIT", - classifiers=[ - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - ], - packages=[ - "ADS1x15", - ], - include_package_data=True, - install_requires=[ - "smbus2", - ], -) +setuptools.setup() \ No newline at end of file