Skip to content

Commit 918bd33

Browse files
authored
Drop support for Python 3.6 (pypa#165)
1 parent d424e43 commit 918bd33

File tree

3 files changed

+34
-56
lines changed

3 files changed

+34
-56
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
test:
1010
strategy:
1111
matrix:
12-
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
12+
python: ['3.7', '3.8', '3.9', '3.10']
1313
platform: [ubuntu-latest, macos-latest, windows-latest]
1414
runs-on: ${{ matrix.platform }}
1515
steps:

setup.py

Lines changed: 32 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
here = pathlib.Path(__file__).parent.resolve()
1313

1414
# Get the long description from the README file
15-
long_description = (here / 'README.md').read_text(encoding='utf-8')
15+
long_description = (here / "README.md").read_text(encoding="utf-8")
1616

1717
# Arguments marked as "Required" below must be included for upload to PyPI.
1818
# Fields marked as "Optional" may be commented out.
@@ -29,21 +29,18 @@
2929
# There are some restrictions on what makes a valid project name
3030
# specification here:
3131
# https://packaging.python.org/specifications/core-metadata/#name
32-
name='sampleproject', # Required
33-
32+
name="sampleproject", # Required
3433
# Versions should comply with PEP 440:
3534
# https://www.python.org/dev/peps/pep-0440/
3635
#
3736
# For a discussion on single-sourcing the version across setup.py and the
3837
# project code, see
3938
# https://packaging.python.org/guides/single-sourcing-package-version/
40-
version='2.0.0', # Required
41-
39+
version="2.0.0", # Required
4240
# This is a one-line description or tagline of what your project does. This
4341
# corresponds to the "Summary" metadata field:
4442
# https://packaging.python.org/specifications/core-metadata/#summary
45-
description='A sample Python project', # Optional
46-
43+
description="A sample Python project", # Optional
4744
# This is an optional longer description of your project that represents
4845
# the body of text which users will see when they visit PyPI.
4946
#
@@ -53,7 +50,6 @@
5350
# This field corresponds to the "Description" metadata field:
5451
# https://packaging.python.org/specifications/core-metadata/#description-optional
5552
long_description=long_description, # Optional
56-
5753
# Denotes that our long_description is in Markdown; valid values are
5854
# text/plain, text/x-rst, and text/markdown
5955
#
@@ -64,22 +60,18 @@
6460
#
6561
# This field corresponds to the "Description-Content-Type" metadata field:
6662
# https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
67-
long_description_content_type='text/markdown', # Optional (see note above)
68-
63+
long_description_content_type="text/markdown", # Optional (see note above)
6964
# This should be a valid link to your project's main homepage.
7065
#
7166
# This field corresponds to the "Home-Page" metadata field:
7267
# https://packaging.python.org/specifications/core-metadata/#home-page-optional
73-
url='https://github.com/pypa/sampleproject', # Optional
74-
68+
url="https://github.com/pypa/sampleproject", # Optional
7569
# This should be your name or the name of the organization which owns the
7670
# project.
77-
author='A. Random Developer', # Optional
78-
71+
author="A. Random Developer", # Optional
7972
# This should be a valid email address corresponding to the author listed
8073
# above.
81-
author_email='[email protected]', # Optional
82-
74+
author_email="[email protected]", # Optional
8375
# Classifiers help users find your project by categorizing it.
8476
#
8577
# For a list of valid classifiers, see https://pypi.org/classifiers/
@@ -88,39 +80,32 @@
8880
# 3 - Alpha
8981
# 4 - Beta
9082
# 5 - Production/Stable
91-
'Development Status :: 3 - Alpha',
92-
83+
"Development Status :: 3 - Alpha",
9384
# Indicate who your project is intended for
94-
'Intended Audience :: Developers',
95-
'Topic :: Software Development :: Build Tools',
96-
85+
"Intended Audience :: Developers",
86+
"Topic :: Software Development :: Build Tools",
9787
# Pick your license as you wish
98-
'License :: OSI Approved :: MIT License',
99-
88+
"License :: OSI Approved :: MIT License",
10089
# Specify the Python versions you support here. In particular, ensure
10190
# that you indicate you support Python 3. These classifiers are *not*
10291
# checked by 'pip install'. See instead 'python_requires' below.
103-
'Programming Language :: Python :: 3',
104-
'Programming Language :: Python :: 3.6',
105-
'Programming Language :: Python :: 3.7',
106-
'Programming Language :: Python :: 3.8',
107-
'Programming Language :: Python :: 3.9',
92+
"Programming Language :: Python :: 3",
93+
"Programming Language :: Python :: 3.7",
94+
"Programming Language :: Python :: 3.8",
95+
"Programming Language :: Python :: 3.9",
10896
"Programming Language :: Python :: 3.10",
109-
'Programming Language :: Python :: 3 :: Only',
97+
"Programming Language :: Python :: 3 :: Only",
11098
],
111-
11299
# This field adds keywords for your project which will appear on the
113100
# project page. What does your project relate to?
114101
#
115102
# Note that this is a list of additional keywords, separated
116103
# by commas, to be used to assist searching for the distribution in a
117104
# larger catalog.
118-
keywords='sample, setuptools, development', # Optional
119-
105+
keywords="sample, setuptools, development", # Optional
120106
# When your source code is in a subdirectory under the project root, e.g.
121107
# `src/`, it is necessary to specify the `package_dir` argument.
122-
package_dir={'': 'src'}, # Optional
123-
108+
package_dir={"": "src"}, # Optional
124109
# You can just specify package directories manually here if your project is
125110
# simple. Or you can use find_packages().
126111
#
@@ -130,22 +115,19 @@
130115
#
131116
# py_modules=["my_module"],
132117
#
133-
packages=find_packages(where='src'), # Required
134-
118+
packages=find_packages(where="src"), # Required
135119
# Specify which Python versions you support. In contrast to the
136120
# 'Programming Language' classifiers above, 'pip install' will check this
137121
# and refuse to install the project if the version does not match. See
138122
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
139-
python_requires='>=3.6, <4',
140-
123+
python_requires=">=3.7, <4",
141124
# This field lists other packages that your project depends on to run.
142125
# Any package you put here will be installed by pip when your project is
143126
# installed, so they must be valid existing projects.
144127
#
145128
# For an analysis of "install_requires" vs pip's requirements files see:
146129
# https://packaging.python.org/discussions/install-requires-vs-requirements/
147-
install_requires=['peppercorn'], # Optional
148-
130+
install_requires=["peppercorn"], # Optional
149131
# List additional groups of dependencies here (e.g. development
150132
# dependencies). Users will be able to install these using the "extras"
151133
# syntax, for example:
@@ -155,23 +137,20 @@
155137
# Similar to `install_requires` above, these must be valid existing
156138
# projects.
157139
extras_require={ # Optional
158-
'dev': ['check-manifest'],
159-
'test': ['coverage'],
140+
"dev": ["check-manifest"],
141+
"test": ["coverage"],
160142
},
161-
162143
# If there are data files included in your packages that need to be
163144
# installed, specify them here.
164145
package_data={ # Optional
165-
'sample': ['package_data.dat'],
146+
"sample": ["package_data.dat"],
166147
},
167-
168148
# Although 'package_data' is the preferred approach, in some case you may
169149
# need to place data files outside of your packages. See:
170150
# http://docs.python.org/distutils/setupscript.html#installing-additional-files
171151
#
172152
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
173-
data_files=[('my_data', ['data/data_file'])], # Optional
174-
153+
data_files=[("my_data", ["data/data_file"])], # Optional
175154
# To provide executable scripts, use entry points in preference to the
176155
# "scripts" keyword. Entry points provide cross-platform support and allow
177156
# `pip` to create the appropriate form of executable for the target
@@ -180,11 +159,10 @@
180159
# For example, the following would provide a command called `sample` which
181160
# executes the function `main` from this package when invoked:
182161
entry_points={ # Optional
183-
'console_scripts': [
184-
'sample=sample:main',
162+
"console_scripts": [
163+
"sample=sample:main",
185164
],
186165
},
187-
188166
# List additional URLs that are relevant to your project as a dict.
189167
#
190168
# This field corresponds to the "Project-URL" metadata fields:
@@ -195,9 +173,9 @@
195173
# maintainers, and where to support the project financially. The key is
196174
# what's used to render the link text on PyPI.
197175
project_urls={ # Optional
198-
'Bug Reports': 'https://github.com/pypa/sampleproject/issues',
199-
'Funding': 'https://donate.pypi.org',
200-
'Say Thanks!': 'http://saythanks.io/to/example',
201-
'Source': 'https://github.com/pypa/sampleproject/',
176+
"Bug Reports": "https://github.com/pypa/sampleproject/issues",
177+
"Funding": "https://donate.pypi.org",
178+
"Say Thanks!": "http://saythanks.io/to/example",
179+
"Source": "https://github.com/pypa/sampleproject/",
202180
},
203181
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# and also to help confirm pull requests to this project.
1414

1515
[tox]
16-
envlist = py{36,37,38,39,310}
16+
envlist = py{37,38,39,310}
1717

1818
# Define the minimal tox version required to run;
1919
# if the host tox is less than this the tool with create an environment and

0 commit comments

Comments
 (0)