FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
testcontainers-python/Makefile at remove/oracle-module · testcontainers/testcontainers-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
testcontainers
/
testcontainers-python
Public
Notifications
You must be signed in to change notification settings
Fork
380
Star
2.3k
Code
Issues
136
Pull requests
39
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
testcontainers-python
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
73 lines (60 loc) · 2.18 KB
Breadcrumbs
testcontainers-python
/
Makefile
Copy path
File metadata and controls
73 lines (60 loc) · 2.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
PYTHON_VERSIONS
= 3.9 3.10 3.11
PYTHON_VERSION
?= 3.10
IMAGE
= testcontainers-python:${PYTHON_VERSION}
RUN
= docker run --rm -it
#
Get all directories that contain a setup.py and get the directory name.
PACKAGES
= core
$(
addprefix
modules/,
$(
notdir
$(
wildcard
modules/
*
)
)
)
#
All */dist folders for each of the packages.
DISTRIBUTIONS
=
$(
addsuffix
/dist,${PACKAGES})
UPLOAD
=
$(
addsuffix
/upload,${PACKAGES})
#
All */tests folders for each of the test suites.
TESTS
=
$(
addsuffix
/tests,
$(
filter-out
meta,${PACKAGES})
)
TESTS_DIND
=
$(
addsuffix
-dind,${TESTS})
DOCTESTS
=
$(
addsuffix
/doctests,
$(
filter-out
modules/README.md,${PACKAGES})
)
#
All linting targets.
LINT
=
$(
addsuffix
/lint,${PACKAGES})
#
Targets to build a distribution for each package.
dist
: ${DISTRIBUTIONS}
${DISTRIBUTIONS}
:
%
/dist :
%
/setup.py
cd
$*
\
&&
python setup.py bdist_wheel
\
&&
twine check dist/
*
#
Targets to run the test suite for each package.
tests
: ${TESTS}
${TESTS}
:
%
/tests :
poetry run pytest -v --cov=testcontainers.
$*
$*
/tests
#
Target to lint the code.
lint
:
pre-commit run -a
#
Targets to publish packages.
upload
: ${UPLOAD}
${UPLOAD}
:
%
/upload :
if
[
${TWINE_REPOSITORY}
-
$*
=
testpypi-meta ]
;
then
\
echo
"
Cannot upload meta package to testpypi because of missing permissions.
"
;
\
else
\
twine upload --non-interactive --skip-existing
$*
/dist/
*
;
\
fi
#
Targets to build docker images
image
:
poetry
export
-f requirements.txt -o build/requirements.txt
docker build --build-arg version=
${PYTHON_VERSION}
-t
${IMAGE}
.
#
Targets to run tests in docker containers
tests-dind
: ${TESTS_DIND}
${TESTS_DIND}
:
%
/tests-dind : image
${RUN}
-v /var/run/docker.sock:/var/run/docker.sock
${IMAGE}
\
bash -c
"
make
$*
/lint
$*
/tests
"
#
Target to build the documentation
docs
:
poetry run sphinx-build -nW
.
docs/_build
doctests
: ${DOCTESTS}
poetry run sphinx-build -b doctest
.
docs/_build
${DOCTESTS}
:
%
/doctests :
poetry run sphinx-build -b doctest -c doctests
$*
docs/_build
#
Remove any generated files.
clean
:
rm -rf docs/_build
rm -rf
*
/build
rm -rf
*
/dist
rm -rf
*
/
*
.egg-info
#
Targets that do not generate file-level artifacts.
.PHONY
: clean dists ${DISTRIBUTIONS} docs doctests image tests ${TESTS}
Back
|
FazBrowse Home
|
New Git URL