Skip to content

Commit

Permalink
Convert to pyproject.toml - get Docker building
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Jan 5, 2025
1 parent 92b341c commit a898565
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include freezing/sync *
22 changes: 13 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" }
]
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"
Expand Down
4 changes: 0 additions & 4 deletions requirements-test.txt

This file was deleted.

11 changes: 0 additions & 11 deletions requirements.txt

This file was deleted.

0 comments on commit a898565

Please sign in to comment.