Skip to content

Commit 16ed4c6

Browse files
authored
Merge pull request #95 from amorilla/master
Update setup
2 parents 2f543f7 + 7548c97 commit 16ed4c6

File tree

8 files changed

+29
-35
lines changed

8 files changed

+29
-35
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919

2020
jobs:
2121
pypi-publish:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-24.04
2323
permissions:
2424
id-token: write
2525
steps:
@@ -30,11 +30,11 @@ jobs:
3030
- name: Setup Python
3131
uses: actions/setup-python@v3
3232
with:
33-
python-version: 3.10
33+
python-version: 3.12
3434
- name: Install dependencies
3535
run: |
3636
python -m pip install -U pip
37-
python -m pip install -U django django-storages boto3 wheel
37+
python -m pip install -U django django-storages boto3 wheel setuptools
3838
3939
- name: Build package
4040
run: |
@@ -44,7 +44,6 @@ jobs:
4444
- name: Publish package
4545
uses: pypa/gh-action-pypi-publish@release/v1
4646
with:
47-
user: __token__
48-
password: ${{ secrets.PYPI_API_TOKEN }}
47+
verbose: true
4948
repository-url: https://upload.pypi.org/legacy/
5049

.github/workflows/test-python-publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919

2020
jobs:
2121
pypi-publish:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-24.04
2323
permissions:
2424
id-token: write
2525
steps:
@@ -30,11 +30,11 @@ jobs:
3030
- name: Setup Python
3131
uses: actions/setup-python@v3
3232
with:
33-
python-version: 3.10
33+
python-version: 3.12
3434
- name: Install dependencies
3535
run: |
3636
python -m pip install -U pip
37-
python -m pip install -U django django-storages boto3 wheel
37+
python -m pip install -U django django-storages boto3 wheel setuptools
3838
3939
- name: Build package
4040
run: |
@@ -44,7 +44,6 @@ jobs:
4444
- name: Publish package
4545
uses: pypa/gh-action-pypi-publish@release/v1
4646
with:
47-
user: __token__
48-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
47+
verbose: true
4948
repository-url: https://test.pypi.org/legacy/
5049

.github/workflows/tests.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,27 @@ on:
1010
jobs:
1111
test:
1212
name: "Python ${{ matrix.python }} Django ${{ matrix.django }}"
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
strategy:
1515
# max-parallel: 8 # default is max available
1616
fail-fast: false
1717
matrix:
1818
include:
1919
# Django 2.2
2020
- django: "2.2"
21-
python: "3.6"
22-
# Django 3.1
23-
- django: "3.1"
24-
python: "3.6"
21+
python: "3.8"
2522
# Django 3.2
2623
- django: "3.2"
27-
python: "3.6"
28-
# Django 4.0
29-
- django: "4.0"
30-
python: "3.10"
31-
# Django 4.1
32-
- django: "4.1"
33-
python: "3.10"
24+
python: "3.8"
3425
# Django 4.2
3526
- django: "4.2"
27+
python: "3.8"
28+
# Django 5.1
29+
- django: "5.1"
3630
python: "3.10"
31+
# Django 5.2
32+
- django: "5.2"
33+
python: "3.12"
3734

3835
steps:
3936
- name: Install gettext

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
Changes in 3.2 (2025-02-20)
4+
Changes in 3.1.2 (2025-02-20)
55
---------------------------
66
* Added support to Python 3.10
77
* Added support to Django 5.0, 5.1

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ We use tox to run the test suite on different versions locally (and travis-ci to
349349

350350
To tun the test suite locally, please make sure your python environment has tox and django installed::
351351

352-
python3.6 -m pip install tox django
352+
python3 -m pip install tox django
353353

354354
And then simply execute tox to run the whole test matrix::
355355

private_storage/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# following PEP 440
2-
__version__ = "3.1.1"
2+
__version__ = "3.1.2"

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def find_version(*parts):
3636
setup(
3737
name='django-private-storage',
3838
version=find_version('private_storage', '__init__.py'),
39-
license='Apache 2.0',
39+
license='License-Expression :: OSI Approved :: Apache-2.0',
4040

4141
install_requires=[],
4242
requires=[
43-
'Django (>=1.11)',
43+
'Django (>=2.2)',
4444
],
4545

4646
description='Private media file storage for Django projects',
@@ -52,7 +52,7 @@ def find_version(*parts):
5252
url='https://github.com/edoburu/django-private-storage',
5353
download_url='https://github.com/edoburu/django-private-storage/zipball/master',
5454

55-
packages=find_packages(exclude=('example*',)),
55+
packages=find_packages(exclude=('example*',), include=['private_storage/locale/',]),
5656
include_package_data=True,
5757

5858
#test_suite = 'runtests',
@@ -62,7 +62,6 @@ def find_version(*parts):
6262
'Environment :: Web Environment',
6363
'Framework :: Django',
6464
'Intended Audience :: Developers',
65-
'License :: OSI Approved :: Apache Software License',
6665
'Operating System :: OS Independent',
6766
'Programming Language :: Python',
6867
'Programming Language :: Python :: 3',
@@ -71,6 +70,7 @@ def find_version(*parts):
7170
'Programming Language :: Python :: 3.8',
7271
'Programming Language :: Python :: 3.9',
7372
'Programming Language :: Python :: 3.10',
73+
'Programming Language :: Python :: 3.12',
7474
'Framework :: Django',
7575
'Framework :: Django :: 2.2',
7676
'Framework :: Django :: 3.0',
@@ -81,6 +81,7 @@ def find_version(*parts):
8181
'Framework :: Django :: 4.2',
8282
'Framework :: Django :: 5.0',
8383
'Framework :: Django :: 5.1',
84+
'Framework :: Django :: 5.2',
8485
'Topic :: Internet :: WWW/HTTP',
8586
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
8687
'Topic :: Software Development :: Libraries :: Application Frameworks',

tox.ini

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist=
3-
py310-django{22,31,32,41,42,51},
3+
py310-django{22,32,42,51,52},
44
py310-django-dev,
55
coverage,
66

@@ -13,20 +13,18 @@ deps =
1313
deps =
1414
{[base]deps}
1515
django22: Django~=2.2
16-
django30: Django~=3.0
17-
django31: Django~=3.1
1816
django32: Django~=3.2
19-
django41: Django~=4.1
2017
django42: Django~=4.2
2118
django51: Django~=5.1
22-
django-dev: https://github.com/django/django/tarball/stable/4.2.x
19+
django52: Django~=5.2
20+
django-dev: https://github.com/django/django/tarball/stable/5.2.x
2321
commands=
2422
python runtests.py
2523

2624
[testenv:coverage]
2725
basepython=python3.10
2826
deps=
29-
django~=3.2
27+
django~=5.2
3028
coverage
3129
{[base]deps}
3230
commands=

0 commit comments

Comments
 (0)