-
Notifications
You must be signed in to change notification settings - Fork 150
/
setup.py
executable file
·38 lines (33 loc) · 1.16 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
def get_version():
with open('pirc522/version.py','r') as version_file:
for line in version_file:
if line.startswith('__version__'):
version = line.split('=')[1].strip().strip('"')
return version
setup(
name='pi-rc522',
packages=find_packages(),
include_package_data=True,
version=get_version(),
description='Raspberry Pi Python library for SPI RFID RC522 module.',
long_description='Raspberry Pi Python library for SPI RFID RC522 module.',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
],
author='ondryaso',
author_email='ondryaso@ondryaso.eu',
url='https://github.com/ondryaso/pi-rc522',
license='MIT',
install_requires=['spidev', 'RPi.GPIO'],
)