Compare commits
14 Commits
0.9
...
fe29441d1d
Author | SHA1 | Date | |
---|---|---|---|
|
fe29441d1d | ||
|
d0043f3f18 | ||
|
583997d64c | ||
|
04daf49b0a | ||
|
b19f5d9049 | ||
|
2052bfd2cc | ||
|
418d3e6041 | ||
|
08cd160713 | ||
|
da80bd93d9 | ||
|
61997df1f3 | ||
|
047bb783b7 | ||
|
281bbfdac4 | ||
|
bcd761653f | ||
|
f521992f58 |
35
.drone.yml
35
.drone.yml
@@ -11,9 +11,10 @@ platform:
|
||||
steps:
|
||||
- name: Run unit test
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
PYTHONPATH: ..
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- cd src
|
||||
- python3 -m unittest -v lmwsip.tests
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -30,7 +31,8 @@ steps:
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- cd src
|
||||
- python3 -m unittest -v lmwsip.tests
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -47,7 +49,8 @@ steps:
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- cd src
|
||||
- python3 -m unittest -v lmwsip.tests
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -64,7 +67,7 @@ steps:
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
commands:
|
||||
- python3 setup.py test
|
||||
- tox
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -78,7 +81,8 @@ steps:
|
||||
PYTHONPATH: .
|
||||
commands:
|
||||
- pip install python-dateutil
|
||||
- python setup.py test
|
||||
- cd src
|
||||
- python -m unittest -v lmwsip.tests
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -93,7 +97,8 @@ steps:
|
||||
commands:
|
||||
- pip install python-dateutil
|
||||
- python --version
|
||||
- python setup.py test
|
||||
- cd src
|
||||
- python -m unittest -v lmwsip.tests
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -108,8 +113,10 @@ platform:
|
||||
steps:
|
||||
- name: Build package files
|
||||
commands:
|
||||
- python3 setup.py sdist bdist_wheel
|
||||
|
||||
- python3 -m build
|
||||
- name: Run final test after build
|
||||
commands:
|
||||
- tox
|
||||
- name: Versie toevoegen aan download
|
||||
environment:
|
||||
DOWNLOADDIR: /usr/share/nginx/html/download/python/lmwsip
|
||||
@@ -128,6 +135,14 @@ steps:
|
||||
fi
|
||||
done
|
||||
- ls -l "$${DOWNLOADDIR}"
|
||||
- name: Versie upload naar pypi test
|
||||
environment:
|
||||
TWINE_USERNAME:
|
||||
from_secret: twine_username
|
||||
TWINE_PASSWORD:
|
||||
from_secret: twine_password
|
||||
commands:
|
||||
- python3 -m twine upload --repository testpypi dist/*
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
@@ -150,7 +165,7 @@ steps:
|
||||
image: python:3.6
|
||||
# Make sure we run the pip installed version
|
||||
commands:
|
||||
- rm -rf lmwsip
|
||||
- rm -rf src
|
||||
- pip install --extra-index-url https://marceln.org/download/python lmwsip
|
||||
- python -c "import lmwsip"
|
||||
- python -c "import lmwsip; print(lmwsip.__version__)"
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ lmwsip_marceln.egg-info
|
||||
test/__pycache__
|
||||
lmwsip.egg-info
|
||||
*.swp
|
||||
.tox
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
set -e
|
||||
|
||||
VERSION=$(grep version setup.py | sed -e 's/.*="//' -e 's/",//')
|
||||
sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" lmwsip/__init__.py
|
||||
git add lmwsip/__init__.py
|
||||
VERSION=$(grep version setup.cfg | sed 's/.*= *//')
|
||||
sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" src/lmwsip/__init__.py
|
||||
git add src/lmwsip/__init__.py
|
||||
|
||||
python setup.py test
|
||||
tox
|
||||
yamllint .drone.yml
|
||||
|
6
pyproject.toml
Normal file
6
pyproject.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[build-system]
|
||||
requires = [
|
||||
"setuptools>=42",
|
||||
"wheel"
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
24
setup.cfg
Normal file
24
setup.cfg
Normal file
@@ -0,0 +1,24 @@
|
||||
[metadata]
|
||||
name = lmwsip
|
||||
version = 0.9.3
|
||||
author = Marcel Nijenhof
|
||||
author_email = pypi@marceln.org
|
||||
description = Interface for the lmw sip protocol
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
url = https://marceln.org/git/Werk/lmwsip
|
||||
classifiers =
|
||||
Programming Language :: Python :: 3
|
||||
License :: OSI Approved :: MIT License
|
||||
Operating System :: OS Independent
|
||||
|
||||
[options]
|
||||
package_dir =
|
||||
= src
|
||||
install_requires =
|
||||
python-dateutil
|
||||
packages = find:
|
||||
python_requires = >= 3.6
|
||||
|
||||
[options.packages.find]
|
||||
where = src
|
28
setup.py
28
setup.py
@@ -1,26 +1,4 @@
|
||||
import setuptools
|
||||
from setuptools import setup
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
name="lmwsip", # Replace with your own username
|
||||
version="0.9.0",
|
||||
author="Marcel Nijenhof",
|
||||
author_email="pip@marceln.org",
|
||||
description="Interface for the lmw sip protocol",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://marceln.org/git/Werk/lmwsip",
|
||||
packages=setuptools.find_packages(),
|
||||
install_requires=[
|
||||
'python-dateutil'
|
||||
],
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
"Topic :: Lmw sip interface"
|
||||
],
|
||||
python_requires='>=3.6',
|
||||
)
|
||||
if __name__ == "__main__":
|
||||
setup()
|
||||
|
@@ -12,7 +12,7 @@ from datetime import datetime, timedelta
|
||||
from dateutil import tz
|
||||
|
||||
""" Version info changed by git hook """
|
||||
__version__ = '0.9.0'
|
||||
__version__ = '0.9.2'
|
||||
|
||||
class LmwSip:
|
||||
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
Reference in New Issue
Block a user