This is an automated email from the ASF dual-hosted git repository.

skrawcz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hamilton.git

commit 2938631e854d9e869069a61ea0258100f2d8996b
Author: Stefan Krawczyk <[email protected]>
AuthorDate: Sat Feb 21 17:47:52 2026 -0800

    Remove obsolete setup.py and setup.cfg files
    
    All packages now use pyproject.toml with flit:
    - Removed ui/sdk/setup.py (configuration moved to ui/sdk/pyproject.toml)
    - Removed ui/backend/setup.py (configuration moved to 
ui/backend/pyproject.toml)
    - Removed contrib/setup.py (configuration moved to contrib/pyproject.toml)
    - Removed contrib/setup.cfg (flake8/isort config obsolete, now using ruff)
    
    All package metadata (dependencies, entry points, extras) has been 
preserved in the new pyproject.toml files.
---
 contrib/setup.cfg   |  18 ---------
 contrib/setup.py    | 103 ----------------------------------------------------
 ui/backend/setup.py |  72 ------------------------------------
 ui/sdk/setup.py     |  25 -------------
 4 files changed, 218 deletions(-)

diff --git a/contrib/setup.cfg b/contrib/setup.cfg
deleted file mode 100644
index bc5f20b6..00000000
--- a/contrib/setup.cfg
+++ /dev/null
@@ -1,18 +0,0 @@
-[flake8]
-max-line-length = 100
-exclude = build/,.git/,venv/
-ignore =
-    # whitespace before ':'
-    E203,
-    # module level import not at top of file
-    E402,
-    # line too long
-    E501,
-    # line break before binary operator
-    W503,
-    # invalid escape sequence
-    W605
-
-[isort]
-known_first_party=hamilton
-known_local_folder=tests
diff --git a/contrib/setup.py b/contrib/setup.py
deleted file mode 100644
index ae5bf018..00000000
--- a/contrib/setup.py
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/usr/bin/env python
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# -*- coding: utf-8 -*-
-
-import warnings
-
-"""The setup script."""
-
-from setuptools import find_packages, setup
-
-# don't fail if there are problems with the readme (happens within circleci)
-try:
-    with open("README.md") as readme_file:
-        readme = readme_file.read()
-except FileNotFoundError:
-    warnings.warn("README.md not found")  # noqa
-    readme = None
-
-REQUIREMENTS_FILES = ["requirements.txt"]
-
-
-def get_version():
-    version_dict = {}
-    with open("hamilton/contrib/version.py") as f:
-        exec(f.read(), version_dict)
-    return ".".join(map(str, version_dict["VERSION"]))
-
-
-VERSION = get_version()
-
-
-def load_requirements():
-    requirements = set()
-    for requirement_file in REQUIREMENTS_FILES:
-        with open(requirement_file) as f:
-            requirements.update(line.strip() for line in f)
-    return list(requirements)
-
-
-setup(
-    name="sf-hamilton-contrib",  # there's already a hamilton in pypi, so 
keeping sf- prefix
-    version=VERSION,
-    description="Hamilton's user contributed shared dataflow library.",
-    long_description=readme,
-    long_description_content_type="text/markdown",
-    author="Stefan Krawczyk, Elijah ben Izzy",
-    author_email="[email protected],[email protected]",
-    url="https://github.com/apache/hamilton/contrib";,
-    # packages=find_namespace_packages(include=["hamilton.*"], 
exclude=["tests"]),
-    packages=find_packages(exclude=["tests"]),
-    include_package_data=True,
-    install_requires=load_requirements(),
-    zip_safe=False,
-    keywords="hamilton,collaborative,shared,dataflow,library,contrib",
-    classifiers=[
-        "Development Status :: 5 - Production/Stable",
-        "Intended Audience :: Developers",
-        "Natural Language :: English",
-        "License :: OSI Approved :: Apache Software License",
-        "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.10",
-        "Programming Language :: Python :: 3.11",
-        "Programming Language :: Python :: 3.12",
-        "Programming Language :: Python :: 3.13",
-        "Programming Language :: Python :: 3.14",
-    ],
-    # Note that this feature requires pep8 >= v9 and a version of setup tools 
greater than the
-    # default version installed with virtualenv. Make sure to update your 
tools!
-    python_requires=">=3.10, <4",
-    # adding this to slim the package down, since these dependencies are only 
used in certain contexts.
-    extras_require={
-        "visualization": ["sf-hamilton[visualization]"],
-        "contribute": ["click>8.0.0", "gitpython"],
-    },
-    # Relevant project URLs
-    project_urls={  # Optional
-        "Bug Reports": "https://github.com/apache/hamilton/issues";,
-        "Source": "https://github.com/apache/hamilton/contrib";,
-    },
-    # Useful scripts
-    entry_points={
-        "console_scripts": [
-            "init-dataflow = hamilton.contribute:initialize",
-        ]
-    },
-)
diff --git a/ui/backend/setup.py b/ui/backend/setup.py
deleted file mode 100644
index 5b4130b7..00000000
--- a/ui/backend/setup.py
+++ /dev/null
@@ -1,72 +0,0 @@
-# /usr/bin/env python
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# -*- coding: utf-8 -*-
-
-"""The setup script."""
-
-from setuptools import find_packages, setup
-
-REQUIREMENTS_FILES = ["requirements.txt"]
-
-
-def load_requirements():
-    # TODO -- confirm below works/delete this
-    requirements = {"click", "loguru", "requests", "typer"}
-    with open("hamilton_ui/requirements-mini.txt") as f:
-        requirements.update(line.strip() for line in f)
-    return list(requirements)
-
-
-setup(
-    name="sf-hamilton-ui",  # there's already a hamilton in pypi
-    version="0.0.17",
-    description="Hamilton, the micro-framework for creating dataframes.",
-    long_description="""Hamilton tracking server, see [the docs for 
more](https://github.com/apache/hamilton/tree/main/ui/)""",
-    long_description_content_type="text/markdown",
-    author="Stefan Krawczyk, Elijah ben Izzy",
-    author_email="[email protected],[email protected]",
-    url="https://github.com/apache/hamilton";,
-    packages=find_packages(exclude=["tests"], include=["hamilton_ui", 
"hamilton_ui.*"]),
-    include_package_data=True,
-    install_requires=load_requirements(),
-    zip_safe=False,
-    keywords="hamilton",
-    classifiers=[
-        "Development Status :: 5 - Production/Stable",
-        "Intended Audience :: Developers",
-        "Natural Language :: English",
-        "License :: OSI Approved :: Apache Software License",
-        "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.10",
-        "Programming Language :: Python :: 3.11",
-        "Programming Language :: Python :: 3.12",
-        "Programming Language :: Python :: 3.13",
-        "Programming Language :: Python :: 3.14",
-    ],
-    # Note that this feature requires pep8 >= v9 and a version of setup tools 
greater than the
-    # default version installed with virtualenv. Make sure to update your 
tools!
-    python_requires=">=3.10, <4",
-    # adding this to slim the package down, since these dependencies are only 
used in certain contexts.
-    # Relevant project URLs
-    project_urls={  # Optional
-        "Bug Reports": "https://github.com/apache/hamilton/issues";,
-        "Source": "https://github.com/apache/hamilton";,
-    },
-)
diff --git a/ui/sdk/setup.py b/ui/sdk/setup.py
deleted file mode 100644
index ed136327..00000000
--- a/ui/sdk/setup.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# -*- coding: utf-8 -*-
-
-from setuptools import setup
-
-if __name__ == "__main__":
-    setup()

Reply via email to