-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Modernize setup files - [ ] Towards #45 * Update setup.py
- Loading branch information
Showing
2 changed files
with
73 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
[sdist] | ||
formats = gztar | ||
|
||
[check-manifest] | ||
ignore = | ||
*.yml | ||
*.yaml | ||
.coveragerc | ||
docs | ||
docs/* | ||
*.enc | ||
notebooks | ||
notebooks/* | ||
tests | ||
tests/* | ||
|
||
[flake8] | ||
max-line-length = 105 | ||
select = C,E,F,W,B,B950 | ||
ignore = E203, E501, W503 | ||
exclude = xmovie/_version.py | ||
|
||
|
||
[metadata] | ||
name = xmovie | ||
description = Simply create beautiful movies from xarray objects | ||
author = xmovie developers | ||
url=https://github.com/jbusecke/xmovie | ||
license = MIT | ||
license_file = LICENSE | ||
|
||
## These need to be filled in by the author! | ||
# For details see: https://pypi.org/classifiers/ | ||
|
||
classifiers = | ||
Development Status :: 4 - Beta | ||
Topic :: Scientific/Engineering | ||
Intended Audience :: Science/Research | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
# Dont change this one | ||
License :: OSI Approved :: MIT License | ||
|
||
## Add your email here | ||
author_email = jbusecke@princeton.edu | ||
|
||
|
||
### make sure to fill in your dependencies! | ||
[options] | ||
install_requires = | ||
numpy | ||
xarray | ||
dask | ||
cartopy | ||
setup_requires= | ||
setuptools_scm | ||
python_requires = >=3.6 | ||
################ Up until here | ||
|
||
include_package_data = True | ||
zip_safe = False | ||
packages = find: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,11 @@ | ||
import sys | ||
|
||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
|
||
MAJOR = 0 | ||
MINOR = 1 | ||
MICRO = 0 | ||
ISRELEASED = False | ||
VERSION = "%d.%d.%d" % (MAJOR, MINOR, MICRO) | ||
QUALIFIER = "" | ||
|
||
|
||
DISTNAME = "xmovie" | ||
LICENSE = "MIT" | ||
AUTHOR = "Julius Busecke" | ||
AUTHOR_EMAIL = "julius@princeton.edu" | ||
URL = "https://github.com/jbusecke/xmovie" | ||
CLASSIFIERS = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
|
||
INSTALL_REQUIRES = ["xarray", "dask", "cartopy"] | ||
SETUP_REQUIRES = ["pytest-runner"] | ||
TESTS_REQUIRE = ["pytest >= 2.8", "coverage"] | ||
|
||
if sys.version_info[:2] < (2, 7): | ||
TESTS_REQUIRE += ["unittest2 == 0.5.1"] | ||
|
||
DESCRIPTION = "Simply create beautiful movies from xarray objects" | ||
LONG_DESCRIPTION = """To be written. | ||
""" | ||
|
||
setup( | ||
name=DISTNAME, | ||
version=VERSION, | ||
license=LICENSE, | ||
author=AUTHOR, | ||
author_email=AUTHOR_EMAIL, | ||
classifiers=CLASSIFIERS, | ||
description=DESCRIPTION, | ||
long_description=LONG_DESCRIPTION, | ||
install_requires=INSTALL_REQUIRES, | ||
setup_requires=SETUP_REQUIRES, | ||
tests_require=TESTS_REQUIRE, | ||
url=URL, | ||
packages=find_packages(), | ||
use_scm_version={ | ||
"write_to": "xmovie/_version.py", | ||
"write_to_template": '__version__ = "{version}"', | ||
"tag_regex": r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$", | ||
} | ||
) |