From bbf4dfdb6bf380473fb8aa4639c45622a663e6b7 Mon Sep 17 00:00:00 2001 From: Julian Graham Date: Thu, 29 Feb 2024 11:49:02 -0500 Subject: [PATCH] chore: Remove tox config and .travis.yml --- .github/workflows/ci.yml | 2 +- .gitignore | 1 - .travis.yml | 50 --------------------------------------- tox.ini | 51 ---------------------------------------- 4 files changed, 1 insertion(+), 103 deletions(-) delete mode 100644 .travis.yml delete mode 100644 tox.ini diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14ebcfe..bad2799 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,4 +89,4 @@ jobs: - name: Build run: poetry build - name: Deploy - run: poetry deploy + run: poetry publish diff --git a/.gitignore b/.gitignore index 6f7a6d9..437e2a9 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,6 @@ pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ -.tox/ .nox/ .coverage .coverage.* diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ea9ec64..0000000 --- a/.travis.yml +++ /dev/null @@ -1,50 +0,0 @@ -version: ~> 1.0 -os: linux -language: python -python: "3.9" -addons: - postgresql: "11" - -env: - - TOXENV=py39-django31 - - TOXENV=py39-djangomaster - - TOXENV=checkmigrations - - TOXENV=flake8 - -before_install: - - sudo apt-get update - - sudo apt-get --yes remove postgresql\* - - sudo apt-get install -y postgresql-11 postgresql-client-11 - - sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf - - sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf - - sudo service postgresql restart 11 - -install: - - pip install --upgrade pip setuptools wheel - - pip install tox - -before_script: - - psql -U postgres -c 'CREATE DATABASE "test_djpaypal";' - -script: - - tox - -stages: - - name: test - - name: deploy - if: tag IS present - -jobs: - allow_failures: - - env: TOXENV=py39-djangomaster - fast_finish: true - include: - - stage: deploy - install: pip install poetry - script: poetry build - deploy: - provider: script - script: poetry publish - skip_cleanup: true - on: - tags: true diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 5298f48..0000000 --- a/tox.ini +++ /dev/null @@ -1,51 +0,0 @@ -[tox] -isolated_build = True -envlist = - py36-django{31,master} - flake8 - checkmigrations - -[pytest] -DJANGO_SETTINGS_MODULE = tests.settings - -[testenv] -setenv = - PYTHONPATH = {toxinidir} - PYTHONWARNINGS = all -commands = pytest -v --showlocals {posargs} -deps = - django31: Django>=3.1,<4.0 - djangomaster: https://github.com/django/django/archive/master.tar.gz - iso8601 - psycopg2 - pytest - pytest-django - -[testenv:checkmigrations] -commands = python makemigrations.py --check - -[testenv:flake8] -skip_install = True -commands = - flake8 -deps = - flake8==3.7.9 - flake8-quotes==2.1.1 - flake8-isort==2.7.0 - isort==4.3.21 - -[flake8] -ignore = E117, W191, W504 -exclude = .tox/, .venv/, src/djpaypal/migrations/ -inline-quotes = double -max-line-length = 92 - -[isort] -indent = tab -line_length = 92 -lines_after_imports = 2 -balanced_wrapping = True -default_section = THIRDPARTY -known_first_party = djpaypal -multi_line_output = 5 -skip = .tox/