76 lines
2.4 KiB
Python
Raw Normal View History

2021-01-31 22:40:30 -08:00
import os
import setuptools
def get_version():
root = os.path.dirname(__file__)
changelog = os.path.join(root, "CHANGELOG")
with open(changelog) as f:
return f.readline().strip()
def get_long_description():
root = os.path.dirname(__file__)
with open(os.path.join(root, "README.md")) as f:
description = f.read()
description += "\n\nChangelog\n=========\n\n"
with open(os.path.join(root, "CHANGELOG")) as f:
description += f.read()
return description
setuptools.setup(
name="gometa",
version=get_version(),
url="https://github.com/linkedin/datahub",
author="DataHub Committers",
license="Apache License 2.0",
description="A CLI to work with DataHub metadata",
long_description=get_long_description(),
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved",
"License :: OSI Approved :: Apache Software License",
"Operating System :: Unix",
"Operating System :: POSIX :: Linux",
"Environment :: Console",
"Environment :: MacOS X",
"Topic :: Software Development",
],
python_requires=">=3.6",
package_dir={"": "src"},
2021-02-01 11:24:52 -08:00
packages=["gometa", "gometa.configuration"],#TODO: Are these the right components?
2021-01-31 22:40:30 -08:00
include_package_data=True,
package_data={"gometa": ["py.typed"]},
entry_points={
"console_scripts": [
"gometa-ingest = gometa.entrypoints:gometa_ingest"
],
},
install_requires=[
2021-02-01 11:24:52 -08:00
'dataclasses; python_version<="3.6"', #TODO: is this the right directive?
2021-01-31 22:40:30 -08:00
"click>=7.1.1",
"pyyaml>=5.4.1",
"toml>=0.10.0",
"pydantic>=1.5.1",
2021-02-01 11:24:52 -08:00
"watchdog>=0.10.3", #TODO: Check if we want this
2021-01-31 22:40:30 -08:00
"confluent_kafka>=1.5.0",
"requests>=2.25.1",
2021-02-01 11:24:52 -08:00
"fastavro>=1.3.0", #TODO: Do we need both avro-s?
2021-01-31 22:40:30 -08:00
"avro-python3==1.8.2",
],
)