Skip to content

Commit

Permalink
setup-py-upgrade + setup-cfg-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Mar 11, 2019
1 parent b90daff commit aa21900
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
26 changes: 26 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 = [email protected]
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
26 changes: 1 addition & 25 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
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'],
)

0 comments on commit aa21900

Please sign in to comment.