-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
72 lines (68 loc) · 2.57 KB
/
Copy pathsetup.py
File metadata and controls
72 lines (68 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"""
Setup script for preserve package.
"""
import os
from setuptools import setup, find_packages
# Get the long description from the README file
with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8") as f:
long_description = f.read()
# Read version from version.py
version_file = os.path.join(os.path.dirname(__file__), "preserve", "version.py")
with open(version_file) as f:
exec(f.read())
setup(
name="dazzle-preserve",
version=get_pip_version() if "get_pip_version" in locals() else "0.4.0",
description="A tool for preserving files with path normalization and verification",
long_description=long_description,
long_description_content_type="text/markdown",
author="Dustin Darcy",
author_email="6962246+djdarcy@users.noreply.github.com",
url="https://github.com/djdarcy/preserve",
packages=find_packages(),
install_requires=[
# Base requirements
"pathlib",
"colorama>=0.4.0", # For colored terminal output
# L3 preservation library (manifest + operations). Brings dazzle-filekit
# (L1) transitively; preserve imports dazzle_preservelib, not preservelib.
"dazzle-preservelib>=0.8.0",
],
extras_require={
# The .dazzlelink bridge now flows through dazzle_preservelib's optional
# extra (the L2 record library), not the standalone dazzlelink tool.
"dazzlelink": ["dazzle-preservelib[dazzlelink]>=0.8.0"],
"windows": ["pywin32"],
"dev": [
"pytest",
"pytest-cov",
"black",
"flake8",
],
"all": ["dazzlelink>=0.5.0", "pywin32;platform_system=='Windows'"],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: System :: Archiving :: Backup",
"Topic :: Utilities",
],
python_requires=">=3.6",
entry_points={
"console_scripts": [
"preserve=preserve.preserve:main",
],
},
)