2 from codecs
import open # For a consistent encoding
5 from setuptools
import find_packages
, setup
7 here
= path
.dirname(__file__
)
10 with
open(path
.join(here
, "README.md"), encoding
="utf-8") as f
:
11 long_description
= f
.read()
14 def read(*names
, **kwargs
):
15 with
open(path
.join(here
, *names
), encoding
=kwargs
.get("encoding", "utf8")) as fp
:
19 def find_version(*file_paths
):
20 version_file
= read(*file_paths
)
21 version_match
= re
.search(r
"^__version__ = ['\"]([^
'\"]*)['\"]", version_file, re.M)
23 return version_match.group(1)
24 raise RuntimeError("Unable to find version string
.")
29 version=find_version("dotbot
", "__init__
.py
"),
30 description="A tool that bootstraps your dotfiles
",
31 long_description=long_description,
32 long_description_content_type="text
/markdown
",
33 url="https
://github
.com
/anishathalye
/dotbot
",
34 author="Anish Athalye
",
35 author_email="me
@anishathalye.com
",
38 "Development Status
:: 5 - Production
/Stable
",
39 "Intended Audience
:: Developers
",
40 "License
:: OSI Approved
:: MIT License
",
41 "Programming Language
:: Python
:: 2",
42 "Programming Language
:: Python
:: 2.7",
43 "Programming Language
:: Python
:: 3",
44 "Programming Language
:: Python
:: 3.5",
45 "Programming Language
:: Python
:: 3.6",
46 "Programming Language
:: Python
:: 3.7",
47 "Programming Language
:: Python
:: 3.8",
48 "Programming Language
:: Python
:: 3.9",
49 "Programming Language
:: Python
:: 3.10",
53 packages=find_packages(),
67 # To provide executable scripts, use entry points in preference to the
68 # "scripts
" keyword. Entry points provide cross-platform support and allow
69 # pip to create the appropriate form of executable for the target platform.