diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..70b68663 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +requires = ["setuptools >= 77.0.3"] +build-backend = "setuptools.build_meta" + +[project] +name = "scratchattach" +version = "2.1.13" +authors = [{name = "TimMcCool"}] +description = "A Scratch API Wrapper" +requires-python = ">= 3.12" +dependencies = [ + "websocket-client", + "requests", + "bs4", + "SimpleWebSocketServer", + "typing-extensions", + "browser_cookie3", + "aiohttp", + "rich" +] +readme = "README.md" +license = "MIT" +license-files = ["LICENSE"] +keywords = ["scratch api", "scratchattach", "scratch api python", "scratch python", "scratch for python", "scratch", "scratch cloud", "scratch cloud variables", "scratch bot"] +classifiers=[ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "Operating System :: Unix", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", +] + +[project.urls] +Source = "https://github.com/timmccool/scratchattach" +Homepage = "https://scratchattach.tim1de.net" + +[project.entry-points."console_scripts"] +scratch = "scratchattach.__main__:main" + +[project.optional-dependencies] +cli = ["rich-pixels"] +lark = ["lark"] + +[tool.setuptools.packages] +find = {include = ["scratchattach"]} diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5bf0c0cc..00000000 --- a/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -websocket-client -requests -bs4 -SimpleWebSocketServer -typing-extensions -browser_cookie3 -aiohttp -rich -# install rich-pixels if you want CLI image support. This is an optional dependency. diff --git a/setup.py b/setup.py deleted file mode 100644 index 5b480908..00000000 --- a/setup.py +++ /dev/null @@ -1,46 +0,0 @@ -from setuptools import setup, find_packages -import codecs -import os - -VERSION = '2.1.13' # consider updating the CLI version number too -DESCRIPTION = 'A Scratch API Wrapper' -with open('README.md', encoding='utf-8') as f: - LONG_DESCRIPTION = f.read() - -with open('requirements.txt', encoding='utf-8') as f: - requirements = f.read().strip().splitlines() - -# Setting up -setup( - name="scratchattach", - version=VERSION, - author="TimMcCool", - author_email="", - description=DESCRIPTION, - long_description_content_type="text/markdown", - long_description=LONG_DESCRIPTION, - packages=find_packages(), - python_requires='>=3.12', - install_requires=requirements, - entry_points={ - 'console_scripts': [ - "scratch=scratchattach.__main__:main" - ] - }, - extras_require={ - "lark": ["lark"] - }, - keywords=['scratch api', 'scratchattach', 'scratch api python', 'scratch python', 'scratch for python', 'scratch', 'scratch cloud', 'scratch cloud variables', 'scratch bot'], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "Programming Language :: Python :: 3", - "Operating System :: Unix", - "Operating System :: MacOS :: MacOS X", - "Operating System :: Microsoft :: Windows", - ], - project_urls={ - "Source": "https://github.com/timmccool/scratchattach", - "Homepage": 'https://scratchattach.tim1de.net' - } -)