From 555d98e22fbba14254303f140087b0d3221c210d Mon Sep 17 00:00:00 2001 From: Graham Gower Date: Mon, 20 Jul 2020 11:58:16 +0200 Subject: [PATCH] Add setup.{py,cfg} and LICENSE. Closes #9. Closes #6. --- LICENSE | 13 +++++++++++++ mypy.ini | 4 ---- setup.cfg | 29 +++++++++++++++++++++++++++++ setup.py | 4 ++++ 4 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 LICENSE delete mode 100644 mypy.ini create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..433418af --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2020 demes developers. + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 36853ae7..00000000 --- a/mypy.ini +++ /dev/null @@ -1,4 +0,0 @@ -[mypy] - -[mypy-strictyaml.*] -ignore_missing_imports = True diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..67f1501c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,29 @@ +[metadata] +name = demes +author = demes developers +license = ISC +description = tools for describing demographic models +url = https://github.com/grahamgower/demes +classifiers = + Development Status :: 1 - Planning + License :: OSI Approved :: ISC License (ISCL) + Operating System :: OS Independent + Intended Audience :: Science/Research + Programming Language :: Python :: 3 + Topic :: Scientific/Engineering + +[options] +packages = demes +zip_safe = False # https://mypy.readthedocs.io/en/latest/installed_packages.html +include_package_data = True +python_requires = >=3.6 +install_requires = + attrs >= 19.1.0 + strictyaml + setuptools >= 41.2 # For pkg_resources +setup_requires = + setuptools >= 41.2 + setuptools_scm + +[mypy-strictyaml.*] +ignore_missing_imports = True diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..1e6982b1 --- /dev/null +++ b/setup.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python3 +from setuptools import setup + +setup(use_scm_version=True)