pantry/projects/github.com/pypa/twine/package.yml

57 lines
1.3 KiB
YAML
Raw Normal View History

distributable:
2024-06-26 18:21:35 +03:00
url: https://github.com/pypa/twine/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1
versions:
2024-06-26 18:21:35 +03:00
github: pypa/twine
dependencies:
2023-10-03 18:23:56 +03:00
python.org: '>=3.7<3.12'
2024-06-26 18:21:35 +03:00
build: python-venv.sh {{prefix}}/bin/twine
provides:
- bin/twine
test:
script: |
twine --version | grep "^twine version {{version}}"
# Create a minimal package
mv $FIXTURE pyproject.toml
echo "Hello World" > README.md
# Build the package
{{prefix}}/venv/bin/pip install --upgrade build
{{prefix}}/venv/bin/python -m build
# check the package
twine check dist/*
# clean up
rm -rf dist
fixture: |
# pyproject.toml
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "example_package"
version = "0.0.1"
authors = [
{ name="Example Author", email="author@example.com" },
]
description = "A small example package"
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
"Homepage" = "https://github.com/pypa/sampleproject"
"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"