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 #300

Open
wants to merge 2 commits 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
7 changes: 3 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jobs:
- {name: Mac, python: '3.9', os: macos-latest, tox: py39}
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
- {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36}
- {name: '2.7', python: '2.7', os: ubuntu-latest, tox: py27}
- {name: 'PyPy2', python: 'pypy2', os: ubuntu-latest, tox: pypy}
- {name: 'PyPy3', python: 'pypy3', os: ubuntu-latest, tox: pypy3}
- {name: 'PyPy2', python: 'pypy-2.7', os: ubuntu-latest, tox: pypy}
- {name: 'PyPy3', python: 'pypy-3.8', os: ubuntu-latest, tox: pypy3}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -44,6 +43,6 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('pyproject.toml') }}|${{ hashFiles('requirements/*.txt') }}
- run: pip install tox
- run: tox -e ${{ matrix.tox }}
8 changes: 0 additions & 8 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ in the same spirit as — and yet conspicuously missing from —
**[Full and extensive docs are available on Read The Docs.][rtd]** See
what's new [by checking the CHANGELOG][changelog].

Boltons is tested against Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8 and 3.9, as well as CPython
Boltons is tested against Python 2.7, 3.7, 3.8 and 3.9, as well as CPython
_nightly_ and PyPy/PyPy3.

[stdlib]: https://docs.python.org/2.7/library/index.html
Expand Down
24 changes: 24 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Release

-----

Requirements:

- `pip install -U build tox twine`

A brief checklist for release:

- `tox`
- `git commit` (if applicable)
- bump `boltons/__init__.py` version off of -dev
- `git commit -a -m "bump version for x.y.z release"`
- `python -m build`
- `twine upload dist/*`
- bump `docs/conf.py` version
- `git commit`
- `git tag -a x.y.z -m "brief summary"`
- write `CHANGELOG.md`
- `git commit`
- bump `boltons/__init__.py` version onto n+1 dev
- `git commit`
- `git push`
1 change: 1 addition & 0 deletions boltons/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '22.0.0dev'
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[build-system]
requires = [
"hatchling>=0.17.0",
]
build-backend = "hatchling.build"

[project]
name = "boltons"
description = "When they're not builtins, they're boltons."
readme = "README.md"
license = "BSD-3-Clause"
authors = [
{ name = "Mahmoud Hashemi", email = "[email protected]" },
]
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
# List of python versions and their support status:
# https://en.wikipedia.org/wiki/History_of_Python#Table_of_versions
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = [
"version",
]

[project.urls]
Homepage = "https://github.com/mahmoud/boltons"

[tool.hatch.version]
path = "boltons/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/boltons",
"/docs",
"/tests",
"/CHANGELOG.md",
"/TODO.rst",
"/pytest.ini",
"/tox.ini",
]
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

75 changes: 0 additions & 75 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
@@ -1,5 +1,6 @@
[tox]
envlist = py27,py34,py37,py39,pypy
isolated_build = true
envlist = py27,py37,py39,pypy
[testenv]
changedir = .tox
deps = -rrequirements-test.txt
Expand Down