-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pypi-template upgrade + redesign env mgmt
- Loading branch information
1 parent
2550abc
commit 35bef70
Showing
9 changed files
with
76 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,3 @@ sphinx: | |
python: | ||
install: | ||
- requirements: requirements.txt | ||
- requirements: requirements.local.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
requirements.local.txt: | ||
pip freeze > req.local.txt | ||
cat requirements.txt | cut -d"=" -f1 > req.txt | ||
grep -f req.txt -v req.local.txt > $@ | ||
rm req.local.txt req.txt | ||
run: env-demo | ||
gunicorn -k eventlet -w 1 baseweb-demo:server | ||
|
||
.PHONY: requirements.local.txt | ||
env-%: local-env-% clean-env | ||
pip install -r requirements.$*.txt | ||
|
||
clean-requirements: | ||
pip freeze | cut -d'=' -f1 | xargs pip uninstall -y | ||
pip install -r requirements.txt | ||
pip install -r requirements.base.txt | ||
local-env-%: | ||
pyenv local baseweb-$* | ||
|
||
run: | ||
gunicorn -k eventlet -w 1 baseweb-demo:server | ||
clean-env: | ||
pip freeze | cut -d"@" -f1 | cut -d'=' -f1 | xargs pip uninstall -y | ||
|
||
pypi: | ||
pyenv local baseweb | ||
|
||
test-docs: env-docs docs | ||
|
||
test-test: env-test test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,10 @@ | ||
aniso8601==9.0.1 | ||
Authlib==1.2.1 | ||
bidict==0.22.1 | ||
blinker==1.7.0 | ||
cffi==1.16.0 | ||
click==8.1.7 | ||
cryptography==41.0.5 | ||
dnspython==2.4.2 | ||
dotmap==1.3.30 | ||
eventlet==0.33.3 | ||
Flask==3.0.0 | ||
Flask-Cors==4.0.0 | ||
Flask-RESTful==0.3.10 | ||
Flask-SocketIO==5.3.6 | ||
greenlet==3.0.1 | ||
gunicorn==21.2.0 | ||
h11==0.14.0 | ||
itsdangerous==2.1.2 | ||
oatk==0.0.11 | ||
pycparser==2.21 | ||
pyfiglet==0.8.post1 | ||
PyJWT==2.8.0 | ||
pymongo==4.6.0 | ||
pypi-template==0.4.6 | ||
python-dotenv==1.0.0 | ||
python-engineio==4.8.0 | ||
python-socketio==5.10.0 | ||
simple-websocket==1.0.0 | ||
websocket-client==1.6.4 | ||
Werkzeug==3.0.1 | ||
wsproto==1.2.0 | ||
# baseweb | ||
Flask | ||
Flask-RESTful | ||
Flask-SocketIO | ||
python-dotenv | ||
websocket-client | ||
python-engineio | ||
python-socketio | ||
dotmap | ||
pyfiglet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# baseweb | ||
Flask | ||
Flask-RESTful | ||
Flask-SocketIO | ||
python-dotenv | ||
websocket-client | ||
python-engineio | ||
python-socketio | ||
dotmap | ||
pyfiglet | ||
|
||
# testing | ||
pytest | ||
tox | ||
coverage | ||
ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
alabaster==0.7.13 | ||
astroid==2.15.6 | ||
Babel==2.13.1 | ||
astroid==3.0.2 | ||
Babel==2.14.0 | ||
cachetools==5.3.2 | ||
certifi==2023.7.22 | ||
certifi==2023.11.17 | ||
chardet==5.2.0 | ||
charset-normalizer==3.3.2 | ||
colorama==0.4.6 | ||
coverage==7.3.2 | ||
distlib==0.3.7 | ||
coverage==7.4.0 | ||
distlib==0.3.8 | ||
docopt==0.6.2 | ||
docutils==0.18.1 | ||
exceptiongroup==1.1.3 | ||
docutils==0.20.1 | ||
exceptiongroup==1.2.0 | ||
filelock==3.13.1 | ||
fire==0.5.0 | ||
idna==3.4 | ||
idna==3.6 | ||
imagesize==1.4.1 | ||
importlib-metadata==6.8.0 | ||
importlib-metadata==7.0.1 | ||
importlib-resources==6.1.1 | ||
iniconfig==2.0.0 | ||
jaraco.classes==3.3.0 | ||
Jinja2==3.1.2 | ||
keyring==24.2.0 | ||
lazy-object-proxy==1.9.0 | ||
Jinja2==3.1.3 | ||
keyring==24.3.0 | ||
lazy-object-proxy==1.10.0 | ||
markdown-it-py==3.0.0 | ||
MarkupSafe==2.1.3 | ||
mdit-py-plugins==0.4.0 | ||
mdurl==0.1.2 | ||
more-itertools==10.1.0 | ||
more-itertools==10.2.0 | ||
myst-parser==2.0.0 | ||
nh3==0.2.14 | ||
nh3==0.2.15 | ||
packaging==23.2 | ||
pkginfo==1.9.6 | ||
platformdirs==3.11.0 | ||
platformdirs==4.1.0 | ||
pluggy==1.3.0 | ||
prompt-toolkit==3.0.40 | ||
Pygments==2.16.1 | ||
prompt-toolkit==3.0.43 | ||
Pygments==2.17.2 | ||
pyproject-api==1.6.1 | ||
pytest==7.4.3 | ||
pytest==7.4.4 | ||
pytz==2023.3.post1 | ||
PyYAML==6.0.1 | ||
readme-renderer==42.0 | ||
requests==2.31.0 | ||
requests-toolbelt==1.0.0 | ||
rfc3986==2.0.0 | ||
rich==13.6.0 | ||
ruff==0.1.5 | ||
rich==13.7.0 | ||
ruff==0.1.13 | ||
six==1.16.0 | ||
snowballstemmer==2.2.0 | ||
Sphinx==7.1.2 | ||
sphinx-autodoc2==0.4.2 | ||
sphinx-rtd-theme==1.3.0 | ||
sphinx-autodoc2==0.5.0 | ||
sphinx-rtd-theme==2.0.0 | ||
sphinxcontrib-applehelp==1.0.4 | ||
sphinxcontrib-devhelp==1.0.2 | ||
sphinxcontrib-htmlhelp==2.0.1 | ||
sphinxcontrib-jquery==4.1 | ||
sphinxcontrib-jsmath==1.0.1 | ||
sphinxcontrib-qthelp==1.0.3 | ||
sphinxcontrib-serializinghtml==1.1.5 | ||
termcolor==2.3.0 | ||
termcolor==2.4.0 | ||
tomli==2.0.1 | ||
tox==4.11.3 | ||
tox==4.12.0 | ||
twine==4.0.2 | ||
typing_extensions==4.8.0 | ||
urllib3==2.0.7 | ||
virtualenv==20.24.6 | ||
wcwidth==0.2.9 | ||
typing_extensions==4.9.0 | ||
urllib3==2.1.0 | ||
virtualenv==20.25.0 | ||
wcwidth==0.2.13 | ||
wrapt==1.16.0 | ||
zipp==3.17.0 |