pex build
This commit is contained in:
parent
cfa56db32b
commit
330aff02d5
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,3 +3,6 @@
|
|||||||
.python-version
|
.python-version
|
||||||
doc/_build
|
doc/_build
|
||||||
doc/man/.doctrees
|
doc/man/.doctrees
|
||||||
|
*.egg-info/
|
||||||
|
dist/
|
||||||
|
.tox/
|
@ -1,17 +1,38 @@
|
|||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- pipenv install --sequential -d
|
- pipenv install --sequential -d
|
||||||
# --sequential hält die last auf raspberry pi unten
|
# --sequential hält die last auf raspberry pi unten
|
||||||
|
|
||||||
style:
|
style:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- pipenv run flake8
|
- pipenv run flake8
|
||||||
|
|
||||||
complexity:
|
complexity:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- pipenv run radon cc .
|
- pipenv run radon cc .
|
||||||
- pipenv run xenon -bB -mA -aA .
|
- pipenv run xenon -bB -mA -aA .
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
stage: deploy
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cd doc
|
- cd doc
|
||||||
- pipenv run make html
|
- pipenv run make html
|
||||||
|
- pipenv run make man
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- doc/man/*
|
||||||
|
|
||||||
|
|
||||||
|
pex:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- pipenv run pex . -r <(pipenv lock -r) -e carom.cli:cli -o carom-client
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- dist/*
|
1
Pipfile
1
Pipfile
@ -24,6 +24,7 @@ pytest = "*"
|
|||||||
sphinx = "*"
|
sphinx = "*"
|
||||||
sphinx-rtd-theme = "*"
|
sphinx-rtd-theme = "*"
|
||||||
sphinx-click = "*"
|
sphinx-click = "*"
|
||||||
|
pex = "*"
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.5"
|
python_version = "3.5"
|
||||||
|
17
Pipfile.lock
generated
17
Pipfile.lock
generated
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"hash": {
|
"hash": {
|
||||||
"sha256": "75ffb26ae722771c07a3d001c976e6fd7092b4ab928d2c30b80ae3e4573eecd6"
|
"sha256": "bd0fbeefa6073d17fbdcf3879ed282ebcb875445ae4ea4ef2eef2c261c13094c"
|
||||||
},
|
},
|
||||||
"pipfile-spec": 6,
|
"pipfile-spec": 6,
|
||||||
"requires": {
|
"requires": {
|
||||||
@ -267,6 +267,14 @@
|
|||||||
"index": "pypi",
|
"index": "pypi",
|
||||||
"version": "==0.7.0"
|
"version": "==0.7.0"
|
||||||
},
|
},
|
||||||
|
"pex": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:6143465a09ca84dc0000ffc74c6eaf8f3210e590150e115832974994479b662b",
|
||||||
|
"sha256:6e72c7fb480469713f8df827f8bfcbe5fac74606b7bea930f1be490d9822b54f"
|
||||||
|
],
|
||||||
|
"index": "pypi",
|
||||||
|
"version": "==1.5.2"
|
||||||
|
},
|
||||||
"pipenv": {
|
"pipenv": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
"sha256:a785235bf2ddf65ea8a91531b3372471d9ad86036335dba8bd63f20c00a68e63",
|
"sha256:a785235bf2ddf65ea8a91531b3372471d9ad86036335dba8bd63f20c00a68e63",
|
||||||
@ -452,6 +460,13 @@
|
|||||||
],
|
],
|
||||||
"version": "==0.4.0"
|
"version": "==0.4.0"
|
||||||
},
|
},
|
||||||
|
"wheel": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:0a2e54558a0628f2145d2fc822137e322412115173e8a2ddbe1c9024338ae83c",
|
||||||
|
"sha256:80044e51ec5bbf6c894ba0bc48d26a8c20a9ba629f4ca19ea26ecfcf87685f5f"
|
||||||
|
],
|
||||||
|
"version": "==0.31.1"
|
||||||
|
},
|
||||||
"xenon": {
|
"xenon": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
"sha256:03c6fa6820ca260a85931cec44bd60ae60194eec7eb22f53ba160b3c9578cdf1",
|
"sha256:03c6fa6820ca260a85931cec44bd60ae60194eec7eb22f53ba160b3c9578cdf1",
|
||||||
|
0
dist/.keep
vendored
Normal file
0
dist/.keep
vendored
Normal file
3
setup.py
3
setup.py
@ -12,4 +12,7 @@ setup(name='carom-client',
|
|||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': ['carom-client=carom.cli:cli'],
|
'console_scripts': ['carom-client=carom.cli:cli'],
|
||||||
},
|
},
|
||||||
|
data_files=[
|
||||||
|
('share/man/man1', ('doc/man/carom-client.1', )),
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user