Skip to content

Commit

Permalink
Merge pull request #13 from MentorMate/development
Browse files Browse the repository at this point in the history
Release v.0.1.0
  • Loading branch information
alexandermentormate authored May 12, 2024
2 parents faa0f9a + 7b7d112 commit 8ec046c
Show file tree
Hide file tree
Showing 18 changed files with 1,979 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## code changes will send PR to the following users
* @alexandermentormate @ie-mm @divanov-mentormate @gp-mentormate
40 changes: 40 additions & 0 deletions .github/workflows/main_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 🐍 + 📦 => PyPI

on:
workflow_run:
workflows: ["Tests"]
branches: [main]
types:
- completed

jobs:

release:
runs-on: ubuntu-latest
concurrency: release

permissions:
id-token: write
contents: write

environment:
name: pypi
url: https://pypi.org/p/python-project-cli

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check for new Relase and ...release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}

- name: Publish package to PyPI if new release available
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ hashFiles('dist/') != '' }}
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://pypi.org/legacy/
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 🐍 + 📦 => TestPyPI

on:
workflow_run:
workflows: ["Tests"]
branches: [development]
types:
- completed

jobs:

release:
runs-on: ubuntu-latest
concurrency: release

permissions:
id-token: write
contents: write

environment:
name: testpypi
url: https://test.pypi.org/p/python-project-cli

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check for new Relase and ...release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}

- name: Publish package to TestPyPI if new release available
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ hashFiles('dist/') != '' }}
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
34 changes: 34 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests

on:
push:
branches:
- 'development'
- 'master'
pull_request:
branches:
- 'development'
- 'master'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
# python-version: ['3.10', '3.11', '3.12']
python-version: ['3.11']

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Test with tox
run: poetry run tox
160 changes: 160 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
fail_fast: true
repos:
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run mypy
language: system
types: [file, python]
- id: ruff_check
name: ruff check
entry: poetry run ruff check
language: system
types: [file, python]
- id: ruff_format
name: ruff format
entry: poetry run ruff format
language: system
types: [file, python]
Empty file added CHANGELOG.md
Empty file.
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
Loading

0 comments on commit 8ec046c

Please sign in to comment.