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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
1 import setuptools
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
2
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
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
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
7 python_requires='>=3.7',
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
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
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
11 'attrs',
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
12 'pymongo',
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
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
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
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
357079c3c150 add pip packaging metadata.
Paul Fisher <paul@pfish.zone>
parents:
diff changeset
25 )