Skip to content

Commit 5b826e2

Browse files
author
PPB InfoSec Engineering
committed
github 1
1 parent 34d808f commit 5b826e2

File tree

9 files changed

+65
-119
lines changed

9 files changed

+65
-119
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: publish
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
27+
run: |
28+
python setup.py sdist bdist_wheel
29+
twine upload dist/*
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: publish
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_TOKEN }}
27+
run: |
28+
python setup.py sdist bdist_wheel
29+
twine upload --repository testpypi dist/*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.pyc
22
__pycache__
33
/dist
4+
/build
45
*.egg-info
56
.coverage
67
.reports

.jenkins/Dockerfile.tests

Lines changed: 0 additions & 8 deletions
This file was deleted.

.jenkins/ci_build

Lines changed: 0 additions & 41 deletions
This file was deleted.

.jenkins/mr_test

Lines changed: 0 additions & 6 deletions
This file was deleted.

.jenkins/run_tests

Lines changed: 0 additions & 58 deletions
This file was deleted.

dbcleanup/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.1.7'
1+
__version__ = '0.0.1'
22

33
default_app_config = 'dbcleanup.apps.DBCleanupConfig'

setup.cfg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[metadata]
2-
name = ppb-django-dbcleanup
2+
name = django-dbcleanup
33
version = attr: dbcleanup.__version__
44
description = Easily monitor database usage - and clean it up (based on your django models)
55
author = PPB - InfoSec Engineering
6-
author_email = InfoSec.Engineering@ppb.com
7-
url = https://gitlab.app.betfair/security/surface/django-dbcleanup/
6+
author_email = surface@paddypowerbetfair.com
7+
url = https://github.com/surface-security/django-dbcleanup/
88
long_description = file: README.md
9+
long_description_content_type = text/markdown
910
license = MIT
1011
classifiers =
11-
Development Status :: 5 - Development
12+
Development Status :: 5 - Production/Stable
1213
Framework :: Django
13-
License :: Free for any use
1414
License :: OSI Approved :: MIT License
1515
Intended Audience :: Developers
1616
Operating System :: OS Independent

0 commit comments

Comments
 (0)