https://github.com/rggh/sport
Demo for Actions and Poetry
https://github.com/rggh/sport
automation bash poetry pytest python
Last synced: about 1 month ago
JSON representation
Demo for Actions and Poetry
- Host: GitHub
- URL: https://github.com/rggh/sport
- Owner: RGGH
- Created: 2022-05-18T15:08:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-26T21:44:36.000Z (about 4 years ago)
- Last Synced: 2025-03-28T01:55:26.560Z (about 1 year ago)
- Topics: automation, bash, poetry, pytest, python
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sport
[](https://github.com/RGGH/sport/actions/workflows/python-app.yml)
## Example project structure created with "Poetry"
---
###
-Automate GitHub actions
-Create standard project structure
-Run pytest on every push
---
$ poetry new --src sport
# change to lower dir that contains pyproject.toml then start virtual env
$ poetry shell
$ poetry env list
$ poetry add requests
$ poetry export --output requirements.txt

https://realpython.com/pypi-publish-python-package/#poetry
https://python-poetry.org/
### Bash script to automate :
#!/bin/bash
echo "Give a directory name to create:"
read NEW_DIR
ORIG_DIR=$(pwd)
[[ -d $NEW_DIR ]] && echo $NEW_DIR already exists, aborting && exit
mkdir $NEW_DIR
echo "new directory made ${pwd}"
cd $NEW_DIR
poetry new app
cd app
poetry shell
code .