Skip to content
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
File renamed without changes.
2 changes: 2 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Lint Oras Python
run: |
python --version
python3 -m pip install --upgrade pip
python3 -m pip install pre-commit
python3 -m pip install black
make develop
Expand Down Expand Up @@ -78,5 +79,6 @@ jobs:
registry_port: ${{ job.services.registry.ports[5000] }}
REGISTRY_STORAGE_DELETE_ENABLED: "true"
run: |
python3 -m pip install --upgrade pip
make install
make test
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:

- name: Install dependencies
run: |
pip install -e .
pip install setuptools wheel twine
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x)
- remove `setup.py` and declare all package metadata, install requirements and extras in `pyproject.toml` (PEP 621), drop the packaging constants (`AUTHOR`, `DESCRIPTION`, etc.) from `oras/version.py`, move flake8 config from `setup.cfg` to `.flake8`, and move test dependencies (now including `boto3`) from the `tests` extra and `all` to a `tests` dependency group (PEP 735), and require Python 3.9+ (needed by `setuptools>=77`) (0.2.44)
- clean up temporary directory archives after push and pull, including failed transfers (0.2.44)
- make `username` and `password` optional in `login()` so the interactive prompts can be used, hide password entry and reject empty usernames, closes issue [235](https://github.com/oras-project/oras-py/issues/235) (0.2.44)
- route push completion output through the logger and support the documented `quiet` option, closes issue [229](https://github.com/oras-project/oras-py/issues/229) (0.2.43)
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ test:

.PHONY: install
install:
pip install -e .[all]
pip install -e .[all] --group tests

.PHONY: lint
lint:
pre-commit run --all-files

.PHONY: testreqs
testreqs:
pip install -e .[tests]
pip install -e . --group tests

.PHONY: develop
develop:
pip install -e .[all]
pip install -e .[all] --group tests
pip install -r .github/dev-requirements.txt
4 changes: 2 additions & 2 deletions docs/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Note that we have several extra modes for installation:
# Interactions are done via the docker client instead of manual
$ pip install oras[docker]

# Install dependencies for linting and tests
$ pip install oras[tests]
# From a clone, install dependencies for tests (requires pip>=25.1)
$ pip install --group tests

# Install everything
$ pip install oras[all]
Expand Down
25 changes: 0 additions & 25 deletions oras/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,3 @@
__license__ = "Apache-2.0"

__version__ = "0.2.44"
AUTHOR = "Vanessa Sochat"
EMAIL = "vsoch@users.noreply.github.com"
NAME = "oras"
PACKAGE_URL = "https://github.com/oras-project/oras-py"
KEYWORDS = "oci, registry, storage"
DESCRIPTION = "OCI Registry as Storage Python SDK"
LICENSE = "LICENSE"

################################################################################
# Global requirements

INSTALL_REQUIRES = (
("jsonschema", {"min_version": None}),
("requests", {"min_version": None}),
)

TESTS_REQUIRES = (("pytest", {"min_version": "4.6.2"}),)

DOCKER_REQUIRES = (("docker", {"exact_version": "5.0.1"}),)

ECR_REQUIRES = (("boto3", {"min_version": "1.33.0"}),)

INSTALL_REQUIRES_ALL = (
INSTALL_REQUIRES + TESTS_REQUIRES + DOCKER_REQUIRES + ECR_REQUIRES
)
57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
[build-system]
requires = ["setuptools>=77.0"]
build-backend = "setuptools.build_meta"

[project]
name = "oras"
dynamic = ["version"]
description = "OCI Registry as Storage Python SDK"
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Vanessa Sochat", email = "vsoch@users.noreply.github.com" }]
maintainers = [{ name = "Vanessa Sochat" }]
keywords = ["oci", "registry", "storage"]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"jsonschema",
"requests",
]

[project.optional-dependencies]
all = [
"docker==5.0.1",
"boto3>=1.33.0",
]
docker = ["docker==5.0.1"]
ecr = ["boto3>=1.33.0"]

[project.urls]
Homepage = "https://github.com/oras-project/oras-py"

[dependency-groups]
tests = [
"pytest>=4.6.2",
"boto3>=1.33.0",
]

[tool.setuptools.dynamic]
version = { attr = "oras.version.__version__" }

[tool.setuptools.packages.find]
include = ["oras*"]

[tool.black]
profile = "black"
exclude = '^env/'
Expand Down
107 changes: 0 additions & 107 deletions setup.py

This file was deleted.