Skip to content

Commit

Permalink
Merge e2c5f1c into 4aef2b2
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagl committed Oct 20, 2021
2 parents 4aef2b2 + e2c5f1c commit 0fccc93
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 144 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ tests/htmlcov/*
*~
*.tmp
.pre-commit-config.yaml
.vscode

# Debian generated files
debian/.debhelper/*
Expand Down
Empty file removed .gitmodules
Empty file.
33 changes: 19 additions & 14 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
# License files
include LICENSE*
include README.md

# Test related files
include tox.ini
recursive-include tests *.py
recursive-include tests *.md
include tests/repository_data/keystore/delegation_key
include tests/repository_data/keystore/root_key*
include tests/repository_data/keystore/snapshot_key
include tests/repository_data/keystore/targets_key
include tests/repository_data/keystore/timestamp_key
include tests/ssl_certs/*.crt
include tests/ssl_certs/*.key

recursive-include docs *.txt
recursive-include docs *.md
recursive-include docs *.rst
recursive-include docs/images *.png
recursive-include tuf/scripts *.py
recursive-include examples *
recursive-include tests *.py
recursive-include tests *.pem
recursive-include tests *.json
recursive-include tests *.txt
recursive-include tests *.cfg
recursive-include tests *.coveragerc
recursive-include tests *.gz
recursive-include tests *.pub
recursive-include tuf *.gitignore

# Docs
include docs/conf.py
recursive-include tuf *.md
recursive-include tuf *.rst
recursive-include tuf *.yml
recursive-include docs *.txt
recursive-include docs *.md
recursive-include docs *.rst

# To remove
recursive-include tuf/scripts *.py

# Development related files are not required in sdist
exclude pylintrc
exclude tuf/api/pylintrc
exclude requirements*txt
8 changes: 3 additions & 5 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
* Test packaging, uploading to Test PyPI and installing from a virtual environment
(ensure commands invoking `python` below are using Python 3)
* Remove existing dist build dirs
* Create source dist `python3 setup.py sdist`
* Create wheel `python3 setup.py bdist_wheel`
* Create source dist and wheel `python3 -m build`
* Sign the dists `gpg --detach-sign -a dist/tuf-vA.B.C.tar.gz`
* Upload to test PyPI `twine upload --repository testpypi dist/*`
* Verify the uploaded package https://testpypi.python.org/pypi/tuf/
Expand All @@ -24,13 +23,12 @@
* Create a package for the formal release
(ensure commands invoking `python` below are using Python 3)
* Remove existing dist build dirs
* Create source dist `python3 setup.py sdist`
* Create wheel `python3 setup.py bdist_wheel`
* Create source dist and wheel `python3 -m build`
* Sign source dist `gpg --detach-sign -a dist/tuf-vA.B.C.tar.gz`
* Sign wheel `gpg --detach-sign -a dist/tuf-vA.B.C-py3-none-any.whl`
* Upload to test PyPI `twine upload --repository testpypi dist/*`
* Verify the uploaded package https://testpypi.python.org/pypi/tuf/
* Upload to PyPI `twine upload dist/*`
* Attach the signed dists to the release on GitHub
* Attach both signed dists and their detached signatures to the release on GitHub
* Announce the release on [#tuf on CNCF Slack](https://cloud-native.slack.com/archives/C8NMD3QJ3)
* Ensure [POUF 1](https://github.com/theupdateframework/taps/blob/master/POUFs/reference-POUF/pouf1.md), for the reference implementation, is up-to-date
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Install tuf in editable mode and requirements for local testing with tox,
# and also for running test suite or individual tests manually
build
tox
twine
wheel
-r requirements-test.txt
-e .
53 changes: 50 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,55 @@
[metadata]
name = tuf
version = 0.19.0
author = https://www.updateframework.com
author_email = theupdateframework@googlegroups.com
description = A secure updater framework for Python
long_description = file: README.md
long_description_content_type = text/markdown
url = https://www.updateframework.com
project_urls =
Documentation = https://theupdateframework.readthedocs.io/en/stable/
Issues = https://github.com/theupdateframework/python-tuf/issues
Source = https://github.com/theupdateframework/python-tuf
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: MIT License
License :: OSI Approved :: Apache Software License
Operating System :: POSIX
Operating System :: POSIX :: Linux
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Topic :: Security
Topic :: Software Development
keywords = update updater secure authentication key compromise revocation
license_files = LICENSE LICENSE-MIT

[options]
packages = find:
scripts =
tuf/scripts/repo.py
tuf/scripts/client.py
python_requires = ~=3.6
install_requires =
requests>=2.19.1
securesystemslib>=0.20.0

[options.packages.find]
exclude = tests

[check-manifest]
ignore =
requirements-dev.txt
.travis.yml
.coveragerc
.fossa.yml
.readthedocs.yaml
docs/images/*
docs/latex/*

[mypy]
warn_unused_configs = True
Expand Down
122 changes: 0 additions & 122 deletions setup.py

This file was deleted.

0 comments on commit 0fccc93

Please sign in to comment.