Browse Source

Build debian package

Johann Schmitz 5 months ago
parent
commit
ea3c95ad86
7 changed files with 39 additions and 4 deletions
  1. 7
    1
      Makefile
  2. 5
    0
      debian/changelog
  3. 1
    0
      debian/compat
  4. 11
    0
      debian/control
  5. 7
    0
      debian/copyright
  6. 6
    0
      debian/rules
  7. 2
    3
      setup.py

+ 7
- 1
Makefile View File

@@ -29,8 +29,14 @@ coverage:
29 29
 
30 30
 clean:
31 31
 	find -name "*.py?" -delete
32
+	rm -rf smartcheck/__pycache__
32 33
 	rm -f coverage.xml testresults.xml
33
-	rm -fr htmlcov dist build smart_check.egg-info
34
+	rm -fr htmlcov dist build smart_check.egg-info deb_dist smart-check-*.tar.gz \
35
+	    .pybuild debian/.debhelper debian/smart-check \
36
+	    debian/smart-check.*
37
+
38
+deb:
39
+	debuild
34 40
 
35 41
 travis: compile compile_optimized test_default_python coverage
36 42
 

+ 5
- 0
debian/changelog View File

@@ -0,0 +1,5 @@
1
+smart-check (0.4.2) UNRELEASED; urgency=medium
2
+
3
+  * Initial release.
4
+
5
+ -- Johann Schmitz <johann@j-schmitz.net>  Tue, 26 Jun 2018 05:59:19 +0200

+ 1
- 0
debian/compat View File

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

+ 11
- 0
debian/control View File

@@ -0,0 +1,11 @@
1
+Source: smart-check
2
+Maintainer: Johann Schmitz <johann@j-schmitz.net>
3
+Build-Depends: debhelper (>= 11~), dh-python, python3-all, python3-setuptools
4
+Standards-Version: 3.9.2
5
+X-Python3-Version: >= 3.4
6
+
7
+Package: smart-check
8
+Architecture: all
9
+Depends: python3-yaml, smartmontools, ${python3:Depends}, ${misc:Depends}
10
+Description: A smart S.M.A.R.T. check
11
+ Long description for smart-check

+ 7
- 0
debian/copyright View File

@@ -0,0 +1,7 @@
1
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
+Upstream-Name: smart-check
3
+Upstream-Contact: Johann Schmitz <johann@j-schmitz.net>
4
+
5
+Files: *
6
+Copyright: 2015, Johann Schmitz <johann@j-schmitz.net>
7
+License: GPL-3

+ 6
- 0
debian/rules View File

@@ -0,0 +1,6 @@
1
+#!/usr/bin/make -f
2
+#export DH_VERBOSE=1
3
+export PYBUILD_NAME=smart-check
4
+
5
+%:
6
+	dh $@ --with python3 --buildsystem=pybuild

+ 2
- 3
setup.py View File

@@ -13,9 +13,8 @@ setup(
13 13
     author_email='johann@j-schmitz.net',
14 14
     url='https://ercpe.de/projects/smart-check',
15 15
     download_url='https://code.not-your-server.de/smart-check.git/tags/',
16
-    packages=find_packages('.'),
17
-    include_package_data=True,
18
-    package_data={'': ['*.yaml']},
16
+    packages=['smartcheck'],
17
+    package_data={'smartcheck': ['*.yaml']},
19 18
     zip_safe=False,
20 19
     license='GPL-3',
21 20
     entry_points={