Skip to content

Commit

Permalink
chore: Add setup.py file back since release-please-bot requires it (#…
Browse files Browse the repository at this point in the history
…1156)

* Add setup.py file back since release-please-bot requires it

* Remove TOML file to go back using setup.py
  • Loading branch information
helensilva14 committed Jun 3, 2024
1 parent 7459398 commit 9946fcb
Showing 1 changed file with 48 additions and 35 deletions.
83 changes: 48 additions & 35 deletions pyproject.toml → setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,34 +12,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

[build-system]
requires = ["setuptools>=61.0"] # Modern setuptools for static metadata
build-backend = "setuptools.build_meta"
import os

import setuptools

[project]
name = "google-pso-data-validator"
version = "5.0.0" # Dynamic if using setuptools_scm, else keep static
description = "A package to enable easy data validation"
readme = "README.md"
requires-python = ">=3.8"

authors = [
{name = "PSO DVT Engineering team", email = "[email protected]"}
]
maintainers = [
{name = "PSO DVT Engineering team", email = "[email protected]"}
]
version = "5.0.0"
release_status = "Development Status :: 4 - Beta"

license = {text = "Apache Software License"}
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
]
with open("README.md", "r") as fh:
long_description = fh.read()

dependencies = [
# Dependency corrections from our requirements
Expand Down Expand Up @@ -71,15 +54,45 @@
"google-cloud-secret-manager>=2.16.0",
]

[project.optional-dependencies]
apache-airflow = ["apache-airflow==1.10.11"]
pyspark = ["pyspark==3.0.0"]

[project.scripts]
data-validation = "data_validation.__main__:main"
extras_require = {
"apache-airflow": "1.10.11",
"pyspark": "3.0.0",
}

[tool.setuptools]
packages = ["data_validation", "data_validation.query_builder", "data_validation.result_handlers"]
packages = [
"data_validation",
"data_validation.query_builder",
"data_validation.result_handlers",
]
packages += [
"third_party.ibis.{}".format(path)
for path in setuptools.find_packages(where=os.path.join("third_party", "ibis"))
]

[packages.find]
where = ["third_party/ibis"] # folder that contains our custom packages for Ibis
setuptools.setup(
name=name,
description=description,
version=version,
author="PSO DVT Engineering team",
author_email="[email protected]",
long_description=long_description,
long_description_content_type="text/markdown",
packages=packages,
classifiers=[
release_status,
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
install_requires=dependencies,
extras_require=extras_require,
entry_points={
"console_scripts": [
"data-validation=data_validation.__main__:main",
]
},
)

0 comments on commit 9946fcb

Please sign in to comment.