Skip to content

Commit cc3e191

Browse files
authored
Add python 3.8 support (#26)
Add python 3.8 support
2 parents 8faa86f + 65259c1 commit cc3e191

File tree

8 files changed

+356
-53
lines changed

8 files changed

+356
-53
lines changed

.travis.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,8 @@ python:
77
- 3.4
88
- 3.5
99
- 3.6
10-
11-
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
12-
# see this issue for updates https://github.com/travis-ci/travis-ci/issues/9815
13-
matrix:
14-
fast_finish: true
15-
include:
16-
- python: 3.7
17-
dist: xenial
18-
sudo: true
10+
- 3.7
11+
- 3.8
1912

2013
before_install:
2114
- pip install -r requirements-dev.txt
@@ -39,4 +32,4 @@ deploy:
3932
repo: jackmaney/python-stdlib-list
4033
tags: true
4134
all_branches: master
42-
python: 3.6
35+
python: 3.7

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Python Standard Library List
22
============================
33

4-
This package includes lists of all of the standard libraries for Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6, along with the code for scraping the official Python docs to get said lists.
4+
This package includes lists of all of the standard libraries for Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, and 3.8 along with the code for scraping the official Python docs to get said lists.
55

66
Listing the modules in the standard library? Wait, why on Earth would you care about that?!
77
-------------------------------------------------------------------------------------------

README.rst

-25
This file was deleted.

requirements-dev.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
-r requirements.txt
22
sphinx_rtd_theme
3+
check-manifest
4+
twine
5+
wheel

setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ versionfile_source = stdlib_list/_version.py
99
versionfile_build = stdlib_list/_version.py
1010
tag_prefix =
1111
parentdir_prefix =
12+
13+
[metadata]
14+
description-file = README.md
15+
license_file = LICENSE

setup.py

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
import setuptools
1+
import os
2+
3+
from setuptools import find_packages, setup
24

35
import versioneer
46

7+
rootpath = os.path.dirname(os.path.abspath(__file__))
8+
59

6-
try:
7-
with open('README.rst') as f:
8-
long_description = f.read()
9-
except IOError:
10-
long_description = ""
10+
def read(*parts):
11+
return open(os.path.join(rootpath, *parts), "r").read()
1112

1213

13-
setuptools.setup(
14-
name='stdlib-list',
15-
license='MIT',
16-
author='Jack Maney',
17-
author_email='[email protected]',
18-
url='https://github.com/jackmaney/python-stdlib-list',
14+
setup(
15+
name="stdlib-list",
16+
license="MIT",
17+
author="Jack Maney",
18+
author_email="[email protected]",
19+
url="https://github.com/jackmaney/python-stdlib-list",
1920
version=versioneer.get_version(),
20-
install_requires=['functools32;python_version<"3.2"'],
21+
install_requires=["functools32;python_version<'3.2'"],
2122
extras_require={"develop": ["sphinx"]},
22-
description='A list of Python Standard Libraries (2.6-7, 3.2-6).',
23-
long_description=long_description,
23+
description="A list of Python Standard Libraries (2.6-7, 3.2-8).",
24+
long_description="{}".format(read("README.md")),
25+
long_description_content_type="text/markdown",
2426
include_package_data=True,
25-
packages=setuptools.find_packages(),
27+
packages=find_packages(),
2628
cmdclass=versioneer.get_cmdclass(),
2729
)

stdlib_list/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
list_dir = os.path.join(base_dir, "lists")
1414

15-
long_versions = ["2.6.9", "2.7.9", "3.2.6", "3.3.6", "3.4.3", "3.5", "3.6", "3.7"]
15+
long_versions = ["2.6.9", "2.7.9", "3.2.6", "3.3.6", "3.4.3", "3.5", "3.6",
16+
"3.7", "3.8"]
1617

1718
short_versions = [".".join(x.split(".")[:2]) for x in long_versions]
1819

0 commit comments

Comments
 (0)