From aa219006eb3dc4bdf41146da33d9dd197fa945b2 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 10 Mar 2019 17:55:43 -0700 Subject: [PATCH] setup-py-upgrade + setup-cfg-fmt --- setup.cfg | 26 ++++++++++++++++++++++++++ setup.py | 26 +------------------------- 2 files changed, 27 insertions(+), 25 deletions(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..c1fee5f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,26 @@ +[metadata] +name = dockerfile +version = 2.0.2 +description = Parse a dockerfile into a high-level representation using the official go parser. +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/asottile/dockerfile +author = Anthony Sottile +author_email = asottile@umich.edu +license = MIT +license_file = LICENSE +classifiers = + License :: OSI Approved :: MIT License + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: Implementation :: PyPy + +[options] +python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* +setup_requires = setuptools-golang>=0.2.0 diff --git a/setup.py b/setup.py index 120125e..d551e0f 100644 --- a/setup.py +++ b/setup.py @@ -3,36 +3,12 @@ from setuptools import Extension from setuptools import setup - if not os.path.exists('vendor/github.com/docker/docker/builder'): print('docker checkout is missing!') print('Run `git submodule update --init`') exit(1) - setup( - name='dockerfile', - description=( - 'Parse a dockerfile into a high-level representation using the ' - 'official go parser.' - ), - url='https://github.com/asottile/dockerfile', - version='2.0.2', - author='Anthony Sottile', - author_email='asottile@umich.edu', - classifiers=[ - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', - ], - ext_modules=[ - Extension('dockerfile', ['pylib/main.go']), - ], + ext_modules=[Extension('dockerfile', ['pylib/main.go'])], build_golang={'root': 'github.com/asottile/dockerfile'}, - setup_requires=['setuptools-golang>=0.2.0'], )