Commit graph

28 commits

Author SHA1 Message Date
Éloi Rivard
edefb51cfb
move from setuptools to hatch (#1258)
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2023-12-12 14:20:34 +01:00
Éloi Rivard
eb7338c76c
chore: migrate from setup.cfg to pyproject.toml (#1243) 2023-10-08 01:56:25 +02:00
Glandos
565bc81f7f FLASK_ENV has been deprecated in Flask 2.2 2023-02-18 16:34:24 +01:00
Glandos
d8b6355101
Update Python (#1083)
* drop python3.6

* update github python actions and use pip cache

* we use setup.cfg not requirements.txt

* add python 3.11. Still in RC for now

* use latest 3.11 version

* 3.11 is strill RC for now

* go back to include key that match original py version

this shouldn't fail

* upgrade psycopg2 for python 3.11

Upgrade for all, it's a minor version

* update documentation for python 3.11 support

* update version

* 3.11 is out

Right on time!
2022-11-08 00:10:21 +01:00
bd116320e4
Use flask run rather than custom manage command (#952) 2021-11-30 11:51:14 +01:00
9ac4418486
Convert all the rst files to markdown. (#906)
Update sphinx to work with the new format.

https://myst-parser.readthedocs.io/en/latest/sphinx/use.html#automatically-create-targets-for-section-headers
was a valuable resource along the way.

Fixes #902.
2021-11-01 20:09:55 +01:00
Glandos
ff4de78b56
Reduce the size of showcase images (#899)
Fixes #875

Original showcase images are kept in another directory, and compressed
in webp in the distributed directory.
Since they won't change so much, let's keep them in git.
2021-10-30 17:30:59 +02:00
Andrew Dickinson
72230448a7
Improve localization on the History page using string replacement (#587) 2021-07-12 22:48:19 +02:00
Glandos
74e222f1a1 remove usage of Flask-Script
Use flask.cli instead with compatibility layer for existing commands,
such as "runserver".
2021-06-06 15:13:21 +02:00
Glandos
3f4b47276e Set black target to python3.6 2020-11-25 09:25:36 +01:00
Glandos
fa14100b16
Switch to isort 5 (#669) 2020-08-05 22:56:43 +02:00
Jocelyn Delalande
55bce593f0 Use venv module rather than virtualenv
- simpler to use
- lighter dependency (or no dependency at all, depending on python distribution)
- retrocompatible

virtualenv package from pip to acheive virtual environment feature is no longer
needed, except for projects which need to support py2, which is no longer our
case.

Also, reword "virtualenv" to "virtual environment" in doc, to avoid confusion
with pip package name.

Ref #483
2020-07-26 20:14:59 +02:00
Rémy HUBSCHER
299c64a48c
Add isort support. (#561) 2020-04-21 13:59:41 +02:00
Rémy HUBSCHER
f0b40578ad
Fix makefile 2020-04-21 11:15:51 +02:00
Rémy HUBSCHER
5d3266873e
Update known working set. (#558)
* Update known working set.

* Pin dependencies in setup.cfg.

* Cleanup Makefile.

* Try the python_version trick.
2020-04-21 10:30:13 +02:00
Adrien CLERC
3218a0d023 rename target to match other targets naming scheme 2019-09-03 10:42:51 +02:00
Adrien CLERC
4a7c9d541d add compress_assets target to compress PNG.
It depends on zopflipng, find and xargs.
Only zopflipng is tested, since it is the less common.
2019-09-03 10:42:51 +02:00
0livd
5b5956d86d Document database migrations
Closes #390
2018-12-07 22:52:30 +01:00
Marien Fressinaud
bfdcf31438 doc: Improve Makefile (#387)
* Add help target to the Makefile

It is often expected to have a `help` target in a Makefile. This one is
automatically generated from comments in the Makefile so it is easier to
maintain.

This commit only documents targets that seem the most important.

* Add the server address and port on `make serve`

Developers should not have to read the documentation to find where to
point their browsers to access ihatemoney application.

* Add .PHONY instructions to the Makefile

`.PHONY` instructs Make to not look, for instance, for an `install` file
before executing the corresponding target. If such a file would exist,
the command would not be performed at all. This is because Make is
initially intended to create files (i.e. targets) and consider there is
nothing to do if the file already exists.

More information on https://stackoverflow.com/a/2145605.
2018-09-03 20:28:46 +02:00
JocelynDelalande
fc9781b8c0 Enhance translation tooling (#360)
* Add a `make update-translations` command

To collect new strings to be translated from code.

Totally cheated on @Glandos commands :-)

Ref #336
Ref https://github.com/spiral-project/ihatemoney/issues/336#issue-322069517

* Document translation process

Fix #336

* Drop noisy location comments from .po files

Fix #339

* Drop .pot header

As it serves no purpose with our translation workflow.
.po header could be removed also, but pybabel has no option for that.

Ref #339
2018-08-05 14:59:39 +02:00
0livd
974485690c Add a database revision makefile recipe (#281) 2017-11-02 22:38:58 +01:00
3a4282fd75 Absolute imports & some other improvements (#243)
* Use absolute imports and rename package to ihatemoney
* Add a ihatemoney command
* Factorize application creation logic
* Refactor the tests
* Update the wsgi.py module with the new create_app() function
* Fix some styling thanks to Flake8.
* Automate Flake8 check in the CI.
2017-07-07 00:06:56 +02:00
0e374cd5e0 Make all imports relative (#229)
* Make all imports relative

* Change the way the application runs in the Makefile

* Import the default settings relatively

* Fix manage.py imports
2017-06-28 21:36:02 +02:00
db29648956 Re-organize the documentation (#223)
* Re-organize the documentation

* Fix encoding errors for python 2

* Document the dependencies. Fixes #199

* Add a make update command. Fixes #211
2017-06-21 14:03:16 +02:00
0livd
50d2689179 Makefile: Add new rule to compile translations (#207) 2017-05-06 00:02:18 +02:00
Toover
41ede04a59 Fix makefile: Python lookup and virtualenv setup (#201)
* Fix Python lookup in the Makefile

* Improve the Makefile

To make sure calling for "make serve"
works straight away, the dependencies are
automatically prepared. A "make clean" has
been added, to test this feature.
2017-04-15 19:33:34 +02:00
42c9af528f Add tox support. 2017-03-28 17:50:11 +02:00
d1facecc69 Create a Makefile to ease development 2017-03-28 17:41:34 +02:00