Skip to content

Commit

Permalink
🔧 versioning configured
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanitsky committed Jun 14, 2020
1 parent 2c6b4e7 commit ed7d57c
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 29 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release PyPi package

on:
push:
tags:
- "v*.*"

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
8 changes: 1 addition & 7 deletions .github/workflows/main.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package
name: Tests

on: [push]

Expand Down Expand Up @@ -29,9 +29,3 @@ jobs:
file: ./coverage.xml
name: codecov-umbrella
fail_ci_if_error: true
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
if: startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.pypi_password }}
17 changes: 11 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys

cwd = os.getcwd()
parent = os.path.dirname(cwd)
sys.path.append(parent)

import github_webhooks

# -- Project information -----------------------------------------------------

Expand All @@ -22,16 +26,17 @@
author = 'stefanitsky'

# The full version, including alpha/beta/rc tags
release = '0.1'
version = github_webhooks.__version__
# The full version, including alpha/beta/rc tags.
release = github_webhooks.__version__


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
]
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
1 change: 1 addition & 0 deletions github_webhooks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.2"
44 changes: 29 additions & 15 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[bumpversion]
current_version = 0.1.2
commit = True
tag = True
message = 🔖 Bump version: {current_version} → {new_version}

[metadata]
name = django-github-webhooks
version = 0.1
Expand All @@ -7,22 +13,30 @@ url = https://github.com/OpenWiden/django-github-webhooks
author = stefanitsky
author_email = stefanitsky.mozdor@gmail.com
license = MIT
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 3.0
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 3.0
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content

[options]
include_package_data = true
packages = find:

[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"

[bumpversion:file:github_webhooks/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="django-github-webhooks",
version="0.0.1",
version="0.1.2",
author="Alexandr Stefanitsky-Mozdor",
author_email="stefanitsky.mozdor@gmail.com",
description="Django GitHub webhooks",
Expand Down

0 comments on commit ed7d57c

Please sign in to comment.