-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (37 loc) · 1.19 KB
/
setup.py
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
import setuptools
from sphinx.setup_command import BuildDoc
# ========== Constants ==========
EXCLUDED_PACKAGES = ["test", "tests"]
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
SCRIPTS = ["bin/backup"]
CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ==========
with open("README.rst", "r") as fh:
long_description = fh.read()
# ========== Package Setup ==========
setuptools.setup(
name="rbackup",
version="0.7.2",
cmdclass=CMDCLASS,
author="Eric Torres",
author_email="erictorres4@protonmail.com",
description="An rsync-based tool for creating backups",
long_description=long_description,
long_description_content_type="text/plain",
url="https://github.com/etorres4/rbackup",
packages=PACKAGES,
scripts=SCRIPTS,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
command_options={
"build_sphinx": {
"project": ("setup.py", "name"),
"version": ("setup.py", "version"),
"release": ("setup.py", "release"),
"source_dir": ("setup.py", "doc"),
}
},
)