diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml new file mode 100644 index 0000000..830c57a --- /dev/null +++ b/.github/workflows/building.yml @@ -0,0 +1,25 @@ +name: Python CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox-travis coverage codacy-coverage + - name: Test with tox + run: | + tox diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml new file mode 100644 index 0000000..3f2c5ce --- /dev/null +++ b/.github/workflows/dockerimage.yml @@ -0,0 +1,26 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + name: Check out code + + - uses: mr-smithers-excellent/docker-build-push@v5 + name: Build & push Docker image + with: + image: darrenofficial/dpaste + registry: docker.io + tags: latest + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..3149984 --- /dev/null +++ b/.python-version @@ -0,0 +1,4 @@ +3.8.0 +3.7.5 +3.6.9 +3.5.8 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c8aa699 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +Dpaste +--- +![dpaste image](https://img.shields.io/pypi/v/dpaste.svg) +![building](https://travis-ci.org/bartTC/dpaste.svg?branch=master) +![Code Quality](https://api.codacy.com/project/badge/Grade/185cfbe9b4b447e59a40f816c4a5ebf4) + +---- + +📖 Full documentation on [https://docs.dpaste.org](https://docs.dpaste.org) + + +dpaste is a [pastebin](https://en.wikipedia.org/wiki/Pastebin) application written in [Python](https://www.python.org/) using the [Django](https://www.djangoproject.com/) framework. You can find a live installation on [dpaste.org.](https://dpaste.org) + +The project is intended to run standalone as any regular Django Project, but it's also possible to install it into an existing project as a typical Django application. + + +The code is open source and available on Github: [https://github.com/darrenofficial/dpaste](https://github.com/darrenofficial/dpaste). If you found bugs, have problems or ideas with the project or the website installation, please create an *Issue* there. + +⚠️ dpaste requires at a minimum Python 3.6 and Django 2.2. + + +dpaste.org: https://dpaste.org/ +pastebin: https://en.wikipedia.org/wiki/Pastebin diff --git a/README.rst b/README.rst deleted file mode 100644 index e7184ca..0000000 --- a/README.rst +++ /dev/null @@ -1,39 +0,0 @@ -====== -dpaste -====== - -.. image:: https://img.shields.io/pypi/v/dpaste.svg - :target: https://pypi.org/project/dpaste/ - -.. image:: https://travis-ci.org/bartTC/dpaste.svg?branch=master - :target: https://travis-ci.org/bartTC/dpaste - -.. image:: https://api.codacy.com/project/badge/Coverage/185cfbe9b4b447e59a40f816c4a5ebf4 - :target: https://www.codacy.com/app/bartTC/dpaste - -.. image:: https://api.codacy.com/project/badge/Grade/185cfbe9b4b447e59a40f816c4a5ebf4 - :target: https://www.codacy.com/app/bartTC/dpaste - ----- - -📖 Full documentation on https://dpaste.readthedocs.io/ - -dpaste is a pastebin_ application written in Python using the Django -framework. You can find a live installation on `dpaste.de`_. - -.. image:: https://raw.githubusercontent.com/bartTC/dpaste/master/docs/_static/dpaste_de_screenshot.png - :alt: A screenshot of https://dpaste.de/ - :width: 60% - -The project is intended to run standalone as any regular Django Project, -but it's also possible to install it into an existing project as a typical -Django application. - -The code is open source and available on Github: https://github.com/bartTC/dpaste. -If you found bugs, have problems or ideas with the project or the website installation, -please create an *Issue* there. - -⚠️ dpaste requires at a minimum Python 3.6 and Django 2.2. - -.. _dpaste.de: https://dpaste.de/ -.. _pastebin: https://en.wikipedia.org/wiki/Pastebin diff --git a/docker-compose.yml b/docker-compose.yml index 760a46d..071532b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,9 +34,6 @@ services: - data_db:/db ports: - "8000:8000" - command: mkdir -p dpaste/static - command: make css - command: make js command: ./manage.py runserver 0:8000 migration: @@ -46,7 +43,6 @@ services: - .:/app:delegated - data_db:/db - volumes: data_db: data_collectstatic: diff --git a/dpaste/__pycache__/__init__.cpython-310.pyc b/dpaste/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..2ea051c Binary files /dev/null and b/dpaste/__pycache__/__init__.cpython-310.pyc differ diff --git a/dpaste/__pycache__/apps.cpython-310.pyc b/dpaste/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000..5dee53f Binary files /dev/null and b/dpaste/__pycache__/apps.cpython-310.pyc differ diff --git a/dpaste/__pycache__/forms.cpython-310.pyc b/dpaste/__pycache__/forms.cpython-310.pyc new file mode 100644 index 0000000..56c59a3 Binary files /dev/null and b/dpaste/__pycache__/forms.cpython-310.pyc differ diff --git a/dpaste/__pycache__/highlight.cpython-310.pyc b/dpaste/__pycache__/highlight.cpython-310.pyc new file mode 100644 index 0000000..f6e38a3 Binary files /dev/null and b/dpaste/__pycache__/highlight.cpython-310.pyc differ diff --git a/dpaste/__pycache__/models.cpython-310.pyc b/dpaste/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000..704b538 Binary files /dev/null and b/dpaste/__pycache__/models.cpython-310.pyc differ diff --git a/dpaste/__pycache__/views.cpython-310.pyc b/dpaste/__pycache__/views.cpython-310.pyc new file mode 100644 index 0000000..114f80a Binary files /dev/null and b/dpaste/__pycache__/views.cpython-310.pyc differ diff --git a/dpaste/__pycache__/wsgi.cpython-310.pyc b/dpaste/__pycache__/wsgi.cpython-310.pyc new file mode 100644 index 0000000..b1ed6f8 Binary files /dev/null and b/dpaste/__pycache__/wsgi.cpython-310.pyc differ diff --git a/dpaste/management/__pycache__/__init__.cpython-310.pyc b/dpaste/management/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..249fcf7 Binary files /dev/null and b/dpaste/management/__pycache__/__init__.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/0001_initial.cpython-310.pyc b/dpaste/migrations/__pycache__/0001_initial.cpython-310.pyc new file mode 100644 index 0000000..db8af54 Binary files /dev/null and b/dpaste/migrations/__pycache__/0001_initial.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/0002_auto_20170119_1038.cpython-310.pyc b/dpaste/migrations/__pycache__/0002_auto_20170119_1038.cpython-310.pyc new file mode 100644 index 0000000..89f2473 Binary files /dev/null and b/dpaste/migrations/__pycache__/0002_auto_20170119_1038.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/0003_snippet_highlighted.cpython-310.pyc b/dpaste/migrations/__pycache__/0003_snippet_highlighted.cpython-310.pyc new file mode 100644 index 0000000..472a382 Binary files /dev/null and b/dpaste/migrations/__pycache__/0003_snippet_highlighted.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/0004_auto_20180107_1603.cpython-310.pyc b/dpaste/migrations/__pycache__/0004_auto_20180107_1603.cpython-310.pyc new file mode 100644 index 0000000..f8831f6 Binary files /dev/null and b/dpaste/migrations/__pycache__/0004_auto_20180107_1603.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/0005_remove_snippet_highlighted.cpython-310.pyc b/dpaste/migrations/__pycache__/0005_remove_snippet_highlighted.cpython-310.pyc new file mode 100644 index 0000000..012b90b Binary files /dev/null and b/dpaste/migrations/__pycache__/0005_remove_snippet_highlighted.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/0006_auto_20180622_1051.cpython-310.pyc b/dpaste/migrations/__pycache__/0006_auto_20180622_1051.cpython-310.pyc new file mode 100644 index 0000000..e8344cb Binary files /dev/null and b/dpaste/migrations/__pycache__/0006_auto_20180622_1051.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/0007_snippet_rtl.cpython-310.pyc b/dpaste/migrations/__pycache__/0007_snippet_rtl.cpython-310.pyc new file mode 100644 index 0000000..3cff773 Binary files /dev/null and b/dpaste/migrations/__pycache__/0007_snippet_rtl.cpython-310.pyc differ diff --git a/dpaste/migrations/__pycache__/__init__.cpython-310.pyc b/dpaste/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..690f959 Binary files /dev/null and b/dpaste/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/dpaste/settings/__pycache__/__init__.cpython-310.pyc b/dpaste/settings/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..2022b12 Binary files /dev/null and b/dpaste/settings/__pycache__/__init__.cpython-310.pyc differ diff --git a/dpaste/settings/__pycache__/base.cpython-310.pyc b/dpaste/settings/__pycache__/base.cpython-310.pyc new file mode 100644 index 0000000..197753b Binary files /dev/null and b/dpaste/settings/__pycache__/base.cpython-310.pyc differ diff --git a/dpaste/urls/__pycache__/__init__.cpython-310.pyc b/dpaste/urls/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..1324cb7 Binary files /dev/null and b/dpaste/urls/__pycache__/__init__.cpython-310.pyc differ diff --git a/dpaste/urls/__pycache__/dpaste.cpython-310.pyc b/dpaste/urls/__pycache__/dpaste.cpython-310.pyc new file mode 100644 index 0000000..962d1c3 Binary files /dev/null and b/dpaste/urls/__pycache__/dpaste.cpython-310.pyc differ diff --git a/dpaste/urls/__pycache__/dpaste_api.cpython-310.pyc b/dpaste/urls/__pycache__/dpaste_api.cpython-310.pyc new file mode 100644 index 0000000..18c1bb9 Binary files /dev/null and b/dpaste/urls/__pycache__/dpaste_api.cpython-310.pyc differ diff --git a/package.json b/package.json index f670368..a82c641 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dpaste", - "version": "4.0.0", + "version": "3.0.0", "repository": "https://github.com/bartTC/dpaste", "license": "MIT", "dependencies": { diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..f45d8f1 --- /dev/null +++ b/renovate.json @@ -0,0 +1,5 @@ +{ + "extends": [ + "config:base" + ] +}