Maxime Alves LIRMM
189fcf86f7
[cli.routes] halfapi routes --export
2021-11-30 01:54:48 +01:00
Maxime Alves LIRMM
55878df260
[lib.domain] use args_check by default, even on async functions
2021-11-30 01:52:02 +01:00
Maxime Alves LIRMM
a6985fa9bf
[halfapi] configuration globals go lowercase
2021-11-30 01:50:27 +01:00
Maxime Alves LIRMM
ed6dcb0513
[halfapi] application becomes a private attribute
2021-11-30 01:49:37 +01:00
Maxime Alves LIRMM
7017827b2b
[lib] small fixes
2021-11-30 01:46:30 +01:00
Maxime Alves LIRMM
7c2bf60812
[pytest] remove halfapi from tests directory
2021-11-30 01:43:14 +01:00
Maxime Alves LIRMM
1fda2ab15d
[lib.schemas] add schema_csv_dict and schema_to_csv function
2021-11-30 01:42:29 +01:00
Maxime Alves LIRMM
c9639ddbc0
[constants] add lib "schema" Schemas for all items
2021-11-30 00:37:13 +01:00
Maxime Alves LIRMM
24bd3f5653
[deps] add "schema" as dependency
2021-11-29 17:01:52 +01:00
Maxime Alves LIRMM@home
e203552876
[dummy_domain] add async routes, and routes that use arguments
2021-11-29 08:37:52 +01:00
Maxime Alves LIRMM@home
ac4aadc2df
[conf][testfail] add SCHEMA dictionary to globals
2021-11-29 06:21:48 +01:00
Maxime Alves LIRMM@home
4dae2f3676
[dummy_domain] add tests for dummy_domain acls
2021-11-29 06:09:18 +01:00
Maxime Alves LIRMM@home
c27ed3a966
[routers] docstring is mandator in route methods. YAML is used for markup
2021-11-29 06:08:24 +01:00
Maxime Alves LIRMM@home
47d81c048f
[lib] route_acl_decorator becomes HalfRoute.acl_decorator, creation of HalfRoute that wraps starlette.route
2021-11-29 05:42:26 +01:00
Maxime Alves LIRMM
ad6877a7e9
[run] add arguments for config
2021-11-23 13:53:08 +01:00
Maxime Alves LIRMM
e7e1bfed1b
[conf] halfapi config now dumps the .ini of the current config
2021-11-23 13:35:12 +01:00
Maxime Alves LIRMM
f0e662e060
[conf] remove is_project variable
2021-11-23 11:39:33 +01:00
Maxime Alves LIRMM
ea8e7ede65
[cli.routes:export] shows a header to describe the CSV, can be deactivated
2021-11-22 20:14:05 +01:00
Maxime Alves LIRMM
f4880f1f9c
[lib.domain] wraps function when loading routes from modules, to get the real name
2021-11-22 20:09:57 +01:00
Maxime Alves LIRMM
4a8cb008e6
[cli.routes] add routes command, allows exporting route dict as csv
2021-11-22 20:06:50 +01:00
Maxime Alves LIRMM
049860fce5
[lib.domain] gen_router_routes yields router module also
2021-11-22 20:06:12 +01:00
Maxime Alves LIRMM
908eab5fdc
[lib.user] move JWTUser, Nobody and CheckUser to lib.user
2021-11-22 20:05:17 +01:00
Maxime Alves LIRMM
ce672eeb30
[cli.domain] fix list routes
2021-11-22 19:09:02 +01:00
Maxime Alves LIRMM
1f20a336e2
[conf] production now defaults to true
2021-11-22 18:30:29 +01:00
Maxime Alves LIRMM
0173eb6d72
HalfAPI class clean and rewrite
2021-11-22 18:18:06 +01:00
Maxime Alves LIRMM
ad9bd45ba0
[logging] use logger from halfapi.logging
2021-11-16 17:45:40 +01:00
Maxime Alves LIRMM
00c7b5caf4
[doc] update README and add joel to license
2021-11-16 17:45:40 +01:00
Maxime Alves LIRMM
5184ab4411
[ci][wip] utilisation de devtools/kaniko du lirmm
2021-11-16 17:40:05 +01:00
Maxime Alves LIRMM
159d38cb94
[wip][ci] utilisation image officielle buildah
2021-11-10 10:46:32 +01:00
Maxime Alves LIRMM@home
0cad726f8c
[ci] try buildah
2021-11-01 10:34:52 +01:00
Maxime Alves LIRMM@home
94e09a546b
[dockerfile] install git
2021-10-12 18:18:54 +02:00
Maxime Alves LIRMM@home
0643af5cca
[dockerfile] add gunicorn/uvicorn
2021-10-12 18:08:07 +02:00
Maxime Alves LIRMM@home
339c910c86
[wip][ci] "before_script" runs before every job
2021-10-12 14:30:11 +02:00
Maxime Alves LIRMM@home
948372fcbc
[wip][ci] try to build docker image
2021-10-12 03:18:32 +02:00
Maxime Alves LIRMM@home
5a0509a114
set loglevel even if in production
2021-10-12 03:10:10 +02:00
Maxime Alves LIRMM@home
c99e636d6e
[0.5.13]
...
Squashed commit of the following:
commit 4552d85cc49fda572e54aa9c8054031554bfcb3a
Author: Maxime Alves LIRMM@home <maxime.alves@lirmm.fr>
Date: Thu Oct 7 13:57:37 2021 +0200
[0.5.13]
commit 38032acfac559155b31c12cf12673c81b7cfdf20
Author: Maxime Alves LIRMM@home <maxime.alves@lirmm.fr>
Date: Thu Oct 7 13:57:12 2021 +0200
add 503 error code
commit 6f516e844b0f3786aa571d1ac8d575247ff7b7fe
Author: Maxime Alves LIRMM@home <maxime.alves@lirmm.fr>
Date: Thu Oct 7 13:26:15 2021 +0200
[ci] add run halfapi --version
2021-10-07 13:58:03 +02:00
Maxime Alves LIRMM@home
8b88d7f1b4
[0.5.12] fix production no reload
2021-10-07 13:23:53 +02:00
Maxime Alves LIRMM@home
f27b68e350
[0.5.11]
2021-10-04 22:16:27 +02:00
Maxime Alves LIRMM@home
f3c12f516e
[cli] run does not reload modules by default
2021-10-04 20:11:32 +02:00
Maxime Alves LIRMM
55109e271c
[conf] fix HALFAPI_PROD variable that is set to a string
2021-09-03 16:38:20 +02:00
Maxime Alves LIRMM
51877b271e
[conf] Read "HALFAPI_SECRET" file content if the option is not specified. Do not use HALFAPI_SECRET to store the *secret* value
2021-09-03 16:22:55 +02:00
Maxime Alves LIRMM
061c966072
[lib.domain] fix mounting domains with environment variable
2021-09-03 14:56:18 +02:00
Maxime Alves LIRMM
cdd2214043
[conf] halfapi becomes configurable only by environment variables (for one domain)
2021-09-03 13:17:06 +02:00
Maxime Alves LIRMM
0470f9fa89
[0.5.9] release
...
Squashed commit of the following:
commit 7fe3e22f5e4108b5eb149abf8d608334debc49ca
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 16:59:52 2021 +0200
[0.5.9] release
commit c36c0fcc982388a5acf2f9f937fa8ab54a18f3de
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 16:53:13 2021 +0200
[conf] fix #19 et ajout du test (test_dummy_project_router/test_get_config)
configuration du domaine accessible depuis :
l'attribut config de l'argument "halfapi" pour les fonctions
request.scope['config'] pour les fonctions async
commit cc235eee8c6f8f5d3606dda0f88156697eac296e
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 14:59:17 2021 +0200
[tests] don't import click two times
commit fa418478c76205bb407e536737d8e389b4bf391c
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 14:57:06 2021 +0200
[clean] remove unused variables, remove [] as default value in fct, raise from exc
2021-09-02 17:01:36 +02:00
Maxime Alves LIRMM
74b79120ba
[deps] starlette 0.16
2021-09-02 14:48:48 +02:00
Maxime Alves LIRMM
bc556854ac
Fix #21 by simplifying DomainMiddleware
...
Tests are passing, but we loose the by-domain configuration (#19 )
Squashed commit of the following:
commit d75fafcb9a043ac2540b2ac135704721b002d3c0
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 14:40:05 2021 +0200
fix #21
commit 38c59e4ea3b40bd230f2add2bb0e05772913c097
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 01:13:51 2021 +0200
[deps] starlette 0.15 (breaks tests)
FAILED tests/test_debug_routes.py::test_current_user - AttributeError: 'DomainMiddleware' object has no attribute 'call_next'
FAILED tests/test_debug_routes.py::test_log - AttributeError: 'DomainMiddleware' object has no attribute 'call_next'
FAILED tests/test_debug_routes.py::test_error - AttributeError:
'DomainMiddleware' object has no attribute 'call_next'
FAILED tests/test_dummy_project_router.py::test_get_route - AttributeError: 'DomainMiddleware' object has no attribute 'call_next'
FAILED tests/test_dummy_project_router.py::test_delete_route - AttributeError: 'DomainMiddleware' object has no attribute 'call_next'
FAILED tests/test_lib_schemas.py::test_get_api_routes - AttributeError: 'DomainMiddleware' object has no attribute 'call_next'
FAILED tests/test_lib_schemas.py::test_get_schema_route - AttributeError: 'DomainMiddleware' object has no attribute 'call_next'
FAILED tests/test_lib_schemas.py::test_get_api_dummy_domain_routes - AttributeError: 'DomainMiddleware' object has no attribute 'call_next'
2021-09-02 14:45:06 +02:00
Maxime Alves LIRMM
865a4dffd1
[ci] add continuous integration
...
Squashed commit of the following:
commit e7b303310f3726c4ec5b36db668f7a5aaee29287
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 10:35:16 2021 +0200
fix gitlab-ci run
commit 360c03371f1b088ce883646799f829a50f7a04a8
Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr>
Date: Thu Sep 2 08:26:51 2021 +0000
Update .gitlab-ci.yml file
2021-09-02 10:38:19 +02:00
Maxime Alves LIRMM
5e2ccceedf
[deps] "build" (python -m build --sdist; python -m build --wheel)
2021-09-02 10:20:03 +02:00
Maxime Alves LIRMM
844f6a8f14
[packaging] 0.5.8 update to PyPi
2021-09-01 15:59:47 +02:00
Maxime Alves LIRMM
43b7fe21df
[license] change author
2021-09-01 15:26:56 +02:00