Skip to content

Commit

Permalink
fix(setup): corrected python build
Browse files Browse the repository at this point in the history
  • Loading branch information
broomva committed Jun 27, 2023
1 parent b2eb9a5 commit 00b7755
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
import sys
from setuptools import find_packages, find_namespace_packages

if sys.version_info < (3, 10):
if sys.version_info < (3, 8):
find_namespace_packages()
print("Error: databricks_session does not support this version of Python.")
print("Please upgrade to Python 3.10 or higher.")
print("Please upgrade to Python 3.8 or higher.")
sys.exit(1)


Expand Down Expand Up @@ -49,7 +50,7 @@ def prepare_data_files(directory, extensions):
package_root = os.path.abspath(os.path.dirname(__file__))

version = {}
with open(os.path.join(package_root, "package.json")) as fp:
with open(os.path.join(package_root, "package.json")) as f:
version = json.loads(f.read())["version"]

readme_filename = os.path.join(package_root, "README.md")
Expand All @@ -76,19 +77,13 @@ def prepare_data_files(directory, extensions):
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules :: Databricks",
],
platforms="Posix; MacOS X; Windows",
packages=find_packages(),
data_files=data_files_structure,
namespace_packages=find_namespace_packages(),
install_requires=required,
extras_require=extras,
python_requires=">=3.10",
include_package_data=True,
python_requires=">=3.8",
include_package_data=True,
setup_requires=["setuptools", "wheel"],
tests_require=["pytest"],
python_requires=">=3.10",
nstall_requires=required,
test_suite="tests",
zip_safe=False,
url="https://github.com/Broomva/databricks_session",
Expand Down

0 comments on commit 00b7755

Please sign in to comment.