-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (39 loc) · 1.23 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
39
40
41
42
43
44
# -*- coding: utf-8 -*-
"""Setup"""
from setuptools import find_packages, setup
INSTALL_REQUIRES = (
"pip>=21.2.1",
"pyserial>=3.5",
"RPi.GPIO>=0.7.1a4",
"setuptools>=59.5.0",
"spidev>=3.5",
"wheel>=0.37.0",
)
SETUP_REQUIRES = ("setuptools_scm[toml]>=6.3.2",)
TEST_REQUIRES = (
"black",
"pre-commit",
)
setup(
entry_points={
"console_scripts": [
"pn532.mifare.dump = pn532.example.mifare.dump:main",
"pn532.mifare.rw = pn532.example.mifare.rw:main",
"pn532.ntag2.dump = pn532.example.ntag2.dump:main",
"pn532.ntag2.rw = pn532.example.ntag2.rw:main",
"pn532.get.uid = pn532.example.uid:main",
"pn532.gpio.read = pn532.example.gpio.read:main",
"pn532.gpio.write = pn532.example_gpio.write:main",
"pn532.uart.hex = pn532.example.uart.hex:main",
]
},
extras_require={"all": TEST_REQUIRES, "test": TEST_REQUIRES,},
include_package_data=True,
install_requires=INSTALL_REQUIRES,
packages=find_packages("src"),
package_dir={"": "src"},
python_requires=">=3.7.3",
setup_requires=SETUP_REQUIRES,
tests_require=TEST_REQUIRES,
use_scm_version={"local_scheme": "dirty-tag"},
)