Skip to content

Commit

Permalink
Add python 3.8 support (#26)
Browse files Browse the repository at this point in the history
Add python 3.8 support
  • Loading branch information
ocefpaf authored Nov 27, 2019
2 parents 8faa86f + 65259c1 commit cc3e191
Show file tree
Hide file tree
Showing 8 changed files with 356 additions and 53 deletions.
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@ python:
- 3.4
- 3.5
- 3.6

# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
# see this issue for updates https://github.com/travis-ci/travis-ci/issues/9815
matrix:
fast_finish: true
include:
- python: 3.7
dist: xenial
sudo: true
- 3.7
- 3.8

before_install:
- pip install -r requirements-dev.txt
Expand All @@ -39,4 +32,4 @@ deploy:
repo: jackmaney/python-stdlib-list
tags: true
all_branches: master
python: 3.6
python: 3.7
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Python Standard Library List
============================

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.
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.

Listing the modules in the standard library? Wait, why on Earth would you care about that?!
-------------------------------------------------------------------------------------------
Expand Down
25 changes: 0 additions & 25 deletions README.rst

This file was deleted.

3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
-r requirements.txt
sphinx_rtd_theme
check-manifest
twine
wheel
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ versionfile_source = stdlib_list/_version.py
versionfile_build = stdlib_list/_version.py
tag_prefix =
parentdir_prefix =

[metadata]
description-file = README.md
license_file = LICENSE
34 changes: 18 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
import setuptools
import os

from setuptools import find_packages, setup

import versioneer

rootpath = os.path.dirname(os.path.abspath(__file__))


try:
with open('README.rst') as f:
long_description = f.read()
except IOError:
long_description = ""
def read(*parts):
return open(os.path.join(rootpath, *parts), "r").read()


setuptools.setup(
name='stdlib-list',
license='MIT',
author='Jack Maney',
author_email='[email protected]',
url='https://github.com/jackmaney/python-stdlib-list',
setup(
name="stdlib-list",
license="MIT",
author="Jack Maney",
author_email="[email protected]",
url="https://github.com/jackmaney/python-stdlib-list",
version=versioneer.get_version(),
install_requires=['functools32;python_version<"3.2"'],
install_requires=["functools32;python_version<'3.2'"],
extras_require={"develop": ["sphinx"]},
description='A list of Python Standard Libraries (2.6-7, 3.2-6).',
long_description=long_description,
description="A list of Python Standard Libraries (2.6-7, 3.2-8).",
long_description="{}".format(read("README.md")),
long_description_content_type="text/markdown",
include_package_data=True,
packages=setuptools.find_packages(),
packages=find_packages(),
cmdclass=versioneer.get_cmdclass(),
)
3 changes: 2 additions & 1 deletion stdlib_list/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

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

long_versions = ["2.6.9", "2.7.9", "3.2.6", "3.3.6", "3.4.3", "3.5", "3.6", "3.7"]
long_versions = ["2.6.9", "2.7.9", "3.2.6", "3.3.6", "3.4.3", "3.5", "3.6",
"3.7", "3.8"]

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

Expand Down
Loading

0 comments on commit cc3e191

Please sign in to comment.