cleanup repository tree. use entry_points in setuptools instead of symlink

This commit is contained in:
Edwin Eefting
2021-02-07 13:00:04 +01:00
parent 0214584e4c
commit 4f9b7b6cef
21 changed files with 27 additions and 69 deletions

View File

@ -1,14 +1,13 @@
import setuptools
import bin.zfs_autobackup
import zfs_autobackup
import os
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="zfs_autobackup",
version=bin.zfs_autobackup.VERSION,
version=zfs_autobackup.VERSION,
author="Edwin Eefting",
author_email="edwin@datux.nl",
description="ZFS autobackup is used to periodicly backup ZFS filesystems to other locations. It tries to be the most friendly to use and easy to debug ZFS backup tool.",
@ -16,8 +15,14 @@ setuptools.setup(
long_description_content_type="text/markdown",
url="https://github.com/psy0rz/zfs_autobackup",
scripts=["bin/zfs-autobackup"],
entry_points={
'console_scripts':
[
'zfs-autobackup = zfs_autobackup:cli',
]
},
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",