diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c163701 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,57 @@ +--- +version: 2.1 + +executors: + debian: + docker: + - image: debian:bookworm + ruby: + docker: + - image: circleci/ruby:latest + +jobs: + build: + executor: debian + + steps: + - run: apt-get update + - run: apt-get -y install build-essential git openssh-client dpkg-dev debhelper dh-python pybuild-plugin-pyproject python3-all python3-setuptools + - run: git clone https://github.com/FOSDEM/video-python-osc.git . + - run: ./generate_release.sh + - run: make -f debian/rules binary + - run: mkdir -p /root/build + - run: mv ../*.deb /root/build + - persist_to_workspace: + root: /root/build + paths: + - . + - store_artifacts: + path: /root/build + + package: + executor: ruby + + steps: + - attach_workspace: + at: . + - run: gem install package_cloud + - run: find . + - run: package_cloud push fosdem/video-team/debian/bookworm *deb + - run: package_cloud push fosdem/video-team/debian/trixie *deb + +workflows: + version: 2 + python-osc: + jobs: + - build: + filters: + tags: + only: /.*/ + - package: + requires: + - build + filters: + tags: + only: /^v.*/ + branches: + ignore: /.*/ diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..6d10dce --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1 @@ +changelog diff --git a/debian/changelog.template b/debian/changelog.template new file mode 100644 index 0000000..bffb9e1 --- /dev/null +++ b/debian/changelog.template @@ -0,0 +1,5 @@ +python-osc ($RELEASE) stable; urgency=medium + + * Released + + -- FOSDEM Team $DATE diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a8756fc --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: python-osc +Section: python +Priority: optional +Build-Depends: + debhelper (>= 11~), + dh-python, + pybuild-plugin-pyproject, + debhelper-compat (= 12), + python3-all, + python3-setuptools, +Testsuite: autopkgtest-pkg-pybuild +Maintainer: Albert Stefanov +Standards-Version: 4.6.2 + +Package: python3-osc +X-Python3-Version: >= 3.10 +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: Open Sound Control server and client implementations in **pure python**. + Features: + * UDP blocking/threading/forking/asyncio server implementations + * UDP client + * int, int64, float, string, double, MIDI, timestamps, blob, nil OSC arguments + * simple OSC address<->callback matching system + * extensive unit test coverage + * basic client and server examples diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..550b3e9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-osc +Source: https://github.com/attwad/python-osc + +Files: * +Copyright: 2013-2024 attwad +License: unlicense + +Files: debian/* +Copyright: 2024- FOSDEM Team +License: MIT + +Files: pythonosc/slip.py +Copyright: Copyright (c) 2015 Ruud de Jong +License: MIT + + +License: unlicense + This is free and unencumbered software released into the public domain. + Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. + In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + For more information, please refer to + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..f1ce511 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1 @@ +python3-osc: initial-upload-closes-no-bugs diff --git a/debian/python3-python-osc.docs b/debian/python3-python-osc.docs new file mode 100644 index 0000000..a1320b1 --- /dev/null +++ b/debian/python3-python-osc.docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cdc4478 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=osc + +%: + ./generate_release.sh + dh $@ --buildsystem=pybuild --with=python3 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..fb8b37b --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore="^[^/]+.(egg-info|dist-info)/" diff --git a/generate_release.sh b/generate_release.sh new file mode 100755 index 0000000..8681d91 --- /dev/null +++ b/generate_release.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +if [[ $CIRCLE_TAG =~ ^v[0-9].* ]]; then + RVERSION="${CIRCLE_TAG:1}" +else + RVERSION="0.0.${CIRCLE_BUILD_NUM:=1}" +fi + +#RVERSION="$(${CIRCLE_TAG:=0.0.${CIRCLE_BUILD_NUM:-1}} | sed 's/[^0-9\.]*//g')" +RDATE="$(date -R)" + +sed -e 's/$RELEASE/'"$RVERSION"'/' -e 's/$DATE/'"$RDATE"'/' debian/changelog.template > debian/changelog diff --git a/pyproject.toml b/pyproject.toml index 8768236..0c648a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,10 @@ classifiers = [ [project.urls] Repository = "https://github.com/attwad/python-osc" +[tool.setuptools.packages.find] +include = ['pythonosc', 'pythonosc.*'] # package names should match these glob patterns (["*"] by default) +exclude = ['pythonosc.test'] # exclude packages matching these glob patterns (empty by default) + [tool.mypy] # Would be great to turn this on, however there's too many cases it would break # right now.