2022-12-17 14:10:17 -05:00
|
|
|
import re
|
2018-05-30 09:41:55 -04:00
|
|
|
from os import path
|
|
|
|
|
2022-12-17 14:10:17 -05:00
|
|
|
from setuptools import find_packages, setup
|
2018-05-30 09:41:55 -04:00
|
|
|
|
|
|
|
here = path.dirname(__file__)
|
|
|
|
|
|
|
|
|
2022-01-30 18:48:30 -05:00
|
|
|
with open(path.join(here, "README.md"), encoding="utf-8") as f:
|
2018-05-30 09:41:55 -04:00
|
|
|
long_description = f.read()
|
|
|
|
|
|
|
|
|
|
|
|
def read(*names, **kwargs):
|
2022-01-30 18:48:30 -05:00
|
|
|
with open(path.join(here, *names), encoding=kwargs.get("encoding", "utf8")) as fp:
|
2018-05-30 09:41:55 -04:00
|
|
|
return fp.read()
|
|
|
|
|
|
|
|
|
|
|
|
def find_version(*file_paths):
|
|
|
|
version_file = read(*file_paths)
|
2022-01-30 18:48:30 -05:00
|
|
|
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
|
2018-05-30 09:41:55 -04:00
|
|
|
if version_match:
|
|
|
|
return version_match.group(1)
|
|
|
|
raise RuntimeError("Unable to find version string.")
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
2022-01-30 18:48:30 -05:00
|
|
|
name="dotbot",
|
|
|
|
version=find_version("dotbot", "__init__.py"),
|
|
|
|
description="A tool that bootstraps your dotfiles",
|
2018-05-30 09:41:55 -04:00
|
|
|
long_description=long_description,
|
2022-01-30 18:48:30 -05:00
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://github.com/anishathalye/dotbot",
|
|
|
|
author="Anish Athalye",
|
|
|
|
author_email="me@anishathalye.com",
|
|
|
|
license="MIT",
|
2018-05-30 09:41:55 -04:00
|
|
|
classifiers=[
|
2022-01-30 18:48:30 -05:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"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",
|
2023-09-09 20:53:07 -04:00
|
|
|
"Programming Language :: Python :: 3.11",
|
2022-01-30 18:48:30 -05:00
|
|
|
"Topic :: Utilities",
|
2018-05-30 09:41:55 -04:00
|
|
|
],
|
2022-01-30 18:48:30 -05:00
|
|
|
keywords="dotfiles",
|
2018-06-01 23:08:12 -04:00
|
|
|
packages=find_packages(),
|
2018-06-01 07:57:23 -04:00
|
|
|
setup_requires=[
|
2022-01-30 18:48:30 -05:00
|
|
|
"setuptools>=38.6.0",
|
|
|
|
"wheel>=0.31.0",
|
2018-06-01 07:57:23 -04:00
|
|
|
],
|
2018-05-30 09:41:55 -04:00
|
|
|
install_requires=[
|
2023-09-09 20:43:55 -04:00
|
|
|
"PyYAML>=6.0.1,<7",
|
2018-05-30 09:41:55 -04:00
|
|
|
],
|
2022-04-14 09:17:18 -04:00
|
|
|
extras_require={
|
|
|
|
"dev": {
|
|
|
|
"pytest",
|
|
|
|
"tox",
|
|
|
|
}
|
|
|
|
},
|
2018-05-30 09:41:55 -04:00
|
|
|
# To provide executable scripts, use entry points in preference to the
|
|
|
|
# "scripts" keyword. Entry points provide cross-platform support and allow
|
|
|
|
# pip to create the appropriate form of executable for the target platform.
|
|
|
|
entry_points={
|
2022-01-30 18:48:30 -05:00
|
|
|
"console_scripts": [
|
|
|
|
"dotbot=dotbot:main",
|
2018-05-30 09:41:55 -04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
)
|