Remove copyright years
[dotbot.git] / setup.py
blobf0764af59bb2546fb4470e393c0546ee8f38921e
1 import re
2 from codecs import open # For a consistent encoding
3 from os import path
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:
16 return fp.read()
19 def find_version(*file_paths):
20 version_file = read(*file_paths)
21 version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
22 if version_match:
23 return version_match.group(1)
24 raise RuntimeError("Unable to find version string.")
27 setup(
28 name="dotbot",
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",
36 license="MIT",
37 classifiers=[
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",
50 "Topic :: Utilities",
52 keywords="dotfiles",
53 packages=find_packages(),
54 setup_requires=[
55 "setuptools>=38.6.0",
56 "wheel>=0.31.0",
58 install_requires=[
59 "PyYAML>=5.3,<6",
61 extras_require={
62 "dev": {
63 "pytest",
64 "tox",
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.
70 entry_points={
71 "console_scripts": [
72 "dotbot=dotbot:main",