Prepare for PIP distribution
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
diff --git a/.gitignore b/.gitignore
index 50e9881..642b463 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,6 @@
__pycache__
*.pyc
wiringpi_wrap.c
-wiringpi.py
+odroid_wiringpi.py
.DS_Store
.vscode
\ No newline at end of file
diff --git a/README.rst b/README.rst
index 788ead7..5da6397 100644
--- a/README.rst
+++ b/README.rst
@@ -20,7 +20,7 @@
.. image:: https://badge.fury.io/py/wiringpi.svg
:alt: PyPI version badge
- :target: https://pypi.org/project/wiringpi/
+ :target: https://pypi.org/project/odroid-wiringpi/
The library is packaged on PyPI and can be installed with pip:
diff --git a/setup.cfg b/setup.cfg
index 360d7aa..bf653c5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,7 +1,7 @@
[metadata]
-author = Philip Howard
-author_email = phil@gadgetoid.com
-url = https://github.com/WiringPi/WiringPi-Python/
-description = A python interface to WiringPi 2.0 library which allows for easily interfacing with the GPIO pins of the Raspberry Pi. Also supports i2c and SPI.
+author= Yang Deokgyu
+author_email= secugyu@gmail.com
+url= https://github.com/hardkernel/WiringPi2-Python
+description= A Port of WiringPi Python project for ODROID boards
long_description = file:README.rst
license = LGPL
diff --git a/setup.py b/setup.py
index 322b718..e0a560d 100644
--- a/setup.py
+++ b/setup.py
@@ -56,8 +56,8 @@
return sdist.run(self)
-_wiringpi = Extension(
- '_wiringpi',
+_odroid_wiringpi = Extension(
+ '_odroid_wiringpi',
include_dirs=['WiringPi/wiringPi','WiringPi/devLib'],
sources=sources,
swig_opts=['-threads'],
@@ -65,10 +65,10 @@
)
setup(
- name = 'wiringpi',
+ name = 'odroid_wiringpi',
version = '2.44.4.0',
- ext_modules = [ _wiringpi ],
- py_modules = ["wiringpi"],
+ ext_modules = [ _odroid_wiringpi ],
+ py_modules = ["odroid_wiringpi"],
install_requires=[],
cmdclass = {'build_py' : build_py_ext_first, 'sdist' : sdist_ext_first},
)
diff --git a/wiringpi.i b/wiringpi.i
index 9de9a9f..c67d68d 100644
--- a/wiringpi.i
+++ b/wiringpi.i
@@ -1,4 +1,4 @@
-%module wiringpi
+%module odroid_wiringpi
%{
#if PY_MAJOR_VERSION >= 3