Skip to content

Commit

Permalink
Merge pull request #24 from beproud/pyproject
Browse files Browse the repository at this point in the history
Renovations
  • Loading branch information
shimizukawa committed Sep 20, 2023
2 parents 3e207fa + 0c4d2a3 commit bf635bf
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 68 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/tox.ini') }}
restore-keys: |
${{ matrix.python-version }}-v1-
cache: 'pip'

- name: Install dependencies
run: |
Expand Down
13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3"

sphinx:
configuration: docs/en/source/conf.py

python:
install:
- requirements: requirements-doc.txt
2 changes: 1 addition & 1 deletion checklist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Procedure:

1. check CI status testing result: https://github.com/beproud/django-newauth/actions
2. update release version/date in ``ChangeLog.rst``
3. run ``python setup.py release sdist bdist_wheel``
3. run ``python -m build``
4. check ``twine check dist/*``
5. upload ``twine upload dist/*``
6. tagging version e.g. ``git tag 0.40``.
Expand Down
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[project]
name = "django-newauth"
dynamic = ['version']
description = "Authentication for Django done right"
authors = [
{ name = "BeProud", email = "project@beproud.jp" },
]
readme = "README.rst"
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'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 :: Software Development :: Libraries :: Python Modules',
]
requires-python = ">=3.8"
license = {file = "LICENSE"}
dependencies = [
"Django>=3.2",
]

[project.urls]
Homepage = "https://github.com/beproud/django-newauth/"
Documentation = "http://django-newauth.rtfd.io/"
Repository = "https://github.com/beproud/django-newauth.git"
Changelog = "https://github.com/beproud/django-newauth/blob/master/ChangeLog.rst"

[tool.setuptools]
zip-safe = false
include-package-data = true

[tool.setuptools.dynamic]
version = {attr = "newauth.VERSION"}

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ DJANGO =
deps =
twine
wheel
build
commands =
python setup.py sdist bdist_wheel
python -m build -s -w
twine check --strict dist/*

0 comments on commit bf635bf

Please sign in to comment.