]> gitweb.michael.orlitzky.com - geoipyupdate.git/log
geoipyupdate.git
7 months agopyproject.toml: update license classifiers
Michael Orlitzky [Sat, 22 Mar 2025 15:38:39 +0000 (11:38 -0400)]
pyproject.toml: update license classifiers

Getting a lot of loud complaints about this while making an sdist.

7 months agosrc/geoipyupdate/__init__.py: respect umask for the database
Michael Orlitzky [Sat, 22 Mar 2025 15:11:36 +0000 (11:11 -0400)]
src/geoipyupdate/__init__.py: respect umask for the database

All python temporary files are created with mode 600, and that
includes the temporary files that we use to download/decompress the
database. When we eventually move the database to its destination, it
retains these permissions and needs to be chmod'ed. This leads to a
race condition where web applications can raise permission errors in
the instant that the database is unreadable.

The solution to this is obvious, we should just respect the umask.
But python makes this very hard to do: the tempfile module ignores the
umask, and you can't obtain the umask without changing it, and
changing it affects other threads... anyway, it can be done, if
carefully. This commit uses os.chmod() on the database file to make it
world readable and group writable, minus whatever permissions the user
has masked.

18 months agoREADME.rst: reword a bullet point
Michael Orlitzky [Thu, 18 Apr 2024 22:51:57 +0000 (18:51 -0400)]
README.rst: reword a bullet point

18 months agopyproject.toml: use semver for our versioning scheme 0.0.1
Michael Orlitzky [Thu, 18 Apr 2024 22:41:14 +0000 (18:41 -0400)]
pyproject.toml: use semver for our versioning scheme

18 months agodoc/man1/geoipyupdate.1: new man page
Michael Orlitzky [Thu, 18 Apr 2024 22:29:56 +0000 (18:29 -0400)]
doc/man1/geoipyupdate.1: new man page

18 months agoInitial commit.
Michael Orlitzky [Wed, 17 Apr 2024 23:08:22 +0000 (19:08 -0400)]
Initial commit.

Everything except the man page is here. It seems to work.  What more
do you want?