|
1 |
| -""" |
2 |
| -Build and install the project. |
3 |
| -""" |
4 |
| -from setuptools import find_packages, setup |
| 1 | +from setuptools import setup |
5 | 2 |
|
6 |
| -NAME = "pygmt" |
7 |
| -FULLNAME = "PyGMT" |
8 |
| -AUTHOR = "The PyGMT Developers" |
9 |
| -AUTHOR_EMAIL = "[email protected]" |
10 |
| -MAINTAINER = AUTHOR |
11 |
| -MAINTAINER_EMAIL = AUTHOR_EMAIL |
12 |
| -LICENSE = "BSD License" |
13 |
| -URL = "https://github.com/GenericMappingTools/pygmt" |
14 |
| -DESCRIPTION = "A Python interface for the Generic Mapping Tools" |
15 |
| -KEYWORDS = "" |
16 |
| -with open("README.rst", "r", encoding="utf8") as f: |
17 |
| - LONG_DESCRIPTION = "".join(f.readlines()) |
18 |
| - |
19 |
| -PACKAGES = find_packages(exclude=["doc"]) |
20 |
| -SCRIPTS = [] |
21 |
| -PACKAGE_DATA = {"pygmt.tests": ["data/*", "baseline/*"]} |
22 |
| - |
23 |
| -CLASSIFIERS = [ |
24 |
| - "Development Status :: 4 - Beta", |
25 |
| - "Intended Audience :: Science/Research", |
26 |
| - "Intended Audience :: Developers", |
27 |
| - "Intended Audience :: Education", |
28 |
| - "Topic :: Scientific/Engineering", |
29 |
| - "Topic :: Software Development :: Libraries", |
30 |
| - "Programming Language :: Python :: 3.8", |
31 |
| - "Programming Language :: Python :: 3.9", |
32 |
| - "Programming Language :: Python :: 3.10", |
33 |
| - f"License :: OSI Approved :: {LICENSE}", |
34 |
| -] |
35 |
| -PLATFORMS = "Any" |
36 |
| -PYTHON_REQUIRES = ">=3.8" |
37 |
| -INSTALL_REQUIRES = ["numpy>=1.19", "pandas", "xarray", "netCDF4", "packaging"] |
38 |
| - |
39 |
| -if __name__ == "__main__": |
40 |
| - setup( |
41 |
| - name=NAME, |
42 |
| - fullname=FULLNAME, |
43 |
| - description=DESCRIPTION, |
44 |
| - long_description=LONG_DESCRIPTION, |
45 |
| - author=AUTHOR, |
46 |
| - author_email=AUTHOR_EMAIL, |
47 |
| - maintainer=MAINTAINER, |
48 |
| - maintainer_email=MAINTAINER_EMAIL, |
49 |
| - license=LICENSE, |
50 |
| - url=URL, |
51 |
| - platforms=PLATFORMS, |
52 |
| - scripts=SCRIPTS, |
53 |
| - packages=PACKAGES, |
54 |
| - package_data=PACKAGE_DATA, |
55 |
| - classifiers=CLASSIFIERS, |
56 |
| - keywords=KEYWORDS, |
57 |
| - python_requires=PYTHON_REQUIRES, |
58 |
| - install_requires=INSTALL_REQUIRES, |
59 |
| - ) |
| 3 | +setup() |
0 commit comments