Browse Source

Adds packaging stuffs

- setup.py & pyproject.toml
- debian/ folder
Yann Weber 11 months ago
parent
commit
b205f5ea0f
8 changed files with 47 additions and 9 deletions
  1. 0
    9
      Makefile
  2. 5
    0
      debian/changelog
  3. 13
    0
      debian/control
  4. 1
    0
      debian/pybuild.testfiles
  5. 6
    0
      debian/rules
  6. 1
    0
      debian/source/format
  7. 6
    0
      pyproject.toml
  8. 15
    0
      setup.py

+ 0
- 9
Makefile View File

@@ -1,9 +0,0 @@
1
-all: unittest lint mypy
2
-
3
-unittest:
4
-	python3 -m unittest -v
5
-
6
-lint:
7
-	pylint git_oh.py test.py
8
-
9
-.PHONY: lint mypy

+ 5
- 0
debian/changelog View File

@@ -0,0 +1,5 @@
1
+git-oh (0.0-1) UNRELEASED; urgency=medium
2
+
3
+  * Initial release.
4
+
5
+ -- Yann Weber <git_oh@yannweb.net>  Sun, 26 Nov 2023 18:25:54 +0100

+ 13
- 0
debian/control View File

@@ -0,0 +1,13 @@
1
+Source: git-oh
2
+Build-Depends:	debhelper-compat (=10),
3
+		dh-python,
4
+		python3-all,
5
+		python3-setuptools,
6
+		pybuild-plugin-pyproject
7
+Maintainer: Yann Weber <git_oh@yannweb.net>
8
+
9
+Package: git-oh
10
+Architecture: all
11
+Description: Produce statistics on commit done out of office hours
12
+Depends: ${python3:Depends}, ${misc:Depends}
13
+Maintainer: Yann Weber <git_oh@yannweb.net>

+ 1
- 0
debian/pybuild.testfiles View File

@@ -0,0 +1 @@
1
+test.py

+ 6
- 0
debian/rules View File

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

+ 1
- 0
debian/source/format View File

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

+ 6
- 0
pyproject.toml View File

@@ -0,0 +1,6 @@
1
+[build-system]
2
+build-backend = 'setuptools.build_meta'
3
+requires = ['setuptools > 50']
4
+
5
+[tool.pytest.ini_options]
6
+testpaths=['test.py']

+ 15
- 0
setup.py View File

@@ -0,0 +1,15 @@
1
+from setuptools import setup
2
+
3
+setup(
4
+        name="git_oh",
5
+        version="0.0.1",
6
+        author="Yann Weber",
7
+        author_email="git_oh@yannweb.net",
8
+        py_modules=["git_oh"],
9
+        install_requires=["GitPython"],
10
+        entry_points={
11
+            "console_scripts": [
12
+                "git_oh=git_oh:main",
13
+            ]
14
+        },
15
+)

Loading…
Cancel
Save