file-scripts/python/setup.py

41 lines
1.2 KiB
Python
Raw Normal View History

2020-10-23 11:21:59 -07:00
import setuptools
from sphinx.setup_command import BuildDoc
# ========== Constants ==========
EXCLUDED_PACKAGES = ["test", "tests"]
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
DEPENDENCIES = ["termcolor"]
SCRIPTS = ["bin/fedit", "bin/cptemplate", "bin/quickdel"]
CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ==========
2021-12-21 00:29:20 -08:00
with open("README", "r") as fh:
2020-10-23 11:21:59 -07:00
long_description = fh.read()
# ========== Package Setup ==========
setuptools.setup(
name="file_scripts",
version="2.0.0",
2020-10-23 11:21:59 -07:00
author="Eric Torres",
2024-02-26 23:05:15 -08:00
author_email="eric.torres@its-et.me",
2020-10-23 11:21:59 -07:00
description="File-related helper scripts",
long_description=long_description,
long_description_content_type="text/markdown",
2021-12-20 22:44:22 -08:00
url="https://github.com/etorres4/file-scripts",
2020-10-23 11:21:59 -07:00
packages=PACKAGES,
scripts=SCRIPTS,
classifiers=[
"Programming Language :: Python :: 3",
2021-12-20 22:44:22 -08:00
"License :: OSI Approved :: GNU GPLv3 License",
2020-10-23 11:21:59 -07: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"),
}
},
)