Omgezet naar python module
This commit is contained in:
27
.drone.yml
Normal file
27
.drone.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: default
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
steps:
|
||||
- name: Run unit test
|
||||
environment:
|
||||
PYTHONPATH: .
|
||||
commands:
|
||||
- python setup.py test
|
||||
- name: Build package files
|
||||
commands:
|
||||
- python setup.py sdist
|
||||
- name: Versie toevoegen aan download
|
||||
environment:
|
||||
DOWNLOADDIR: /usr/share/nginx/html/download/python/dd-api-oper
|
||||
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
|
||||
- ls -l "$${DOWNLOADDIR}"
|
||||
when:
|
||||
branch:
|
||||
- master
|
10
.gitignore
vendored
10
.gitignore
vendored
@@ -1,6 +1,4 @@
|
||||
nijenhofm.crt
|
||||
nijenhofm.key
|
||||
test-ddapi-nijenhofm
|
||||
|
||||
__pycache__:
|
||||
ddapioper.cpython-37.pyc
|
||||
*.swp
|
||||
dd-oper-api/__pycache__
|
||||
dd_oper_api.egg-info
|
||||
dist
|
||||
|
26
setup.py
Normal file
26
setup.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import setuptools
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
name="dd-oper-api", # Replace with your own username
|
||||
version="0.0.1",
|
||||
author="Marcel Nijenhof",
|
||||
author_email="pip@pion.xs4all.nl",
|
||||
description="Interface for dd-oper 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 :: TODO",
|
||||
"Operating System :: OS Independent",
|
||||
"Topic :: dd-oper api"
|
||||
],
|
||||
python_requires='>=3.6',
|
||||
)
|
Reference in New Issue
Block a user