Skip to content

Commit

Permalink
Merge branch 'release-v0.7.18'
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Jun 25, 2023
2 parents d3ab043 + 57306cf commit 325d612
Show file tree
Hide file tree
Showing 356 changed files with 53,100 additions and 34,470 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ per-file-ignores =
fittrackee/application/app_config.py:E501
fittrackee/tests/test_email.py:E501
fittrackee/tests/test_email_template_password_request.py:E501
exclude = fittrackee/migrations
9 changes: 6 additions & 3 deletions .github/workflows/.tests-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
--health-retries 5
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v2
- name: Install Poetry and Dependencies
Expand All @@ -44,9 +44,12 @@ jobs:
- name: Bandit
if: matrix.python-version == '3.10'
run: bandit -r fittrackee -c pyproject.toml
- name: Lint
- name: Lint (isort & black)
if: matrix.python-version == '3.10'
run: pytest --flake8 --isort --black -m "flake8 or isort or black" fittrackee e2e --ignore=fittrackee/migrations -p no:warnings
run: pytest --isort --black -m "isort or black" fittrackee e2e --ignore=fittrackee/migrations -p no:warnings
- name: Lint (flake8)
if: matrix.python-version == '3.10'
run: flake8 fittrackee e2e
- name: Mypy
if: matrix.python-version == '3.10'
run: mypy fittrackee
Expand Down
94 changes: 68 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# Change log

## Version 0.7.18 (2023/06/25)

Polish is available in FitTrackee interface ([partially translated](https://hosted.weblate.org/languages/pl/fittrackee/)).
Documentation is now translated in French (**note**: documentation translations are not yet available on Weblate).

**Important**: Python 3.7 is no longer supported, the minimum version is now Python 3.8.1.

### Translations

* [#351](https://github.com/SamR1/FitTrackee/issues/351) - [Translation Request] Polish
* [PR#370](https://github.com/SamR1/FitTrackee/pull/370) - Translations update (Dutch, thanks to @bjornclauw)
* [PR#371](https://github.com/SamR1/FitTrackee/pull/371) - Translations update (Polish, thanks to Mariusz on Weblate)
* [PR#375](https://github.com/SamR1/FitTrackee/pull/375) - Translations update (French, thanks to @Thovi98)
* [PR#376](https://github.com/SamR1/FitTrackee/pull/376) - Translations update (German, thanks to @qwerty287)


### Documentation

* [1375986](https://github.com/SamR1/FitTrackee/commit/1375986837321fa356decadcff89bfc2144c345e) - Change documentation theme for Furo
* [#377](https://github.com/SamR1/FitTrackee/issues/377) - Init documentation translation


### Misc

* [#354](https://github.com/SamR1/FitTrackee/issues/354) - Drop support for Python 3.7
* [PR#374](https://github.com/SamR1/FitTrackee/pull/374) - Docker - install fittrackee in a virtualenv


Translation status:
- Dutch: 100%
- English: 100%
- French: 100%
- Galician: 100%
- German: 100%
- Italian: 87%
- Norwegian Bokmål: 36%
- Polish: 43%
- Spanish: 100%

Thanks to all contributors.


## Version 0.7.17 (2023/06/03)

### Translations
Expand Down Expand Up @@ -59,7 +101,7 @@ Thanks to the contributors:
- @jat255
- @xmgz

**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.7.15 (2023/04/12)
Expand Down Expand Up @@ -117,7 +159,7 @@ Thanks to the contributors:
- mondstern from Weblate


**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.7.14 (2023/03/08)
Expand Down Expand Up @@ -165,7 +207,7 @@ Thanks to the contributors:
- @bjornclauw
- @qwerty287

**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.7.12 (2023/02/16)
Expand All @@ -185,7 +227,7 @@ Thanks to the contributors:
### Features and enhancements

* [PR#265](https://github.com/SamR1/FitTrackee/pull/265) - Implementing alternative weather API (VisualCrossing.com)
**Note**: A new environment variable must be to set to configure the weather data provider: `WEATHER_API_PROVIDER` (see [documentation](https://samr1.github.io/FitTrackee/installation.html#weather-data))
**Note**: A new environment variable must be to set to configure the weather data provider: `WEATHER_API_PROVIDER` (see [documentation](https://samr1.github.io/FitTrackee/en/installation.html#weather-data))

### Translations

Expand Down Expand Up @@ -213,7 +255,7 @@ FitTrackee is now available in Italian (thanks to @dperruso).
* [c88a515](https://github.com/SamR1/FitTrackee/commit/c88a5158fea5f9e2fa8c41ecc2c100f6d9319371) - Translations update from Hosted Weblate (Dutch, thanks to @bjornclauw)
* [f96dcef](https://github.com/SamR1/FitTrackee/commit/f96dcef0dc69d00f65a036fa2e33c22612004cb1) - Translations update (German)

**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.7.9 (2022/12/11)
Expand All @@ -227,7 +269,7 @@ FitTrackee is now available in Italian (thanks to @dperruso).
* [PR#278](https://github.com/SamR1/FitTrackee/pull/278) - Translations update from Hosted Weblate (German, thanks to @qwerty287)
* [PR#282](https://github.com/SamR1/FitTrackee/pull/282) - Init italian translation files

**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.7.8 (2022/11/30)
Expand Down Expand Up @@ -259,7 +301,7 @@ FitTrackee is now available in Dutch (thanks to @bjornclauw).
* [PR#274](https://github.com/SamR1/FitTrackee/pull/274) - Tests parallelization
* [PR#275](https://github.com/SamR1/FitTrackee/pull/275) - Disable worker entry point

**Note:** `fittrackee_worker` command is disabled, please use existing flask-dramatiq CLI (see [documentation](https://samr1.github.io/FitTrackee/installation.html#from-pypi))
**Note:** `fittrackee_worker` command is disabled, please use existing flask-dramatiq CLI (see [documentation](https://samr1.github.io/FitTrackee/en/installation.html#from-pypi))

## Version 0.7.6 (2022/11/09)

Expand Down Expand Up @@ -321,7 +363,7 @@ Thanks to @jat255

* [PR#252](https://github.com/SamR1/FitTrackee/issues/252) - init Norwegian Bokmål translations files

**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.7.2 (2022/09/21)
Expand Down Expand Up @@ -360,7 +402,7 @@ Thanks to @jat255

* [PR#212](https://github.com/SamR1/FitTrackee/issues/212) - Translations update from Hosted Weblate (thanks to J. Lavoie)

**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.6.12 (2022/09/14)
Expand All @@ -381,7 +423,7 @@ Thanks to @Skylan0916

In this release 1 issue was closed.
**Note:** This release contains a fix on the last database migration that will be executed only on versions lower than v0.6.11 (no data differences with v0.6.11, the fix allows to execute the migration on Postgres<12)
(see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade)).
(see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade)).


## Version 0.6.11 (2022/07/27)
Expand All @@ -403,7 +445,7 @@ In this release 1 issue was closed.
Thanks to @Fmstrat

In this release 1 issue was closed.
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


### Version 0.6.10 (2022/07/13)
Expand All @@ -413,7 +455,7 @@ In this release 1 issue was closed.
#### Bugs Fixed

* [#210](https://github.com/SamR1/FitTrackee/issues/210) - ERROR - could not download 6 tiles
**Note**: for tile server requiring subdomains, see the new environment variable [`STATICMAP_SUBDOMAINS`](https://samr1.github.io/FitTrackee/installation.html#envvar-STATICMAP_SUBDOMAINS)
**Note**: for tile server requiring subdomains, see the new environment variable [`STATICMAP_SUBDOMAINS`](https://samr1.github.io/FitTrackee/en/installation.html#envvar-STATICMAP_SUBDOMAINS)

### Pull Requests

Expand Down Expand Up @@ -493,10 +535,10 @@ No new features in this release, only dependencies update and code refacto befor

## Version 0.6.5 (2022/04/24)

It is now possible to start FitTrackee without a configured SMTP provider (see [documentation](https://samr1.github.io/FitTrackee/installation.html#emails)).
It is now possible to start FitTrackee without a configured SMTP provider (see [documentation](https://samr1.github.io/FitTrackee/en/installation.html#emails)).
It reduces pre-requisites for single-user instances.

To manage users, a new [CLI](https://samr1.github.io/FitTrackee/cli.html) is available.
To manage users, a new [CLI](https://samr1.github.io/FitTrackee/en/cli.html) is available.


### Issues Closed
Expand Down Expand Up @@ -555,7 +597,7 @@ In this release 1 issue was closed.

## Version 0.6.0 (2022/03/27)

This version introduces some changes on [user registration](https://samr1.github.io/FitTrackee/features.html#account-preferences).
This version introduces some changes on [user registration](https://samr1.github.io/FitTrackee/en/features.html#account-preferences).
From now on, a user needs to confirm his account after registration (an email with confirmation instructions is sent after registration).


Expand All @@ -580,7 +622,7 @@ From now on, a user needs to confirm his account after registration (an email wi
Thanks to @Fmstrat

In this release 3 issues were closed.
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.5.7 (2022/02/13)
Expand All @@ -590,7 +632,7 @@ Thanks to @DanielSiersleben for the report.

And from now on, admin account is not created on application initialization.
A new command is added to set administration rights on the account created after registration
(see [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
(see [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))

### Issues Closed

Expand Down Expand Up @@ -634,7 +676,7 @@ In this release 1 issue was closed.


In this release 1 issue was closed.
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/installation.html#upgrade))
**Note:** This release contains database migration (see upgrade instructions in [documentation](https://samr1.github.io/FitTrackee/en/installation.html#upgrade))


## Version 0.5.5 (2022/01/19)
Expand Down Expand Up @@ -863,9 +905,9 @@ In this release 1 issue was closed.

This version introduces some major changes:
- Installation becomes more easy. **FitTrackee** can be now be installed from PyPi.
⚠️ Warning: please read [installation documentation](https://samr1.github.io/FitTrackee/installation.html), some environment variables and files have been renamed.
⚠️ Warning: please read [installation documentation](https://samr1.github.io/FitTrackee/en/installation.html), some environment variables and files have been renamed.
- It's now possible to change the tile provider for maps. The default tile server is now **OpenStreetMap**'s standard tile layer (replacing **ThunderForest Outdoors**),
see [Map tile server in documentation](https://samr1.github.io/FitTrackee/installation.html#map-tile-server).
see [Map tile server in documentation](https://samr1.github.io/FitTrackee/en/installation.html#map-tile-server).

### Issues Closed

Expand All @@ -874,14 +916,14 @@ see [Map tile server in documentation](https://samr1.github.io/FitTrackee/instal
* [#54](https://github.com/SamR1/Fittrackee/issues/54) - Tile server can be changed
* [#53](https://github.com/SamR1/Fittrackee/issues/53) - Simplify FitTrackee installation

In this release 2 issue were closed.
In this release 2 issues were closed.


## Version 0.3.0 - Administration (2020/07/15)

This version introduces some major changes:
- FitTrackee administration is now available (see [documentation](https://samr1.github.io/FitTrackee/features.html#administration))
⚠️ Warning: some application parameters move from environment variables to database (see [installation](https://samr1.github.io/FitTrackee/installation.html#environment-variables)).
- FitTrackee administration is now available (see [documentation](https://samr1.github.io/FitTrackee/en/features.html#administration))
⚠️ Warning: some application parameters move from environment variables to database (see [installation](https://samr1.github.io/FitTrackee/en/installation.html#environment-variables)).
- in order to send emails, Redis is now a mandatory dependency

### Issues Closed
Expand Down Expand Up @@ -1013,7 +1055,7 @@ In this release 7 issues were closed.
- Cycling (Sport)
- Cycling (Transport)
- Hiking
- Montain Biking
- Mountain Biking
- Running
- Walking
- Activity creation by uploading a gpx file. An activity can even be created without gpx (the user must enter date, time, duration and distance)
Expand All @@ -1024,7 +1066,7 @@ In this release 7 issues were closed.
- Current month statistics
- Records by sports:
- average speed
- farest distance
- farthest distance
- longest duration
- maximum speed
- Activities list and search
Expand All @@ -1034,7 +1076,7 @@ In this release 7 issues were closed.
- only activity owner can see his activity
- no administration for now

➡️ more informations: see [documentation](https://samr1.github.io/FitTrackee/) and [current issues](https://github.com/SamR1/FitTrackee/issues)
➡️ more informations: see [documentation](https://samr1.github.io/FitTrackee/) and [current issues](https://github.com/SamR1/FitTrackee/issues)


### Issues Closed
Expand Down
9 changes: 7 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,26 @@ The **GitHub** repository contains:
- source code (note that the repository also includes client build),
- translations,
- tests,
- documentation (source and build).
- documentation (source, translations and build).

Continuous integration workflows run on **Github Actions** platform (on **push** and **pull requests**).

For now, releases do not follow [semantic versioning](https://semver.org). Any version may contain backward-incompatible changes.

### Translations

The available languages are:
[![Translation status](https://hosted.weblate.org/widgets/fittrackee/-/multi-auto.svg)](https://hosted.weblate.org/engage/fittrackee/)

Translations files are located:
Application translations files are located:
- on API side (emails): `fittrackee/emails/translations/` (implemented with [Babel](https://babel.pocoo.org/en/latest/))
- on client side: `fittrackee_client/src/locales` (implemented with [Vue I18n](https://vue-i18n.intlify.dev/))

Translations can be updated through [Weblate](https://hosted.weblate.org/engage/fittrackee/).

Documentation translations are located in following directory: `docsrc/locales`.
For now only English and French are available and translations files are not yet on Weblate.

### How to install FitTrackee

see [Installations instructions](https://samr1.github.io/FitTrackee/installation.html)
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ WORKDIR /usr/src/app
COPY . /usr/src/app

# install requirements
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --upgrade pip
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install --no-interaction --quiet

# create uploads folder
CMD mkdir /usr/src/app/uploads
RUN . $VIRTUAL_ENV/bin/activate && poetry install --no-interaction --quiet

# run fittrackee server
CMD flask run --with-threads -h 0.0.0.0
Loading

0 comments on commit 325d612

Please sign in to comment.