Skip to content

Commit

Permalink
Edit package build setup
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrawi committed Mar 3, 2021
1 parent a6de471 commit 8343224
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 37 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
26 changes: 26 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[metadata]
name = ADS1x15-ADC
version = 1.1.1
author = Chandra Wijaya Sentosa
author_email = [email protected]
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
39 changes: 2 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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()

0 comments on commit 8343224

Please sign in to comment.