From d0a4b4509ea4e4bf4098d1618acc19ff73711990 Mon Sep 17 00:00:00 2001 From: Andreas Wicenec Date: Mon, 19 Feb 2024 17:29:16 +0800 Subject: [PATCH] Switch to poetry --- pyproject.toml | 8 ++++---- requirements-test.txt | 11 ----------- requirements.txt | 2 -- setup.py | 46 ------------------------------------------- 4 files changed, 4 insertions(+), 63 deletions(-) delete mode 100644 requirements-test.txt delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index b9b6a4f8..75fdfa43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [tool.poetry] -name = "a-flask-test" +name = "wallaby-hires" version = "0.1.0" description = "" -authors = ["ICRAR"] +authors = ["awicenec", "gayatri"] readme = "README.md" -packages = [{include = "a_flask_test"}] +packages = [] [tool.poetry.dependencies] -python = "^3.10" +python = "^3.11" [build-system] diff --git a/requirements-test.txt b/requirements-test.txt deleted file mode 100644 index fc6c4c10..00000000 --- a/requirements-test.txt +++ /dev/null @@ -1,11 +0,0 @@ -# This requirements are for development and testing only, not for production. -pytest -coverage -flake8 -black -isort -pytest-cov -codecov -mypy -gitchangelog -mkdocs diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index aba0caf1..00000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -daliuge-engine>=2.0 -daliuge-translator>=2.0 diff --git a/setup.py b/setup.py deleted file mode 100644 index d083cad7..00000000 --- a/setup.py +++ /dev/null @@ -1,46 +0,0 @@ -"""Python setup.py for wallaby_hires package""" -import io -import os -from setuptools import find_packages, setup - - -def read(*paths, **kwargs): - """Read the contents of a text file safely. - >>> read("wallaby_hires", "VERSION") - '0.1.0' - >>> read("README.md") - ... - """ - - content = "" - with io.open( - os.path.join(os.path.dirname(__file__), *paths), - encoding=kwargs.get("encoding", "utf8"), - ) as open_file: - content = open_file.read().strip() - return content - - -def read_requirements(path): - return [ - line.strip() - for line in read(path).split("\n") - if not line.startswith(('"', "#", "-", "git+")) - ] - - -setup( - name="wallaby_hires", - version=read("wallaby_hires", "VERSION"), - description="Awesome wallaby_hires created by ICRAR", - url="https://github.com/ICRAR/wallaby-hires/", - long_description=read("README.md"), - long_description_content_type="text/markdown", - author="ICRAR", - packages=find_packages(exclude=["tests", ".github"]), - install_requires=read_requirements("requirements.txt"), - entry_points={ - "console_scripts": ["wallaby_hires = wallaby_hires.__main__:main"] - }, - extras_require={"test": read_requirements("requirements-test.txt")}, -)