2019-02-07 23:19:21 -08:00
|
|
|
import setuptools
|
2019-04-19 09:46:13 -07:00
|
|
|
from sphinx.setup_command import BuildDoc
|
2019-02-07 23:19:21 -08:00
|
|
|
|
2019-03-31 11:22:53 -07:00
|
|
|
# ========== Constants ==========
|
2019-04-23 17:25:23 -07:00
|
|
|
EXCLUDED_PACKAGES = ["test", "tests"]
|
|
|
|
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
|
2019-03-31 11:22:53 -07:00
|
|
|
SCRIPTS = ["bin/backup"]
|
2019-04-19 23:57:38 -07:00
|
|
|
CMDCLASS = {"build_sphinx": BuildDoc}
|
2019-03-31 11:22:53 -07:00
|
|
|
|
2019-04-23 17:25:23 -07:00
|
|
|
|
2019-03-31 11:22:53 -07:00
|
|
|
# ========== Functions ==========
|
2019-04-19 09:46:13 -07:00
|
|
|
with open("README.rst", "r") as fh:
|
2019-02-07 23:19:21 -08:00
|
|
|
long_description = fh.read()
|
|
|
|
|
2019-03-31 11:22:53 -07:00
|
|
|
# ========== Package Setup ==========
|
2019-02-07 23:19:21 -08:00
|
|
|
setuptools.setup(
|
|
|
|
name="rbackup",
|
2019-05-08 06:52:27 -07:00
|
|
|
version="0.7.2",
|
2019-04-19 09:46:13 -07:00
|
|
|
cmdclass=CMDCLASS,
|
2019-02-07 23:19:21 -08:00
|
|
|
author="Eric Torres",
|
|
|
|
author_email="erictorres4@protonmail.com",
|
|
|
|
description="An rsync-based tool for creating backups",
|
|
|
|
long_description=long_description,
|
2019-03-17 18:27:03 -07:00
|
|
|
long_description_content_type="text/plain",
|
2019-04-17 21:58:14 -07:00
|
|
|
url="https://github.com/etorres4/rbackup",
|
2019-03-31 11:21:00 -07:00
|
|
|
packages=PACKAGES,
|
2019-03-31 11:22:53 -07:00
|
|
|
scripts=SCRIPTS,
|
2019-02-07 23:19:21 -08:00
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
],
|
2019-04-19 23:57:38 -07:00
|
|
|
command_options={
|
|
|
|
"build_sphinx": {
|
2019-04-23 14:42:34 -07:00
|
|
|
"project": ("setup.py", "name"),
|
2019-04-19 23:57:38 -07:00
|
|
|
"version": ("setup.py", "version"),
|
|
|
|
"release": ("setup.py", "release"),
|
2019-04-23 14:42:34 -07:00
|
|
|
"source_dir": ("setup.py", "doc"),
|
2019-04-19 23:57:38 -07:00
|
|
|
}
|
|
|
|
},
|
2019-02-07 23:19:21 -08:00
|
|
|
)
|