81 lines
2.6 KiB
Python
Raw Normal View History

2021-01-31 22:40:30 -08:00
import os
2021-02-11 23:14:20 -08:00
2021-01-31 22:40:30 -08:00
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.7",
"Programming Language :: Python :: 3.8",
2021-02-07 11:14:05 -08:00
"Programming Language :: Python :: 3.9",
2021-01-31 22:40:30 -08:00
"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",
],
2021-02-11 16:23:03 -08:00
python_requires=">=3.6",
2021-01-31 22:40:30 -08:00
package_dir={"": "src"},
2021-02-11 10:34:19 -08:00
packages=setuptools.find_packages(where='./src'),
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-02-03 10:31:24 -08:00
"avro-python3>=1.8.2",
"sqlalchemy>=1.3.23", #Required for SQL sources
"pymysql>=1.0.2", # Driver for MySQL
"sqlalchemy-pytds>=0.3", # Driver for MS-SQL
"avro_gen @ https://api.github.com/repos/hsheth2/avro_gen/tarball/master",
2021-01-31 22:40:30 -08:00
],
)