forked from palmetto/palm-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (40 loc) · 1.44 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
import sys
from distutils.core import setup
from pathlib import Path
# require version of setuptools that supports find_namespace_packages
from setuptools import setup
try:
from setuptools import find_namespace_packages
except ImportError:
# the user has a downlevel version of setuptools.
print("Error: palm requires setuptools v40.1.0 or higher.")
print(
'Please upgrade setuptools with "pip install --upgrade setuptools" and try again'
)
sys.exit(1)
# User-friendly description from README.md
this_directory = Path(__file__).parent
long_description = Path(this_directory, "README.md").read_text()
setup(
name="palm",
version="2.5.1", # Don't forget to bump the version in docs/source/conf.py too!
description="Palm CLI",
long_description=long_description,
long_description_content_type="text/markdown",
author="Palmetto - Data & Analytics team",
author_email="[email protected]",
url="https://github.com/palmetto/palm-cli",
# Packages to include into the distribution
packages=find_namespace_packages(include=["palm", "palm*"]),
package_data={"": ["*.yaml", "*.txt"]},
entry_points="""
[console_scripts]
palm=palm.cli:cli
""",
license="Apache License 2.0",
install_requires=Path("requirements.txt").read_text().splitlines(),
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
],
)