diff --git a/.gitignore b/.gitignore index 99d47c7..4167d34 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ pip-wheel-metadata/ .venv/ .vscode/ /*.iml +.ruff_cache/ # miscellaneous @@ -46,4 +47,4 @@ site/ # data artifacts data/ -jaffle-data/ \ No newline at end of file +jaffle-data/ diff --git a/dev-requirements.in b/dev-requirements.in new file mode 100644 index 0000000..9ff05cf --- /dev/null +++ b/dev-requirements.in @@ -0,0 +1,3 @@ +ruff +pytest +setuptools diff --git a/dev-requirements.txt b/dev-requirements.txt new file mode 100644 index 0000000..1d96861 --- /dev/null +++ b/dev-requirements.txt @@ -0,0 +1,11 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile dev-requirements.in -o dev-requirements.txt +iniconfig==2.0.0 + # via pytest +packaging==24.0 + # via pytest +pluggy==1.4.0 + # via pytest +pytest==8.1.1 +ruff==0.3.5 +setuptools==69.2.0 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e796253 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "jaffle-shop-generator" +version = "0.4.1" +dependencies = ["numpy", "pandas", "Faker", "typer[all]"] + +[tool.setuptools.packages.find] +exclude = ["*.tests", "*.tests.*", "tests.*", "tests"] + +[project.scripts] +jafgen = "jafgen.cli:app" + +[project.optional-dependencies] +dev = ["ruff", "pytest"] diff --git a/requirements.in b/requirements.in index 5cb6aeb..ad0e79e 100644 --- a/requirements.in +++ b/requirements.in @@ -1,7 +1,4 @@ -ruff -pytest numpy pandas Faker -setuptools typer[all] diff --git a/requirements.txt b/requirements.txt index 4ffa62a..6806946 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,22 +5,15 @@ click==8.1.7 colorama==0.4.6 # via typer faker==24.4.0 -iniconfig==2.0.0 - # via pytest markdown-it-py==3.0.0 # via rich mdurl==0.1.2 # via markdown-it-py numpy==1.26.4 # via pandas -packaging==24.0 - # via pytest pandas==2.2.1 -pluggy==1.4.0 - # via pytest pygments==2.17.2 # via rich -pytest==8.1.1 python-dateutil==2.9.0.post0 # via # faker @@ -29,8 +22,6 @@ pytz==2024.1 # via pandas rich==13.7.1 # via typer -ruff==0.3.4 -setuptools==69.2.0 shellingham==1.5.4 # via typer six==1.16.0 diff --git a/setup.py b/setup.py index 14f00a3..2cdba72 100644 --- a/setup.py +++ b/setup.py @@ -1,20 +1,12 @@ from setuptools import find_packages, setup - -def parse_requirements(filename): - """Load requirements from a pip requirements file.""" - lineiter = (line.strip() for line in open(filename)) - return [line for line in lineiter if line and not line.startswith("#")] - - -requirements = parse_requirements("requirements.in") setup( name="jaffle-shop-generator", - version="0.4.0", + version="0.4.1", packages=find_packages( exclude=["*.tests", "*.tests.*", "tests.*", "tests"], ), package_dir={"jafgen": "jafgen"}, entry_points={"console_scripts": ["jafgen = jafgen.cli:app"]}, - install_requires=requirements, + install_requires=["numpy", "pandas", "Faker", "typer[all]"], )