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

Update package metadata #813

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: setup.py
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
sudo apt-get install -y gettext
python -m pip install --upgrade pip wheel setuptools
sudo apt-get install -y gettext
python -m pip install --upgrade pip
pip install -e .[dev]

- name: Run locale Update Script
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get install -y gettext
sudo apt-get install -y gettext
python -m pip install -U pip
python -m pip install -U setuptools twine wheel
pip install -e .[dev]

- name: Check locale
Expand All @@ -36,8 +35,7 @@ jobs:

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

- name: Upload packages to Jazzband
Expand All @@ -46,4 +44,4 @@ jobs:
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
repository_url: https://jazzband.co/projects/djangorestframework-simplejwt/upload
repository-url: https://jazzband.co/projects/djangorestframework-simplejwt/upload
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}
${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ matrix.python-version }}-v1-

Expand Down
3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ build:

python:
install:
# Install dependencies from setup.py .
- method: setuptools
- method: pip
path: .

# Build documentation in the docs/ directory with Sphinx
Expand Down
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ clean: clean-build clean-pyc

.PHONY: clean-build
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info

.PHONY: clean-pyc
clean-pyc:
Expand Down Expand Up @@ -33,7 +31,6 @@ test-all:
.PHONY: build-docs
build-docs:
sphinx-apidoc -o docs/ . \
setup.py \
*confest* \
tests/* \
rest_framework_simplejwt/token_blacklist/* \
Expand All @@ -59,10 +56,10 @@ pushversion:

.PHONY: publish
publish:
python setup.py sdist bdist_wheel
python -m build --wheel
twine upload dist/*

.PHONY: dist
dist: clean
python setup.py sdist bdist_wheel
python -m build --wheel
ls -l dist
92 changes: 92 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[build-system]
requires = ["hatchling>=1.23.0", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "djangorestframework-simplejwt"
dynamic = ["version"]
description = "A minimal JSON Web Token authentication plugin for Django REST Framework"
readme = "README.rst"
license = "MIT"
license-files = { globs = ["LICENSE*", "licenses/*"] }
requires-python = ">=3.8"
authors = [
{ name = "David Sanders", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"django>=3.2",
"djangorestframework>=3.12",
"pyjwt>=1.7.1,<3",
]

[project.optional-dependencies]
crypto = [
"cryptography>=3.3.1",
]
dev = [
"build",
"ipython",
"pytest-watch",
"twine",
"wheel",
"djangorestframework-simplejwt[doc,lint,test,python-jose]",
]
doc = [
"Sphinx>=1.6.5,<2",
"sphinx_rtd_theme>=0.1.9",
]
lint = [
"flake8",
"isort",
"pep8",
]
python-jose = [
"python-jose==3.3.0",
]
test = [
"cryptography",
"freezegun",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-xdist",
"tox",
]

[project.urls]
Homepage = "https://github.com/jazzband/djangorestframework-simplejwt"

[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "post-release" }

[tool.hatch.build.targets.wheel]
# Jazzband's release process is limited to 2.2 metadata
# - see https://github.com/jazzband/help/issues/360
core-metadata-version = "2.2"
packages = ["rest_framework_simplejwt"]

[tool.hatch.build.targets.sdist]
# Jazzband's release process is limited to 2.2 metadata
# - see https://github.com/jazzband/help/issues/360
core-metadata-version = "2.2"
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

88 changes: 0 additions & 88 deletions setup.py

This file was deleted.