浏览代码

Packaging (setuptools and Debian)

Rob Austein 5 年之前
父节点
当前提交
20889185ee
共有 8 个文件被更改,包括 89 次插入0 次删除
  1. 13 0
      LICENSE
  2. 5 0
      debian/changelog
  3. 1 0
      debian/compat
  4. 22 0
      debian/control
  5. 20 0
      debian/copyright
  6. 6 0
      debian/rules
  7. 1 0
      debian/source/format
  8. 21 0
      setup.py

+ 13 - 0
LICENSE

@@ -0,0 +1,13 @@
+Copyright 2017-2019 Grunchweather Associates
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.

+ 5 - 0
debian/changelog

@@ -0,0 +1,5 @@
+zc (1.0) unstable; urgency=low
+
+  * Add Debian packaging.
+
+ -- Rob Austein <sra@hactrn.net>  Sun, 11 Aug 2019 08:32:15 -0400

+ 1 - 0
debian/compat

@@ -0,0 +1 @@
+9

+ 22 - 0
debian/control

@@ -0,0 +1,22 @@
+Source: zc
+Maintainer: Rob Austein <sra@hactrn.net>
+Section: python
+Priority: optional
+Build-Depends: dh-python, python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9)
+Standards-Version: 3.9.6
+Homepage: https://git.hactrn.net/sra/zc
+
+Package: python-zc
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python-dnspython, python-git
+Description: A DNS zone compiler
+ This is a small tool for generating DNS zones from relatively
+ simple text files, with some automation to handle complex or
+ repetitive tasks and to automate generation of reverse zone data.
+ .
+ `zc` can be used either as a straightforward command line tool or as a
+ pair of `pre-receive` and `post-receive` hooks in a bare git
+ repository.  In the latter mode, `zc` pulls its input data and
+ configuration directly from commits pushed to the master branch in the
+ git repository.
+

+ 20 - 0
debian/copyright

@@ -0,0 +1,20 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: zc
+Source: https://git.hactrn.net/sra/zc
+
+Files: *
+Copyright: 2017-2019 Grunchweather Associates
+License: ISC
+
+License: ISC
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.

+ 6 - 0
debian/rules

@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=zc
+%:
+	dh $@ --with python2 --buildsystem=pybuild
+

+ 1 - 0
debian/source/format

@@ -0,0 +1 @@
+3.0 (native)

+ 21 - 0
setup.py

@@ -0,0 +1,21 @@
+from setuptools import setup, find_packages
+
+setup(
+    name                                = "zc",
+    version                             = "1.0",
+    packages                            = find_packages(),
+    scripts                             = ["zc", "git-remote-only"],
+    install_requires                    = ["dnspython", "GitPython"],
+
+    author                              = "Rob Austein",
+    author_email                        = "sra@hactrn.net",
+
+    url                                 = "https://git.hactrn.net/sra/zc",
+    description                         = "A DNS zone compiler",
+    #long_description                   = open("README.md").read(),
+    #long_description_content_type      = "text/markdown",
+
+    classifiers = [
+        "License :: OSI Approved :: ISC License"
+    ],
+)