File tree Expand file tree Collapse file tree 6 files changed +40
-4
lines changed Expand file tree Collapse file tree 6 files changed +40
-4
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,9 @@ SERVICE != echo ${app_name}back
4
4
REGGAE_PATH := /usr/local/share/reggae
5
5
6
6
.include <${REGGAE_PATH}/mk/service.mk>
7
+
8
+ build :
9
+ @sudo cbsd jexec jname=${SERVICE} user=devel cmd=/usr/src/bin/build.sh
10
+
11
+ publish : build
12
+ @sudo cbsd jexec jname=${SERVICE} user=devel cmd=/usr/src/bin/publish.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+
4
+ set -e
5
+
6
+ export BIN_DIR=` dirname $0 `
7
+ export PROJECT_ROOT=" ${BIN_DIR} /.."
8
+ . ${BIN_DIR} /common.sh
9
+ setup
10
+
11
+
12
+ if [ " ${OFFLINE} " != " yes" ]; then
13
+ pip install -U -r requirements_dev.txt
14
+ fi
15
+
16
+ cd ${PROJECT_ROOT}
17
+ rm -rf freenit.egg-info build dist
18
+ python setup.py sdist bdist_wheel
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ setup() {
20
20
if [ " ${update} " != " no" ]; then
21
21
pip install -U pip
22
22
pip install -U wheel
23
- pip install -e ${PROJECT_ROOT}
23
+ pip install -e .
24
24
fi
25
25
if [ -e " ${BIN_DIR} /../migrations/main/001_initial.py" ]; then
26
26
flask migration run
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+
4
+ set -e
5
+
6
+ export BIN_DIR=` dirname $0 `
7
+ export PROJECT_ROOT=" ${BIN_DIR} /.."
8
+ . ${BIN_DIR} /common.sh
9
+ setup no
10
+
11
+
12
+ twine upload dist/freenit-* --verbose
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ def schema_name_resolver(schema):
30
30
for field in schema .partial :
31
31
name += field .capitalize ()
32
32
name += 'Partial'
33
- if schema .only is not None :
33
+ if schema .only :
34
34
for field in schema .only :
35
35
name += field .capitalize ()
36
36
name += 'Only'
37
- if schema .exclude is not None :
37
+ if schema .exclude :
38
38
for field in schema .exclude :
39
39
name += field .capitalize ()
40
40
name += 'Exclude'
Original file line number Diff line number Diff line change 9
9
10
10
setup (
11
11
name = 'freenit' ,
12
- version = '0.0.12 ' ,
12
+ version = '0.0.14 ' ,
13
13
description = 'REST API framework based on Flask-Smorest' ,
14
14
long_description = README ,
15
15
long_description_content_type = 'text/markdown' ,
You can’t perform that action at this time.
0 commit comments