Compare commits

...

4 Commits

Author SHA1 Message Date
Marcel Nijenhof
2eea60eb92 precommithook: yamllint toegevoegd op drone.yml 2021-07-27 20:48:16 +02:00
Marcel Nijenhof
5ecc6eac1e Correctie dependecy 2021-07-27 20:47:29 +02:00
Marcel Nijenhof
e3ea71bb21 .drone: Yamllint correcties 2021-07-27 20:47:00 +02:00
Marcel Nijenhof
f4db4e28ac Openssl toegevoegd als dependecy 2021-07-27 19:52:45 +02:00
3 changed files with 40 additions and 17 deletions

View File

@@ -105,16 +105,26 @@ platform:
vatiant: Fedora
steps:
- name: Build package files
- name: Build package files
commands:
- python setup.py sdist
- name: Versie toevoegen aan download
- name: Versie toevoegen aan download
environment:
DOWNLOADDIR: /usr/share/nginx/html/download/python/ddoperapi
commands:
- mkdir -p "$${DOWNLOADDIR}"
- cd dist
- for f in *;do if [ -f "$${DOWNLOADDIR}/$${f}" ] ; then echo version error;exit 1;else cp "$${f}" "$${DOWNLOADDIR}";fi;done
- |
for f in *
do
if [ -f "$${DOWNLOADDIR}/$${f}" ]
then
echo version error
exit 1
else
cp "$${f}" "$${DOWNLOADDIR}"
fi
done
- ls -l "$${DOWNLOADDIR}"
when:
branch:
@@ -139,11 +149,22 @@ steps:
# Make sure we run the pip installed version
commands:
- rm -rf ddOperApi
# - pip install --extra-index-url https://marceln.org/download/python ddOperApi
#
# todo: Uitzoeken
#
# - >
# pip install --extra-index-url
# https://marceln.org/download/python ddOperApi
# - python -c "import lmwsip"
# - python -c "import lmwsip; print(lmwsip.__version__)"
# - >
# [ $(python -c "import lmwsip; print(lmwsip.__version__)") =
# $(python setup.py --version) ]
# - python -m unittest -v lmwsip.tests
when:
branch:
- master
depends_on:
- Build

View File

@@ -1,6 +1,7 @@
#!/bin/sh
#!/bin/sh -e
VERSION=$(grep version setup.py | sed -e 's/.*="//' -e 's/",//')
sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" ddOperApi/__init__.py
git add ddOperApi/__init__.py
python setup.py test
yamllint .drone.yml

View File

@@ -16,7 +16,8 @@ setuptools.setup(
install_requires=[
'python-dateutil',
'requests',
'numpy'
'numpy',
'pyopenssl'
],
classifiers=[
"Programming Language :: Python :: 3",