Skip to content

Commit

Permalink
setup.py -> setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Aug 1, 2018
1 parent 83f2dcc commit a95af40
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 63 deletions.
51 changes: 49 additions & 2 deletions setup.cfg
@@ -1,2 +1,49 @@
[wheel]
universal = 1
[metadata]
name = jsonschema
url = https://github.com/Julian/jsonschema
description = An implementation of JSON Schema validation for Python
long_description = file: README.rst
author = Julian Berman
author_email = Julian@GrayVines.com
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
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 :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy

[options]
packages = find:
setup_requires = setuptools_scm
install_requires =
attrs>=17.4.0
pyrsistent>=0.14.0
six>=1.11.0
functools32;python_version<'3'

[options.extras_require]
format =
jsonpointer>1.13
rfc3987
strict-rfc3339
webcolors

[options.entry_points]
console_scripts =
jsonschema = jsonschema.cli:main

[options.package_data]
jsonschema = schemas/*.json

[flake8]
exclude =
jsonschema/__init__.py
jsonschema/_reflect.py
58 changes: 1 addition & 57 deletions setup.py
@@ -1,58 +1,2 @@
import os

from setuptools import setup


with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
long_description = readme.read()

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]

setup(
name="jsonschema",
classifiers=classifiers,
description="An implementation of JSON Schema validation for Python",
license="MIT",
long_description=long_description,
url="http://github.com/Julian/jsonschema",

author="Julian Berman",
author_email="Julian@GrayVines.com",

setup_requires=["setuptools_scm"],
use_scm_version=True,

install_requires=[
"attrs>=17.4.0",
"pyrsistent>=0.14.0",
"six>=1.11.0",
"functools32;python_version<'3'",
],
extras_require={
"format": [
"jsonpointer>1.13",
"rfc3987",
"strict-rfc3339",
"webcolors",
],
},

packages=["jsonschema", "jsonschema.tests"],
package_data={"jsonschema": ["schemas/*.json"]},

entry_points={"console_scripts": ["jsonschema = jsonschema.cli:main"]},
)
setup(use_scm_version=True)
5 changes: 1 addition & 4 deletions tox.ini
@@ -1,4 +1,5 @@
[tox]
changedir = {envtmpdir}
skipsdist = True
envlist =
py{27,34,35,36,py}-{build,safety,tests},
Expand Down Expand Up @@ -62,10 +63,6 @@ basepython = pypy
deps = ebb-lint
commands = {envbindir}/flake8 {posargs} {toxinidir}/jsonschema {toxinidir}/docs {toxinidir}/setup.py


[flake8]
exclude = jsonschema/__init__.py,jsonschema/_reflect.py

[testenv:coverage]
setenv =
{[testenv]setenv}
Expand Down

0 comments on commit a95af40

Please sign in to comment.