-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·59 lines (55 loc) · 2.11 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /usr/bin/env python
import sys
from setuptools import setup
import versioneer
setup_args = dict(
name="pyctdev",
description="python packaging common tasks for developers",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
version=versioneer.get_version().lstrip("v"),
cmdclass=versioneer.get_cmdclass(),
license="BSD-3",
url="http://github.com/pyviz/pyctdev",
packages=["pyctdev"],
python_requires=">=2.7",
include_package_data=True,
install_requires=[
# otherwise py2 users will just get an error (should really
# be fixed in doit)
"doit" if sys.version_info[0] > 2 else "doit <0.30",
# doit requires cloudpickle but does not specify the dependency
"cloudpickle",
## tox
# because tox.ini is currently the main list of
# tests/environments, some of tox is required - just the
# config reading bit. But that's tied in with all of tox. And
# tox is not in anaconda defaults. Further, tox and virtualenv
# may be problematic with conda, or someone may have/want a
# customized version, so we don't cause them to be installed
# and just vendor them.
#'tox'
#'virtualenv'
"pluggy", # for tox
"py", # for tox
#'argparse', # for virtualenv
##
# Pretty much part of every python distribution now anyway.
# Use it e.g. to be able to read pyproject.toml
# pinning to avoid https://github.com/pyviz/pyctdev/issues/12
"pip >=19.1.1",
# Added to no longer depend on tomli vendored by pip.
"tomli",
],
extras_require={
"tests": ["flake8"],
"ecosystem_pip": ["tox", "twine", "wheel"],
# pins are supposed to be for when it became possible to
# install them outside of root/base env, and when api appeared;
# not sure exactly which versions
# (actually, cb pin is for tested/known good version
"ecosystem_conda": ["conda >=4.4", "conda-build >=3.10.1"],
},
)
if __name__ == "__main__":
setup(**setup_args)