diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..bb1d1c2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[build-system] +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" + +[project] +name = "tqdm_publisher" +version="0.1.0" +authors = [ + { name="Garrett Flynn", email="garrett.flynn@catalystneuro.com" }, + { name="Cody Baker", email="cody.baker@catalystneuro.com" }, +] +description = "Extends the base tqdm progress bar with a subscribe method that can expose updates to external (potentially non-Python) processes." +readme = "README.md" +requires-python = ">=3.8" +license = {file = "license.txt"} + +keywords = ["tqdm", "progressbar", "progressmeter", "progress", "bar", "meter", "time", "pubsub", "publish-subscribe pattern"] + +classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "License :: OSI Approved :: BSD License", + "Intended Audience :: Developers", + "Operating System :: Microsoft :: Windows", + "Operating System :: MacOS", + "Operating System :: Unix", +] +dependencies = [ + 'tqdm>=4.49.0' +] + +[project.urls] +"Homepage" = "https://github.com/catalystneuro/tqdm_publisher" +"Bug Tracker" = "https://github.com/catalystneuro/tqdm_publisher/issues" + +[tool.hatch.version] +source = "vcs" \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index a325410..0000000 --- a/setup.py +++ /dev/null @@ -1,28 +0,0 @@ -from pathlib import Path - -from setuptools import find_packages, setup - -root = Path(__file__).parent - -with open(root / "README.md") as f: - long_description = f.read() -with open(root / "requirements.txt") as f: - install_requires = f.readlines() - -setup( - name="tqdm-publisher", - version="0.1.0", - description="Subscribe to TQDM progress bars with arbitrary functions.", - long_description=long_description, - long_description_content_type="text/markdown", - author="Garrett Flynn and Cody Baker", - author_email="garrett.flynn@catalystneuro.com", - url="https://github.com/catalystneuro/tqdm-publisher", - keywords="tqdm", - license_files=("license.txt",), - packages=find_packages(where="src"), - package_dir={"": "src"}, - python_requires=">=3.8", - install_requires=install_requires, - license="BSD-3-Clause", -)