diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index b5f8486..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,2 +0,0 @@ -include requirements.txt -include card_recognizer/reference/data/ref_build/*.pkl \ No newline at end of file diff --git a/conda.yaml b/conda.yaml index 5016010..a378d85 100644 --- a/conda.yaml +++ b/conda.yaml @@ -2,8 +2,5 @@ name: pogo_video_analysis_env channels: - defaults dependencies: - - python=3.9.16 - pip: - ocr-ops - - ezplotly - - nose2 \ No newline at end of file diff --git a/makefile b/makefile index 1415477..338f790 100644 --- a/makefile +++ b/makefile @@ -3,13 +3,13 @@ conda_dev: conda env create -f conda.yaml build: - python setup.py sdist bdist_wheel + hatch build -deploy: - twine upload dist/* +publish: + hatch publish clean: - rm -rf build dist *.egg-info + rm -rf dist rm -rf .pytest_cache rm -rf test_op_output rm -rf test_output \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 9c86a15..5b3c784 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,36 @@ [build-system] -requires = [ - "setuptools>=42", - "wheel", - "ocr-ops", - "ezplotly", +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "pokemon-go-video-analysis" +version = "0.0.0.0.5.4" +authors = [ + { name="Prateek Tandon", email="prateek1.tandon@gmail.com" }, ] -build-backend = "setuptools.build_meta" \ No newline at end of file +description = "Pokemon Go Video Analysis" +readme = "README.md" +requires-python = ">=3.11.4" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +dependencies = [ + "algo-ops", + "easyocr", + "pytesseract", + "pyspellchecker", + "shapely", + "Pillow==9.5.0", +] + +[tool.hatch.build.targets.sdist] +exclude = [ + "/.github", + "/.gitignore", +] + +[project.urls] +"Homepage" = "https://github.com/prateekt/pokemon-go-video-analysis" +"Bug Tracker" = "https://github.com/prateekt/pokemon-go-video-analysis/issues" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 4a7462b..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -ocr-ops -ezplotly -nose2 \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 85e6dd5..0000000 --- a/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import setuptools - -with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() -with open("requirements.txt") as f: - required = f.read().splitlines() - -setuptools.setup( - name="pokemon-go-video-analysis", - version="0.0.0.0.5.3", - author="Prateek Tandon", - author_email="prateek1.tandon@gmail.com", - description="Pokemon Go Video Analysis", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/prateekt/pokemon-go-video-analysis", - packages=setuptools.find_packages(), - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], - python_requires=">=3.9.7", - install_requires=required, -)