Skip to content

Commit 05203bd

Browse files
authored
Move backup-fonts to the right spot in the help menu (#327)
1 parent 1a577b6 commit 05203bd

File tree

2 files changed

+36
-49
lines changed

2 files changed

+36
-49
lines changed

setup.py

Lines changed: 29 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
here = path.abspath(path.dirname(__file__))
77

88
# Get the long description from the README file
9-
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
9+
with open(path.join(here, "README.md"), encoding="utf-8") as f:
1010
long_description = f.read()
1111

1212
setup(
@@ -18,63 +18,50 @@
1818
url=ProjInfo.URL,
1919
author=ProjInfo.AUTHOR_GITHUB,
2020
author_email="[email protected]",
21-
2221
# Classifiers help users find your project by categorizing it.
2322
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
2423
classifiers=[ # Optional
25-
'Development Status :: 4 - Beta',
26-
27-
'Environment :: MacOS X',
28-
29-
'Intended Audience :: Developers',
30-
'Intended Audience :: End Users/Desktop',
31-
'Intended Audience :: System Administrators',
32-
33-
'Topic :: System :: Installation/Setup',
34-
'Topic :: System :: Archiving :: Backup',
35-
'Topic :: System :: Operating System',
36-
'Topic :: Documentation',
37-
'Topic :: Utilities',
38-
39-
'Operating System :: MacOS',
40-
'Operating System :: POSIX :: Linux',
41-
'Operating System :: Unix',
42-
43-
'Natural Language :: English',
44-
45-
'License :: OSI Approved :: MIT License',
46-
47-
'Programming Language :: Python :: 3',
48-
'Programming Language :: Python :: 3.4',
49-
'Programming Language :: Python :: 3.5',
50-
'Programming Language :: Python :: 3.6',
51-
'Programming Language :: Python :: 3.7',
24+
"Development Status :: 4 - Beta",
25+
"Environment :: MacOS X",
26+
"Intended Audience :: Developers",
27+
"Intended Audience :: End Users/Desktop",
28+
"Intended Audience :: System Administrators",
29+
"Topic :: System :: Installation/Setup",
30+
"Topic :: System :: Archiving :: Backup",
31+
"Topic :: System :: Operating System",
32+
"Topic :: Documentation",
33+
"Topic :: Utilities",
34+
"Operating System :: MacOS",
35+
"Operating System :: POSIX :: Linux",
36+
"Operating System :: Unix",
37+
"Natural Language :: English",
38+
"License :: OSI Approved :: MIT License",
39+
"Programming Language :: Python :: 3",
40+
"Programming Language :: Python :: 3.4",
41+
"Programming Language :: Python :: 3.5",
42+
"Programming Language :: Python :: 3.6",
43+
"Programming Language :: Python :: 3.7",
5244
],
53-
5445
# This field adds keywords for your project which will appear on the
5546
# project page. What does your project relate to?
5647
#
5748
# Note that this is a string of words separated by whitespace, not a list.
58-
keywords='backup documentation system dotfiles install list configuration', # Optional
49+
keywords="backup documentation system dotfiles install list configuration", # Optional
5950
packages=["shallow_backup"],
6051
install_requires=[
61-
'inquirer>=2.2.0',
62-
'colorama>=0.3.9',
63-
'gitpython>=3.1.20',
64-
'Click'
52+
"inquirer>=2.2.0",
53+
"colorama>=0.3.9",
54+
"gitpython>=3.1.20",
55+
"Click",
6556
],
66-
6757
# To provide executable scripts, use entry points in preference to the
6858
# "scripts" keyword. Entry points provide cross-platform support and allow
6959
# `pip` to create the appropriate form of executable for the target
7060
# platform.
7161
#
7262
# For example, the following would provide a command called `sample` which
7363
# executes the function `main` from this package when invoked:
74-
entry_points={
75-
'console_scripts': 'shallow-backup=shallow_backup.__main__:cli'
76-
},
77-
64+
entry_points={"console_scripts": "shallow-backup=shallow_backup.__main__:cli"},
7865
# List additional URLs that are relevant to your project as a dict.
7966
#
8067
# This field corresponds to the "Project-URL" metadata fields:
@@ -85,7 +72,7 @@
8572
# maintainers, and where to support the project financially. The key is
8673
# what's used to render the link text on PyPI.
8774
project_urls={
88-
'Bug Reports': ProjInfo.BUG_REPORT_URL,
89-
'Donations': 'https://www.patreon.com/alichtman',
75+
"Bug Reports": ProjInfo.BUG_REPORT_URL,
76+
"Donations": "https://www.patreon.com/alichtman",
9077
},
9178
)

shallow_backup/__main__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@
3535
default=False,
3636
help="Back up dotfiles.",
3737
)
38+
@click.option(
39+
"-backup-fonts",
40+
"backup_fonts_flag",
41+
is_flag=True,
42+
default=False,
43+
help="Back up installed fonts.",
44+
)
3845
@click.option(
3946
"-backup-packages",
4047
"backup_packages_flag",
@@ -52,13 +59,6 @@
5259
default=False,
5360
help="Don't backup or reinstall any files, just give verbose output.",
5461
)
55-
@click.option(
56-
"-backup-fonts",
57-
"backup_fonts_flag",
58-
is_flag=True,
59-
default=False,
60-
help="Back up installed fonts.",
61-
)
6262
@click.option("--new-path", default=None, help="Input a new back up directory path.")
6363
@click.option(
6464
"-no-new-backup-path-prompt",

0 commit comments

Comments
 (0)