Mercurial > personal > weather-server
annotate setup.py @ 24:20c8ec56e447
logfile: Pull logfile thread out of Logger.
This enables automatic garbage collection of Logger instances,
since a running thread no longer has a reference to a Logger's self.
It separates exclusive management of logfile state into the
_writer_thread function, which now opens the file and writes it until
it is told to stop by receiving the poison pill.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 10 Nov 2019 23:07:11 -0500 |
parents | 88249e451566 |
children | 7def5611895b |
rev | line source |
---|---|
4
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
1 import setuptools |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
2 |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
3 setuptools.setup( |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
4 name='weather-server', |
23
88249e451566
server: show date when last report was >12h ago.
Paul Fisher <paul@pfish.zone>
parents:
22
diff
changeset
|
5 version='0.0.8', |
4
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
6 packages=setuptools.find_packages(), |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
7 python_requires='>=3.7', |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
8 install_requires=[ |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
9 'attrs', |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
10 'flask', |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
11 'flup', |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
12 'pymongo', |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
13 'pytz', |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
14 ], |
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
15 setup_requires=['wheel'], |
6
f8c2cb05d643
Include data manifest in setup.py.
Paul Fisher <paul@pfish.zone>
parents:
4
diff
changeset
|
16 include_package_data=True, |
4
e7c8dcc5fc15
Make the weather server pip-installable and locally runnable.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
17 ) |