Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
4873846d
Commit
4873846d
authored
5 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[mod]
#66
: Update the Makefile with Poetry usage
parent
fae16fd2
No related branches found
No related tags found
No related merge requests found
Pipeline
#6921
passed
5 years ago
Stage: format
Stage: test
Stage: build
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+11
-10
11 additions, 10 deletions
Makefile
with
11 additions
and
10 deletions
Makefile
+
11
−
10
View file @
4873846d
...
...
@@ -3,26 +3,26 @@
# generate documentation
docs
:
cd
docs
&&
rm
duniterpy.
*
;
sphinx-apidoc
-o
.
../duniterpy
&&
make clean
&&
make html
&&
cd
..
cd
docs
&&
rm
duniterpy.
*
;
poetry run
sphinx-apidoc
-o
.
../duniterpy
&&
make clean
&&
make html
&&
cd
..
# run tests
tests
:
python3
-m
unittest
${
TESTS_FILTER
}
poetry run
python3
-m
unittest
${
TESTS_FILTER
}
# check
check
:
mypy pylint check-format
# check static typing
mypy
:
python3
-m
mypy duniterpy
--ignore-missing-imports
python3
-m
mypy tests
--ignore-missing-imports
python3
-m
mypy examples
--ignore-missing-imports
poetry run
mypy duniterpy
--ignore-missing-imports
poetry run
mypy tests
--ignore-missing-imports
poetry run
mypy examples
--ignore-missing-imports
# check code errors
pylint
:
pylint
--disable
=
C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613
--enable
=
C0121,C0202,C0321
--jobs
=
0 duniterpy/
pylint
--disable
=
C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613
--enable
=
C0121,C0202,C0321
--jobs
=
0 tests/
pylint
--disable
=
C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613
--enable
=
C0121,C0202,C0321
--jobs
=
0 examples/
poetry run
pylint
--disable
=
C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613
--enable
=
C0121,C0202,C0321
--jobs
=
0 duniterpy/
poetry run
pylint
--disable
=
C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613
--enable
=
C0121,C0202,C0321
--jobs
=
0 tests/
poetry run
pylint
--disable
=
C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613
--enable
=
C0121,C0202,C0321
--jobs
=
0 examples/
# check format
check-format
:
...
...
@@ -44,8 +44,9 @@ build:
# upload on PyPi repository
deploy
:
twine upload dist/
*
--username
${
PYPI_LOGIN
}
--password
${
PYPI_PASSWORD
}
poetry publish
--build
--username
${
PYPI_LOGIN
}
--password
${
PYPI_PASSWORD
}
--repository
pypi_test
# upload on PyPi test repository
deploy_test
:
twine upload dist/
*
--username
${
PYPI_TEST_LOGIN
}
--password
${
PYPI_TEST_PASSWORD
}
--repository-url
https://test.pypi.org/legacy/
poetry config repositories.pypi_test https://test.pypi.org/legacy/
poetry publish
--build
--username
${
PYPI_TEST_LOGIN
}
--password
${
PYPI_TEST_PASSWORD
}
--repository
pypi_test
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment