Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Python dependencies #140

Merged
merged 7 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add Makefile for compiling Python requirements
  • Loading branch information
replaceafill committed Nov 22, 2023
commit 8e4283b630b0c9ad8b29fad6526e924e65248f18
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DEFAULT_GOAL := help

.PHONY: pip-compile pip-upgrade

pip-compile: ## Compile pip requirements
pip-compile --allow-unsafe --output-file=requirements.txt requirements.in
pip-compile --allow-unsafe --output-file=requirements-dev.txt requirements-dev.in

pip-upgrade: ## Upgrade pip requirements
pip-compile --allow-unsafe --upgrade --output-file=requirements.txt requirements.in
pip-compile --allow-unsafe --upgrade --output-file=requirements-dev.txt requirements-dev.in

help: ## Print this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
3 changes: 3 additions & 0 deletions requirements-dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r requirements.txt
pytest
pytest-cov
64 changes: 61 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
-r requirements.txt
pytest==7.0.1
pytest-cov==4.0.0
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --output-file=requirements-dev.txt requirements-dev.in
#
amclient==1.3.0
# via -r requirements.txt
certifi==2023.11.17
# via
# -r requirements.txt
# requests
charset-normalizer==3.3.2
# via
# -r requirements.txt
# requests
coverage[toml]==7.3.2
# via pytest-cov
exceptiongroup==1.2.0
# via pytest
greenlet==3.0.1
# via
# -r requirements.txt
# sqlalchemy
idna==3.4
# via
# -r requirements.txt
# requests
iniconfig==2.0.0
# via pytest
lxml==4.9.3
# via
# -r requirements.txt
# metsrw
metsrw==0.5.0
# via -r requirements.txt
packaging==23.2
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.3
# via
# -r requirements-dev.in
# pytest-cov
pytest-cov==4.1.0
# via -r requirements-dev.in
requests==2.31.0
# via
# -r requirements.txt
# amclient
sqlalchemy==1.4.50
# via -r requirements.txt
tomli==2.0.1
# via
# coverage
# pytest
urllib3==2.1.0
# via
# -r requirements.txt
# amclient
# requests
5 changes: 5 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
amclient
metsrw
requests
sqlalchemy<2
urllib3
34 changes: 30 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
amclient==1.2.3
metsrw==0.4.0
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --output-file=requirements.txt requirements.in
#
amclient==1.3.0
# via -r requirements.in
certifi==2023.11.17
# via requests
charset-normalizer==3.3.2
# via requests
greenlet==3.0.1
# via sqlalchemy
idna==3.4
# via requests
lxml==4.9.3
# via metsrw
metsrw==0.5.0
# via -r requirements.in
requests==2.31.0
sqlalchemy==1.4.49
urllib3==1.26.18
# via
# -r requirements.in
# amclient
sqlalchemy==1.4.50
# via -r requirements.in
urllib3==2.1.0
# via
# -r requirements.in
# amclient
# requests
Loading