From 3b3e47106467ef5c7792d1c13e76b4205c35a282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Tue, 16 Jan 2024 12:55:11 -0600 Subject: [PATCH] chore: Clean up unused files --- .bumpversion.cfg | 27 -------------- .gitlab-ci.yml | 95 ------------------------------------------------ 2 files changed, 122 deletions(-) delete mode 100644 .bumpversion.cfg delete mode 100644 .gitlab-ci.yml diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 580a19e62f..0000000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,27 +0,0 @@ -[bumpversion] -current_version = 0.5.0 -commit = True -tag = False -parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)(?P\d+))? -serialize = - {major}.{minor}.{patch}-{release}{build} - {major}.{minor}.{patch} - -[bumpversion:part:release] -values = dev - -[bumpversion:file:pyproject.toml] -search = version = "{current_version}" -replace = version = "{new_version}" - -[bumpversion:file:docs/conf.py] -search = release = "{current_version}" -replace = release = "{new_version}" - -[bumpversion:file:cookiecutter/tap-template/{{cookiecutter.tap_id}}/pyproject.toml] -search = singer-sdk = "^{current_version}" -replace = singer-sdk = "^{new_version}" - -[bumpversion:file:cookiecutter/target-template/{{cookiecutter.target_id}}/pyproject.toml] -search = singer-sdk = "^{current_version}" -replace = singer-sdk = "^{new_version}" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index f944e5329b..0000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,95 +0,0 @@ -stages: - - setup - - test - - publish - -include: - - template: Security/License-Scanning.gitlab-ci.yml - -default: - before_script: - - python -V - - python -m pip install pipx - - python -m pipx ensurepath - - python -m pipx install poetry - # Force update PATH to include pipx executables - - export PATH=$PATH:/root/.local/bin - # Create virtual environment and make sure pip and setuptools are up-to-date - - poetry env use python - - poetry run pip install --upgrade pip setuptools - - poetry install --no-root - -variables: - PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" - LM_PYTHON_VERSION: 3 - -cache: - paths: - - .cache/pip - - venv/ - -generate_requirements: - stage: setup - image: - name: python:3.8 - before_script: - # Install poetry - - python -V - - python -m pip install pipx - - python -m pipx ensurepath - - python -m pipx install poetry - # Force update PATH to include pipx executables - - export PATH=$PATH:/root/.local/bin - script: - - poetry export --format requirements.txt --output requirements.txt - artifacts: - paths: - - requirements.txt - -license_scanning: - stage: test - before_script: [] # negate defaults above - dependencies: - - generate_requirements - -pypi_publish: - # release: - # name: '$CI_COMMIT_TAG' - # tag_name: '$CI_COMMIT_TAG' - # description: '$CI_COMMIT_TAG' - only: - - tags - stage: publish - parallel: - matrix: - - PYTHON_VERSION: ["3.8"] - image: python:${PYTHON_VERSION} - script: - - | - echo "Publishing tag '$CI_COMMIT_TAG' to PyPi, Ref='$CI_COMMIT_REF_NAME' and Namespace='$CI_PROJECT_NAMESPACE'..." - echo "Detected poetry version: v$(poetry version --short)" - if [[ "$CI_COMMIT_TAG" == "v$(poetry version --short)" ]]; - then - echo -e "\nPublishing to version ref 'v$(poetry version --short)'...\n\n" - poetry publish --build - else - echo -e "\nERROR - Tag '$CI_COMMIT_TAG' did not match detected version 'v$(poetry version --short)'." - exit 1 - fi - -pypi_prerelease: - when: manual - except: - - tags - stage: publish - parallel: - matrix: - - PYTHON_VERSION: ["3.8"] - image: python:${PYTHON_VERSION} - script: - - | - echo "Publishing to PyPi, Ref='$CI_COMMIT_REF_NAME' and Namespace='$CI_PROJECT_NAMESPACE'..." - poetry version $(poetry version --short)-dev.$CI_JOB_ID - poetry version --short - echo -e "\nPublishing to version ref '$(poetry version --short)'...\n\n" - poetry publish --build