Mercurial > personal > weatherlog
annotate 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 |
rev | line source |
---|---|
7 | 1 import setuptools |
2 | |
3 setuptools.setup( | |
8
a47bf21e89bf
Fix setuptools/pip metadata to be consistent+complete.
Paul Fisher <paul@pfish.zone>
parents:
7
diff
changeset
|
4 name='weatherlog', |
17
39c0686e6765
daemon: Change to executing from a config file.
Paul Fisher <paul@pfish.zone>
parents:
15
diff
changeset
|
5 version='0.2.0', |
8
a47bf21e89bf
Fix setuptools/pip metadata to be consistent+complete.
Paul Fisher <paul@pfish.zone>
parents:
7
diff
changeset
|
6 packages=setuptools.find_packages(), |
7 | 7 python_requires='>=3.7', |
8 install_requires=[ | |
9
d8f38d992387
setup: Try adding setup_requires=wheel?
Paul Fisher <paul@pfish.zone>
parents:
8
diff
changeset
|
9 'adafruit-blinka', |
d8f38d992387
setup: Try adding setup_requires=wheel?
Paul Fisher <paul@pfish.zone>
parents:
8
diff
changeset
|
10 'adafruit-circuitpython-dht', |
7 | 11 'attrs', |
12 'pymongo', | |
13 'pytz', | |
10
b1657de734d5
Add HTTPWriter, which actually writes over HTTP.
Paul Fisher <paul@pfish.zone>
parents:
9
diff
changeset
|
14 'requests', |
15
b5625b531d2d
Add support for BME280 temperature sensor over i2c.
Paul Fisher <paul@pfish.zone>
parents:
13
diff
changeset
|
15 'RPi.bme280', |
b5625b531d2d
Add support for BME280 temperature sensor over i2c.
Paul Fisher <paul@pfish.zone>
parents:
13
diff
changeset
|
16 'smbus2', |
17
39c0686e6765
daemon: Change to executing from a config file.
Paul Fisher <paul@pfish.zone>
parents:
15
diff
changeset
|
17 'toml', |
7 | 18 ], |
9
d8f38d992387
setup: Try adding setup_requires=wheel?
Paul Fisher <paul@pfish.zone>
parents:
8
diff
changeset
|
19 setup_requires=['wheel'], |
17
39c0686e6765
daemon: Change to executing from a config file.
Paul Fisher <paul@pfish.zone>
parents:
15
diff
changeset
|
20 entry_points={ |
39c0686e6765
daemon: Change to executing from a config file.
Paul Fisher <paul@pfish.zone>
parents:
15
diff
changeset
|
21 'console_scripts': [ |
39c0686e6765
daemon: Change to executing from a config file.
Paul Fisher <paul@pfish.zone>
parents:
15
diff
changeset
|
22 'weatherlogd = weatherlog.daemon:main', |
39c0686e6765
daemon: Change to executing from a config file.
Paul Fisher <paul@pfish.zone>
parents:
15
diff
changeset
|
23 ] |
39c0686e6765
daemon: Change to executing from a config file.
Paul Fisher <paul@pfish.zone>
parents:
15
diff
changeset
|
24 } |
7 | 25 ) |