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 #338
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ pip=$(virtualenv)/bin/pip | |
syspython=python3.8 | ||
python=$(virtualenv)/bin/python | ||
twine=$(virtualenv)/bin/twine | ||
version=$(shell $(python) setup.py --version) | ||
|
||
clean: ## Remove build artifacts, .pyc files, virtualenv | ||
-rm -rf build dist MANIFEST colorama.egg-info $(virtualenv) | ||
|
@@ -51,15 +50,14 @@ test: ## Run tests | |
# build packages | ||
|
||
build: ## Build a release (sdist and wheel) | ||
$(python) -m pip install --upgrade setuptools wheel | ||
$(python) setup.py sdist bdist_wheel | ||
$(python) -m pip install --upgrade build | ||
$(python) -m build | ||
.PHONY: build | ||
|
||
test-release: build ## Test a built release | ||
./test-release | ||
.PHONY: test-release | ||
|
||
release: ## Upload a built release | ||
$(twine) upload dist/colorama-$(version)* | ||
$(twine) upload dist/colorama-*{.whl,.tar.gz} | ||
wiggin15 marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We encountered an issue in our last release where the globs using |
||
.PHONY: release | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
$ve="$HOME\.virtualenvs\colorama" | ||
$bin="$ve\Scripts" | ||
|
||
& $bin\python.exe -m pip install --upgrade setuptools wheel | ||
& $bin\python.exe setup.py sdist bdist_wheel | ||
|
||
& $bin\python.exe -m pip install --upgrade build | ||
& $bin\python.exe -m build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[build-system] | ||
requires = [ | ||
"hatchling>=0.25.1", | ||
] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "colorama" | ||
description = "Cross-platform colored terminal text." | ||
readme = "README.rst" | ||
license = "BSD-3-Clause" | ||
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*" | ||
authors = [ | ||
{ name = "Jonathan Hartley", email = "tartley@tartley.com" }, | ||
] | ||
keywords = [ | ||
"ansi", | ||
"color", | ||
"colour", | ||
"crossplatform", | ||
"terminal", | ||
"text", | ||
"windows", | ||
"xplatform", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"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 :: 3.10", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Terminals", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/tartley/colorama" | ||
|
||
[tool.hatch.version] | ||
path = "colorama/__init__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/colorama", | ||
"/demos", | ||
"/CHANGELOG.rst", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
include = [ | ||
"/colorama/*", | ||
] | ||
wiggin15 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
$ve="$HOME\.virtualenvs\colorama" | ||
$bin="$ve\Scripts" | ||
$version="$(& $bin\python.exe setup.py --version)" | ||
|
||
# Upload to PyPI. | ||
& $bin\twine.exe upload dist\colorama-$version*.tar.gz dist\colorama-$version-*.whl | ||
|
||
& $bin\twine.exe upload dist\colorama-*.tar.gz dist\colorama-*.whl |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[tox] | ||
envlist = py27, py35, py36, py37, py38, py39, py310, pypy, pypy3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we are removing py35 and py36 from the testing matrix we should reflect that in the README (we list tested versions under |
||
isolated_build = true | ||
envlist = py27, py37, py38, py39, py310, pypy, pypy3 | ||
|
||
[testenv] | ||
deps = py27,pypy: mock | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think maybe "build" should be in
requirements-dev.txt
(which is installed duringmake bootstrap
- see the release process inREADME-hacking.md
) instead of being installed here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think not since it's unrelated to testing; I think
twine
should also not be in thereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requirements-dev.txt
is not just for testing - we install these packages when runningmake bootstrap
before runningmake build
/make release
as part of the build/release process.OTOH now I see that we ran
pip install
forsetuptools
andwheel
before this change...Anyway, this is not blocking a merge.