-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (38 loc) · 1.21 KB
/
Copy pathsetup.py
File metadata and controls
44 lines (38 loc) · 1.21 KB
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
from setuptools import setup
import os
VERSION = "0.5.0"
def write_version_py(version=VERSION, filename="colormaps/_version.py"):
cnt = "# THIS FILE IS GENERATED FROM SETUP.PY\n" + '__version__ = "%(version)s"\n'
with open(filename, "w") as f:
f.write(cnt % {"version": version})
write_version_py()
setup(
name="colormaps",
author="Pratiman Patel",
version=VERSION,
author_email="pratiman_patel@hotmail.com",
packages=[
"colormaps",
],
package_data={
"colormaps": [
"colormaps/ncar_ncl/*",
"colormaps/cartocolors/*",
"colormaps/cmocean/*",
"colormaps/colorbrewer/*",
"colormaps/cubehelix/*",
"colormaps/scientific/*",
"colormaps/tableau/*",
"colormaps/sciviz/*",
"colormaps/colorcet/*",
"colormaps/cmasher/*",
"colormaps/carbonplan/*",
],
},
data_files=[
("", ["LICENSE"]),
],
url="https://pratiman-91.github.io/colormaps/",
description="A collection of colormaps or color palettes for Python",
install_requires=["matplotlib", "numpy", "packaging"],
)