Skip to content

Commit

Permalink
Add pyproject.toml with discrete deps listed
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenwindflower committed Apr 7, 2024
1 parent f985486 commit 4737d48
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pip-wheel-metadata/
.venv/
.vscode/
/*.iml
.ruff_cache/

# miscellaneous

Expand Down Expand Up @@ -46,4 +47,4 @@ site/
# data artifacts

data/
jaffle-data/
jaffle-data/
3 changes: 3 additions & 0 deletions dev-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ruff
pytest
setuptools
11 changes: 11 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]
3 changes: 0 additions & 3 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
ruff
pytest
numpy
pandas
Faker
setuptools
typer[all]
9 changes: 0 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 2 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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]"],
)

0 comments on commit 4737d48

Please sign in to comment.