mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-12 16:04:48 +08:00
Update package version source
This commit is contained in:
parent
59c8995b34
commit
0d0b270d57
4 changed files with 7 additions and 8 deletions
|
@ -18,7 +18,7 @@ from command_runner import command_runner
|
||||||
# Insert parent dir as path se we get to use npbackup as package
|
# Insert parent dir as path se we get to use npbackup as package
|
||||||
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(__file__), "..")))
|
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(__file__), "..")))
|
||||||
|
|
||||||
from npbackup import __version__ as npbackup_version
|
from npbackup.__main__ import __version__ as npbackup_version
|
||||||
from bin.NPBackupInstaller import __version__ as installer_version
|
from bin.NPBackupInstaller import __version__ as installer_version
|
||||||
from npbackup.customization import (
|
from npbackup.customization import (
|
||||||
COMPANY_NAME,
|
COMPANY_NAME,
|
||||||
|
|
|
@ -3,6 +3,4 @@
|
||||||
#
|
#
|
||||||
# This file is part of npbackup
|
# This file is part of npbackup
|
||||||
|
|
||||||
__intname__ = "npbackup"
|
# Placeholder so this directory becomes a package
|
||||||
__build__ = "2023012901"
|
|
||||||
__version__ = "2.1.0"
|
|
|
@ -23,7 +23,7 @@ from npbackup.restic_metrics import restic_output_2_metrics, upload_metrics
|
||||||
from npbackup.restic_wrapper import ResticRunner
|
from npbackup.restic_wrapper import ResticRunner
|
||||||
from npbackup.core.restic_source_binary import get_restic_internal_binary
|
from npbackup.core.restic_source_binary import get_restic_internal_binary
|
||||||
from npbackup.path_helper import CURRENT_DIR, BASEDIR
|
from npbackup.path_helper import CURRENT_DIR, BASEDIR
|
||||||
from npbackup import __intname__ as NAME, __version__ as VERSION
|
from npbackup.__main__ import __intname__ as NAME, __version__ as VERSION
|
||||||
|
|
||||||
|
|
||||||
logger = getLogger(__intname__)
|
logger = getLogger(__intname__)
|
||||||
|
|
7
setup.py
7
setup.py
|
@ -86,9 +86,10 @@ class BinaryDistribution(setuptools.Distribution):
|
||||||
|
|
||||||
|
|
||||||
package_path = os.path.abspath(PACKAGE_NAME)
|
package_path = os.path.abspath(PACKAGE_NAME)
|
||||||
package_file = os.path.join(package_path, "__main__.py")
|
for path in ['__main__.py', PACKAGE_NAME + '.py']:
|
||||||
if not os.path.isfile(package_file):
|
package_file = os.path.join(package_path, "__main__.py")
|
||||||
package_file = os.path.join(package_path, "npbackup.py")
|
if os.path.isfile(package_file):
|
||||||
|
break
|
||||||
metadata = get_metadata(package_file)
|
metadata = get_metadata(package_file)
|
||||||
requirements = parse_requirements(os.path.join(package_path, "requirements.txt"))
|
requirements = parse_requirements(os.path.join(package_path, "requirements.txt"))
|
||||||
long_description = _read_file("README.md")
|
long_description = _read_file("README.md")
|
||||||
|
|
Loading…
Add table
Reference in a new issue