Skip to content

Commit

Permalink
Modernized setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Nov 17, 2018
1 parent 4194cb9 commit f85fc57
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 39 deletions.
6 changes: 5 additions & 1 deletion seep/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
from seep._version import __version__
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
pass
30 changes: 28 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
[wheel]
universal = 1
[metadata]
name = seep
url = https://github.com/Julian/Seep
description = "A data coersion language built on top of JSON Schema"
long_description = file: README.rst
author = Julian Berman
author_email = [email protected]
classifiers =
Development Status :: 3 - Alpha
Operating System :: OS Independent
Programming Language :: Python
License :: OSI Approved :: MIT License
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy

[options]
packages = find:
setup_requires = setuptools_scm
install_requires =
jsonschema

[flake8]
exclude = seep/__init__.py
38 changes: 2 additions & 36 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,2 @@
import os

from setuptools import find_packages, setup


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

classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy"
]

setup(
name="seep",
packages=find_packages(),
install_requires=["jsonschema"],
setup_requires=["vcversioner"],
author="Julian Berman",
author_email="[email protected]",
classifiers=classifiers,
description="A data coersion language built on top of jsonschema",
license="MIT",
long_description=long_description,
url="https://github.com/Julian/Seep",
vcversioner={"version_module_paths" : ["seep/_version.py"]},
)
from setuptools import setup
setup(use_scm_version=True)

0 comments on commit f85fc57

Please sign in to comment.