Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on SITE_ID #357

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
ed4e712
Removed reverse from compat.py
smithdc1 Nov 7, 2020
2319fa9
Removed get_context() from compat.py
smithdc1 Nov 7, 2020
433ed05
Dropped Python2 code style and six dependency
smithdc1 Nov 7, 2020
90575de
Removed mock and six from pipfile
smithdc1 Nov 7, 2020
cc7cab1
Universal wheels no longer required
smithdc1 Nov 8, 2020
24b4ad4
skip assert_called_once() on Python3.5
smithdc1 Nov 8, 2020
8fefba5
Jazzband All The Services. Contributes to #343.
dokterbob Nov 16, 2020
a5a4943
Landscape is death.
dokterbob Nov 16, 2020
5949f23
Remove hard dependency on SITE_ID
zelenij Jan 10, 2021
dd32d79
Add site to Submission, remove further SITE_ID dependencies
zelenij Jan 11, 2021
507e22e
Make site optional; add validation
Jan 11, 2021
8406978
New tests
Jan 11, 2021
07396a7
Fix validation; trigger validation; tests
zelenij Jan 11, 2021
73fb24a
New test
zelenij Jan 11, 2021
9702071
Update test
zelenij Jan 11, 2021
7be27fb
Update the changes file
zelenij Jan 11, 2021
b2e5d69
Merge pull request #352 from jazzband/jazzband_services
jezdez Jan 28, 2021
e8b41fb
Merge pull request #350 from smithdc1/reverse
jezdez Jan 28, 2021
51be647
Merge pull request #351 from smithdc1/pyupgrade
jezdez Jan 28, 2021
aedb952
Remove unneeded test mixin.
jezdez Jan 28, 2021
5808e44
Revamp some of the packaging files.
jezdez Jan 28, 2021
ce8f668
Add GitHub Actions test workflow.
jezdez Jan 28, 2021
d89695a
Add release workflow.
jezdez Jan 28, 2021
fe6662c
Update setup.py
jezdez Mar 10, 2021
15adbe3
Rename Django's dev branch to main.
jezdez Mar 10, 2021
c350966
Merge pull request #358 from jazzband/gha
jezdez Mar 10, 2021
da87579
Add simple docs requirements.
jezdez Apr 26, 2021
1dba229
Update Python supported version in README.rst
hramezani Apr 27, 2021
df5904d
Drop support for Django 3.0
hramezani Apr 27, 2021
d53537c
Add support for Django 3.2
hramezani Apr 27, 2021
1183baa
Add DEFAULT_AUTO_FIELD to test project settings.
hramezani Apr 27, 2021
50382a6
Add Python and Django supported versions badges to README.rst
hramezani Apr 27, 2021
2666db1
Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CON…
jazzband-bot Nov 10, 2021
6793cd8
Add support for Python 3.10
hramezani Nov 23, 2021
f053c11
Fix Supported Django versions badge in README.rst
hramezani Nov 23, 2021
f316b6c
Add pre-commit config file.
hramezani Nov 23, 2021
c3573af
Use actions/setup-python's caching to simplify config
hugovk Jan 7, 2022
d2b3e92
Upgrade Python syntax with pyupgrade --py37-plus
hugovk Jan 7, 2022
223f330
Add python_requires to help pip
hugovk Jan 7, 2022
e81c18d
Drop support for EOL Python <= 3.6
hugovk Jan 7, 2022
a8c3abd
Simplify tox config
hugovk Jan 7, 2022
8869cdb
Exclude missing tox envs from CI
hugovk Jan 7, 2022
9e0573b
Update README.rst
Bashar Aug 1, 2021
7d6ceb8
Remove Python2 support
Dec 14, 2022
3acf478
Remove hard dependency on SITE_ID
zelenij Jan 10, 2021
277e0e9
Add site to Submission, remove further SITE_ID dependencies
zelenij Jan 11, 2021
71a1d4c
Make site optional; add validation
Jan 11, 2021
8253ad3
New tests
Jan 11, 2021
42a6ffc
Fix validation; trigger validation; tests
zelenij Jan 11, 2021
051e2e7
New test
zelenij Jan 11, 2021
8236e56
Update test
zelenij Jan 11, 2021
fe2e91d
Update the changes file
zelenij Jan 11, 2021
2fb6160
Remove Python2 support
Dec 14, 2022
a44aa89
Merge branch 'master' of github.com:zelenij/django-newsletter
Dec 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
push:
tags:
- '*'

jobs:
build:
if: github.repository == 'jazzband/django-newsletter'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
cache: pip
cache-dependency-path: |
setup.py
tox.ini

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools twine wheel

- name: Build package
run: |
python setup.py --version
python setup.py sdist --format=gztar bdist_wheel
twine check dist/*

- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
repository_url: https://jazzband.co/projects/django-newsletter/upload
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Test

on: [push, pull_request]

jobs:
build:
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
django-version: ['2.2', '3.1', '3.2', 'main']
exclude:
# No such tox envs:
- {python-version: '3.7', django-version: 'main'}
- {python-version: '3.10', django-version: '2.2'}
- {python-version: '3.10', django-version: '3.1'}
- {python-version: '3.10', django-version: '3.2'}

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
setup.py
tox.ini

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions

- name: Tox tests
run: |
tox -v
env:
DJANGO: ${{ matrix.django-version }}

- name: Upload coverage
uses: codecov/codecov-action@v1
with:
name: Python ${{ matrix.python-version }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ django_setuptest*
docs/_*
.idea/
venv/
coverage.xml
.tox
.venv/
2 changes: 0 additions & 2 deletions .landscape.yml

This file was deleted.

1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repos: []
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Changes
- Configurable thumbnailing, dropping hard sorl-thumbnail (#304).
- File attachments for messages (#334).
- Drop surlex dependency improved `path()` and `re_path()` (#339).
- Remove hard dependency on SITE_ID (#266)
- Drop support for Django 3.0
- Add support for Django 3.2
- Add support for Python 3.10
- ...

0.9.1 (18-05-2020)
Expand Down
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Code of Conduct

As contributors and maintainers of the Jazzband projects, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating documentation,
submitting pull requests or patches, and other activities.

We are committed to making participation in the Jazzband a harassment-free experience
for everyone, regardless of the level of experience, gender, gender identity and
expression, sexual orientation, disability, personal appearance, body size, race,
ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery
- Personal attacks
- Trolling or insulting/derogatory comments
- Public or private harassment
- Publishing other's private information, such as physical or electronic addresses,
without explicit permission
- Other unethical or unprofessional conduct

The Jazzband roadies have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are not
aligned to this Code of Conduct, or to ban temporarily or permanently any contributor
for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

By adopting this Code of Conduct, the roadies commit themselves to fairly and
consistently applying these principles to every aspect of managing the jazzband
projects. Roadies who do not follow or enforce the Code of Conduct may be permanently
removed from the Jazzband roadies.

This code of conduct applies both within project spaces and in public spaces when an
individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
contacting the roadies at `[email protected]`. All complaints will be reviewed and
investigated and will result in a response that is deemed necessary and appropriate to
the circumstances. Roadies are obligated to maintain confidentiality with regard to the
reporter of an incident.

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version
1.3.0, available at [https://contributor-covenant.org/version/1/3/0/][version]

[homepage]: https://contributor-covenant.org
[version]: https://contributor-covenant.org/version/1/3/0/
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Thanks for your awesome contrib! If you'd like to have your code included in mas
couple of things you have to take care of though:

1. Ensure that the way you implemented the functionality is generic enough for other users to make use of and does not degrade the performance of existing users. If you unsure about this, create an issue with proposed functionality to discuss with the collaborators first.
2. Make sure the tests are passing. In any case, Travis should report passing tests.
3. Extended tests to cover any additional code included in your commit. In any case, the coveralls report should report equal or increased coverage.
2. Make sure the tests are passing. In any case, GitHub Actions should report passing tests.
3. Extended tests to cover any additional code included in your commit. In any case, the Codecov report should report equal or increased coverage.
4. Make sure that any added or changed functionality is documented in the Sphinx documentation.
26 changes: 0 additions & 26 deletions Pipfile

This file was deleted.

Loading