42 lines
1.2 KiB
Python
Raw Normal View History

2019-01-27 20:26:50 -08:00
import setuptools
from sphinx.setup_command import BuildDoc
2019-01-27 20:26:50 -08:00
# ========== Constants ==========
EXCLUDED_PACKAGES = ["test", "tests"]
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
2022-03-17 21:43:06 -07:00
SCRIPTS = ["bin/addpkg", "bin/delpkg", "bin/fqo", "bin/pug2"]
CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ==========
2019-01-27 20:26:50 -08:00
with open("README.rst", "r") as fh:
long_description = fh.read()
2019-03-30 13:18:53 -07:00
# ========== Package Setup ==========
2019-01-27 20:26:50 -08:00
setuptools.setup(
name="packaging_scripts",
2022-03-22 09:49:40 -07:00
version="1.5.3",
2019-01-27 20:26:50 -08:00
author="Eric Russel Torres",
author_email="erictorres4@protonmail.com",
description="A set of helpers for automating borg interaction",
long_description=long_description,
long_description_content_type="text/plain",
url="",
packages=PACKAGES,
scripts=SCRIPTS,
2019-01-27 20:26:50 -08:00
classifiers=[
"Programming Language :: Python :: 3",
2019-03-10 20:30:04 -07:00
"License :: OSI Approved :: MIT License",
2019-01-27 20:26:50 -08:00
"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"),
}
},
2019-01-27 20:26:50 -08:00
)