diff --git a/Dockerfile b/Dockerfile index a6510b0..c618235 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ RUN apt-get update \ RUN mkdir -p /build/wheels RUN pip3 install --upgrade pip setuptools wheel -ADD requirements.txt /tmp/requirements.txt -RUN pip3 wheel -r /tmp/requirements.txt --wheel-dir=/build/wheels +ADD pyproject.toml /tmp/pyproject.toml +RUN cd /tmp && pip3 wheel --wheel-dir=/build/wheels . # Now build the wheel for this project too. ADD . /app diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..5893413 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include freezing/sync * diff --git a/pyproject.toml b/pyproject.toml index 064761e..f319482 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,50 +1,54 @@ [project] name = "freezing-sync" -version = "1.6.6" +version = "1.6.0" description = "Freezing Saddles activity and metadata sync." authors = [ { name = "Richard Bullington-McGuire", email = "rbulling@obscure.org" } ] -license = { name = "Apache-2.0" } +license = {text = "Apache License (2.0)"} dependencies = [ "APScheduler==3.11.0", "GeoAlchemy2==0.16.0", "PyMySQL==1.1.1", - "SQLAlchemy==2.0.0", + "SQLAlchemy==1.4.54", "colorlog==6.9.0", "datadog==0.50.2", "envparse==0.2.0", - { url = "https://github.com/freezingsaddles/freezing-model/archive/0.11.2.tar.gz" }, "greenstalk==2.0.2", "polyline==1.4.0", "pytz==2024.2", "requests==2.32.3", - "stravalib==1.2.0" + "stravalib==1.2.0", + "freezing-model @ https://github.com/freezingsaddles/freezing-model/archive/0.11.2.tar.gz", ] classifiers = [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", "Operating System :: OS Independent", - "Programming Language :: Python :: 3" + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Topic :: Games", ] [project.optional-dependencies] dev = [ "black==24.10.0", + "flake8-pyproject==1.1.0", "flake8==7.1.1", "isort==5.13.2", "pur==7.3.3", - "flake8-pyproject==1.1.0" ] [project.entry-points.console_scripts] freezing-sync = "freezing.sync.run:main" freezing-sync-activities = "freezing.sync.cli.sync_activities:main" +freezing-sync-athletes = "freezing.sync.cli.sync_athletes:main" freezing-sync-detail = "freezing.sync.cli.sync_details:main" -freezing-sync-streams = "freezing.sync.cli.sync_streams:main" freezing-sync-photos = "freezing.sync.cli.sync_photos:main" +freezing-sync-streams = "freezing.sync.cli.sync_streams:main" freezing-sync-weather = "freezing.sync.cli.sync_weather:main" -freezing-sync-athletes = "freezing.sync.cli.sync_athletes:main" [tool.isort] profile = "black" diff --git a/requirements-test.txt b/requirements-test.txt deleted file mode 100644 index d29decb..0000000 --- a/requirements-test.txt +++ /dev/null @@ -1,4 +0,0 @@ -black==24.10.0 -flake8==7.1.1 -isort==5.13.2 -pur==7.3.3 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 7536a11..0000000 --- a/requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -APScheduler==3.11.0 -GeoAlchemy2==0.16.0 -PyMySQL==1.1.1 -colorlog==6.9.0 -datadog==0.50.2 -envparse==0.2.0 -freezing-model @ https://github.com/freezingsaddles/freezing-model/archive/0.11.2.tar.gz -greenstalk==2.0.2 -pytz==2024.2 -requests==2.32.3 -stravalib==1.2.0