Skip to content

Commit b1c2127

Browse files
authored
Release 2.0 (#55)
* Added pypi actions and updated setup to remove EOL packages * 2.0.0
1 parent 7bd15b1 commit b1c2127

File tree

6 files changed

+98
-8
lines changed

6 files changed

+98
-8
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish Python 🐍 distributions 📦 to pypi
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish Python 🐍 distributions 📦 to pypi
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Set up Python 3.9
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.9
18+
19+
- name: Install pypa/build
20+
run: >-
21+
python -m
22+
pip install
23+
build
24+
--user
25+
- name: Build a binary wheel and a source tarball
26+
run: >-
27+
python -m
28+
build
29+
--sdist
30+
--wheel
31+
--outdir dist/
32+
.
33+
34+
- name: Publish distribution 📦 to PyPI
35+
if: startsWith(github.ref, 'refs/tags')
36+
uses: pypa/gh-action-pypi-publish@master
37+
with:
38+
user: __token__
39+
password: ${{ secrets.PYPI_API_TOKEN }}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish Python 🐍 distributions 📦 to TestPyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Set up Python 3.9
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.9
18+
19+
- name: Install pypa/build
20+
run: >-
21+
python -m
22+
pip install
23+
build
24+
--user
25+
- name: Build a binary wheel and a source tarball
26+
run: >-
27+
python -m
28+
build
29+
--sdist
30+
--wheel
31+
--outdir dist/
32+
.
33+
34+
- name: Publish distribution 📦 to Test PyPI
35+
uses: pypa/gh-action-pypi-publish@master
36+
with:
37+
user: __token__
38+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
39+
repository_url: https://test.pypi.org/legacy/
40+
skip_existing: true

CHANGELOG.txt renamed to CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ Changelog
33
=========
44

55

6+
2.0.0 (2022-04-11)
7+
==================
8+
9+
* Drop support for django 3.0, 3.1 and python 3.6
10+
* Add support for python 3.10 and allow django-cms to dictate the upper django version.
11+
612
1.11.0 (2020-08-10)
713
==================
814

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Multi Column Plugin for django CMS.
77
Installation
88
------------
99

10-
This plugin requires `django CMS` 3.4.5 or higher to be properly installed.
10+
This plugin requires `django CMS` 3.8 or higher to be properly installed.
1111

1212
* In your projects virtualenv, run ``pip install djangocms-column``.
1313
* Add ``'djangocms_column'`` to your ``INSTALLED_APPS`` setting.

djangocms_column/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.11.0'
1+
__version__ = '2.0.0'

setup.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
#!/usr/bin/env python
2+
from pathlib import Path
3+
24
from setuptools import setup
35

46
from djangocms_column import __version__
57

68
INSTALL_REQUIRES = [
7-
'django-cms>=3.4.5',
8-
'Django>=1.11,<3.3'
9+
'django-cms>=3.8.0',
10+
'Django>=2.2' # the maximum version should be dictated by the cms
911
]
1012

1113
CLASSIFIERS = [
1214
'Development Status :: 5 - Production/Stable',
1315
'Environment :: Web Environment',
1416
'Framework :: Django',
1517
'Framework :: Django :: 2.2',
16-
'Framework :: Django :: 3.0',
17-
'Framework :: Django :: 3.1',
1818
'Framework :: Django :: 3.2',
1919
'Intended Audience :: Developers',
2020
'License :: OSI Approved :: BSD License',
2121
'Operating System :: OS Independent',
2222
'Programming Language :: Python',
2323
'Programming Language :: Python :: 3',
24-
'Programming Language :: Python :: 3.6',
2524
'Programming Language :: Python :: 3.7',
2625
'Programming Language :: Python :: 3.8',
2726
'Programming Language :: Python :: 3.9',
27+
'Programming Language :: Python :: 3.10',
2828
'Topic :: Communications',
2929
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
3030
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Message Boards',
3131
]
3232

33+
this_directory = Path(__file__).parent
34+
long_description = (this_directory / "README.rst").read_text()
35+
3336
setup(
3437
name='djangocms-column',
3538
version=__version__,
@@ -45,7 +48,9 @@
4548
license='LICENSE.txt',
4649
platforms=['OS Independent'],
4750
classifiers=CLASSIFIERS,
48-
long_description=open('README.rst').read(),
51+
long_description=long_description,
52+
long_description_content_type='text/x-rst',
4953
include_package_data=True,
54+
python_requires='>=3.7',
5055
zip_safe=False
5156
)

0 commit comments

Comments
 (0)