Skip to content

Commit

Permalink
Make base reqs unfrozen and exclude test reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
calebsyring committed Jun 13, 2024
1 parent 8d62a00 commit 333d361
Show file tree
Hide file tree
Showing 8 changed files with 313 additions and 233 deletions.
2 changes: 1 addition & 1 deletion hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dev-mode-dirs = ['src']

## Dependencies
[metadata.hooks.requirements_txt]
files = ['requirements/base.txt']
files = ['requirements/base.in']

[metadata.hooks.requirements_txt.optional-dependencies]
dev = ['requirements/dev.txt']
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@nox.session
def tests(session: nox.Session):
session.install('-r', 'requirements/base.txt')
session.install('-r', 'requirements/test.txt')
session.install('e', '.')
session.run(
'pytest',
Expand Down
9 changes: 0 additions & 9 deletions requirements/base.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
# From copier-py-package (keep comment for easier copier upgrades)
pytest
pytest-cov

# App specific (ditto)
BlazeUtils
SQLAlchemy
openpyxl
wrapt
xlrd<2
XlsxWriter
207 changes: 1 addition & 206 deletions requirements/base.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion requirements/dev.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r base.txt
-r test.txt

# From copier-py-package (keep comment for easier copier upgrades)
click
Expand Down
30 changes: 15 additions & 15 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ argcomplete==3.3.0 \
blazeutils==0.7.0 \
--hash=sha256:3ce3f95f44a171443f9fef69bbccc159954f7cdb83ed3aebfe97f7ea1a52eb88 \
--hash=sha256:5075f2f277e0c5f11ad18cfc03493385811fc99a4cbceb23c9eeb3699b5d5979
# via -r requirements/base.txt
# via -r requirements/test.txt
certifi==2024.6.2 \
--hash=sha256:3cd43f1c6fa7dedc5899d69d3ad0398fd018ad1a17fba83ddaf78aa46c747516 \
--hash=sha256:ddc6c8ce995e6987e7faf5e3f1b02b302836a0e5d98ece18392cb1a36c72ad56
Expand Down Expand Up @@ -139,7 +139,7 @@ coverage==7.5.3 \
--hash=sha256:fcf7d1d6f5da887ca04302db8e0e0cf56ce9a5e05f202720e49b3e8157ddb9a9 \
--hash=sha256:fd27d8b49e574e50caa65196d908f80e4dff64d7e592d0c59788b45aad7e8b35
# via
# -r requirements/base.txt
# -r requirements/test.txt
# pytest-cov
cryptography==42.0.8 \
--hash=sha256:013629ae70b40af70c9a7a5db40abe5d9054e6f4380e50ce769947b73bf3caad \
Expand Down Expand Up @@ -183,7 +183,7 @@ et-xmlfile==1.1.0 \
--hash=sha256:8eb9e2bc2f8c97e37a2dc85a09ecdcdec9d8a396530a6d5a33b30b9a92da0c5c \
--hash=sha256:a2ba85d1d6a74ef63837eed693bcb89c3f752169b0e3e7ae5b16ca5e1b3deada
# via
# -r requirements/base.txt
# -r requirements/test.txt
# openpyxl
filelock==3.15.1 \
--hash=sha256:58a2549afdf9e02e10720eaa4d4470f56386d7a6f72edd7d0596337af8ed7ad8 \
Expand Down Expand Up @@ -249,7 +249,7 @@ greenlet==3.0.3 \
--hash=sha256:fd096eb7ffef17c456cfa587523c5f92321ae02427ff955bebe9e3c63bc9f0da \
--hash=sha256:fe754d231288e1e64323cfad462fcee8f0288654c10bdf4f603a39ed923bef33
# via
# -r requirements/base.txt
# -r requirements/test.txt
# sqlalchemy
h11==0.14.0 \
--hash=sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d \
Expand Down Expand Up @@ -290,7 +290,7 @@ iniconfig==2.0.0 \
--hash=sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 \
--hash=sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374
# via
# -r requirements/base.txt
# -r requirements/test.txt
# pytest
jaraco-classes==3.4.0 \
--hash=sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd \
Expand Down Expand Up @@ -339,12 +339,12 @@ nox==2024.4.15 \
openpyxl==3.1.4 \
--hash=sha256:8d2c8adf5d20d6ce8f9bca381df86b534835e974ed0156dacefa76f68c1d69fb \
--hash=sha256:ec17f6483f2b8f7c88c57e5e5d3b0de0e3fb9ac70edc084d28e864f5b33bbefd
# via -r requirements/base.txt
# via -r requirements/test.txt
packaging==24.1 \
--hash=sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002 \
--hash=sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124
# via
# -r requirements/base.txt
# -r requirements/test.txt
# hatch
# hatchling
# nox
Expand All @@ -367,7 +367,7 @@ pluggy==1.5.0 \
--hash=sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1 \
--hash=sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669
# via
# -r requirements/base.txt
# -r requirements/test.txt
# hatchling
# pytest
pre-commit==3.7.1 \
Expand All @@ -390,12 +390,12 @@ pytest==8.2.2 \
--hash=sha256:c434598117762e2bd304e526244f67bf66bbd7b5d6cf22138be51ff661980343 \
--hash=sha256:de4bb8104e201939ccdc688b27a89a7be2079b22e2bd2b07f806b6ba71117977
# via
# -r requirements/base.txt
# -r requirements/test.txt
# pytest-cov
pytest-cov==5.0.0 \
--hash=sha256:4f0764a1219df53214206bf1feea4633c3b558a2925c8b59f144f682861ce652 \
--hash=sha256:5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857
# via -r requirements/base.txt
# via -r requirements/test.txt
pyyaml==6.0.1 \
--hash=sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5 \
--hash=sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc \
Expand Down Expand Up @@ -536,7 +536,7 @@ sqlalchemy==2.0.30 \
--hash=sha256:f69e4c756ee2686767eb80f94c0125c8b0a0b87ede03eacc5c8ae3b54b99dc46 \
--hash=sha256:f7703c2010355dd28f53deb644a05fc30f796bd8598b43f0ba678878780b6e4c \
--hash=sha256:fa561138a64f949f3e889eb9ab8c58e1504ab351d6cf55259dc4c248eaa19da6
# via -r requirements/base.txt
# via -r requirements/test.txt
tomli-w==1.0.0 \
--hash=sha256:9f2a07e8be30a0729e533ec968016807069991ae2fd921a78d42f429ae5f4463 \
--hash=sha256:f463434305e0336248cac9c2dc8076b707d8a12d019dd349f5c1e382dd1ae1b9
Expand All @@ -553,7 +553,7 @@ typing-extensions==4.12.2 \
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
# via
# -r requirements/base.txt
# -r requirements/test.txt
# sqlalchemy
userpath==1.9.2 \
--hash=sha256:2cbf01a23d655a1ff8fc166dfb78da1b641d1ceabf0fe5f970767d380b14e89d \
Expand Down Expand Up @@ -660,16 +660,16 @@ wrapt==1.16.0 \
--hash=sha256:f8212564d49c50eb4565e502814f694e240c55551a5f1bc841d4fcaabb0a9b8a \
--hash=sha256:ffa565331890b90056c01db69c0fe634a776f8019c143a5ae265f9c6bc4bd6d4
# via
# -r requirements/base.txt
# -r requirements/test.txt
# blazeutils
xlrd==1.2.0 \
--hash=sha256:546eb36cee8db40c3eaa46c351e67ffee6eeb5fa2650b71bc4c758a29a1b29b2 \
--hash=sha256:e551fb498759fa3a5384a94ccd4c3c02eb7c00ea424426e212ac0c57be9dfbde
# via -r requirements/base.txt
# via -r requirements/test.txt
xlsxwriter==3.2.0 \
--hash=sha256:9977d0c661a72866a61f9f7a809e25ebbb0fb7036baa3b9fe74afcfca6b3cb8c \
--hash=sha256:ecfd5405b3e0e228219bcaf24c2ca0915e012ca9464a14048021d21a995d490e
# via -r requirements/base.txt
# via -r requirements/test.txt
zstandard==0.22.0 \
--hash=sha256:11f0d1aab9516a497137b41e3d3ed4bbf7b2ee2abc79e5c8b010ad286d7464bd \
--hash=sha256:1958100b8a1cc3f27fa21071a55cb2ed32e9e5df4c3c6e661c193437f171cba2 \
Expand Down
8 changes: 8 additions & 0 deletions requirements/test.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-r base.txt

SQLAlchemy
openpyxl
pytest
pytest-cov
wrapt
xlrd<2
Loading

0 comments on commit 333d361

Please sign in to comment.