Skip to content

Commit

Permalink
chore: remove poetry lockfile (#18)
Browse files Browse the repository at this point in the history
- fixes [#17](#17)
- poetry lockfile no longer in VCS
- pin dev-dependencies (to the version that was used in lockfile)
-  gitignore more 
- bump poetry version that is used in CI, to fix poetry issues ...
  • Loading branch information
jkowalleck authored Sep 27, 2023
1 parent 9bc4abc commit 4b20d44
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 707 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/manual-release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,21 @@ name: Manual Pre Release Publish
on:
workflow_dispatch:

concurrency:
group: release
cancel-in-progress: true

env:
REPORTS_DIR: CI_reports
DIST_DIR: dist
DIST_ARTIFACT: python-dist
PYTHON_SEMANTIC_RELEASE_VERSION: "7.33.2"
PYTHON_VERSION_DEFAULT: "3.11"
POETRY_VERSION: "1.1.12"
POETRY_VERSION: "1.4.1"

jobs:
release_candidate:
runs-on: ubuntu-latest
concurrency: release_candidate
steps:
- name: Checkout
# see https://github.com/actions/checkout
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,19 @@ on:
push:
tags: [ 'v*.*.*' ] # run again on release tags to have tools mark them
branches: [ 'main' ]
schedule:
# schedule weekly tests, since some dependencies are not intended to be pinned
# this means: at 23:42 on Fridays
- cron: '42 23 * * 5'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
REPORTS_DIR: CI_reports
PYTHON_VERSION_DEFAULT: "3.11"
POETRY_VERSION: "1.1.12"
POETRY_VERSION: "1.4.1"

jobs:
coding-standards:
Expand Down Expand Up @@ -150,7 +158,7 @@ jobs:
run: poetry build

- name: Run tox
run: poetry run tox -e py-${{ matrix.toxenv-factor }} -s false
run: poetry run tox -v -e py-${{ matrix.toxenv-factor }} -s false

- name: Generate coverage reports
run: >
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,21 @@ on:
branches: [ 'main' ]
workflow_dispatch:

concurrency:
group: release
cancel-in-progress: true

env:
PYTHON_SEMANTIC_RELEASE_VERSION: "7.33.2"
PYTHON_VERSION_DEFAULT: "3.11"
POETRY_VERSION: "1.1.12"
POETRY_VERSION: "1.4.1"

jobs:
release:
# https://github.community/t/how-do-i-specify-job-dependency-running-in-another-workflow/16482
# limit this to being run on regular commits, not the commits that semantic-release will create
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):')
runs-on: ubuntu-latest
concurrency: release
steps:
- name: Checkout
# see https://github.com/actions/checkout
Expand Down
197 changes: 163 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,173 @@
# encoding: utf-8

# This file is part of py-serializable
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) Paul Horton. All Rights Reserved.

# Exlude python build & distribution directories

# Exclude coverage
test-reports


# Exlude IDE related files
.idea/*
.vscode/*

# # # #
# copy from https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore
# # # #

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

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

# Exlude *.pyc
*.pyc
# 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

# Exclude test-related items
.tox/*
# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Exclude coverage
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
test-reports
.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/

# Exclude Python Virtual Environment
# 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/
.venv/
ENV/
env.bak/
venv.bak/

# Exlude IDE related files
.idea/*
.vscode/*
# 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/

# Exclude generated docs
docs/_build
# 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/
Loading

0 comments on commit 4b20d44

Please sign in to comment.