Mercurial > personal > weatherlog
comparison setup.py @ 17:39c0686e6765
daemon: Change to executing from a config file.
This updates daemon.py to execute based on a config file, rather than
needing manual configuration. It also instructs setup.py to create
an entry point for the new daemon.py main function.
Configuration is specified in a TOML file whose format is documented,
kind of, in the parse_config function.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Thu, 17 Oct 2019 22:28:12 -0400 |
| parents | b5625b531d2d |
| children | 9daa281d996b |
comparison
equal
deleted
inserted
replaced
| 16:770215590d80 | 17:39c0686e6765 |
|---|---|
| 1 import setuptools | 1 import setuptools |
| 2 | 2 |
| 3 setuptools.setup( | 3 setuptools.setup( |
| 4 name='weatherlog', | 4 name='weatherlog', |
| 5 version='0.1.0', | 5 version='0.2.0', |
| 6 packages=setuptools.find_packages(), | 6 packages=setuptools.find_packages(), |
| 7 python_requires='>=3.7', | 7 python_requires='>=3.7', |
| 8 install_requires=[ | 8 install_requires=[ |
| 9 'adafruit-blinka', | 9 'adafruit-blinka', |
| 10 'adafruit-circuitpython-dht', | 10 'adafruit-circuitpython-dht', |
| 12 'pymongo', | 12 'pymongo', |
| 13 'pytz', | 13 'pytz', |
| 14 'requests', | 14 'requests', |
| 15 'RPi.bme280', | 15 'RPi.bme280', |
| 16 'smbus2', | 16 'smbus2', |
| 17 'toml', | |
| 17 ], | 18 ], |
| 18 setup_requires=['wheel'], | 19 setup_requires=['wheel'], |
| 20 entry_points={ | |
| 21 'console_scripts': [ | |
| 22 'weatherlogd = weatherlog.daemon:main', | |
| 23 ] | |
| 24 } | |
| 19 ) | 25 ) |
