Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
VERSION=$(hatch version | cut -d+ -f1)
echo "VERSION=$VERSION" >> $GITHUB_ENV
if curl -s -f https://test.pypi.org/pypi/socket-sdk-python/$VERSION/json > /dev/null; then
if curl -s -f https://test.pypi.org/pypi/socketdev/$VERSION/json > /dev/null; then
echo "Version ${VERSION} already exists on Test PyPI"
echo "exists=true" >> $GITHUB_OUTPUT
else
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:

Install with:
\`\`\`bash
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socket-sdk-python==${version}
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketdev==${version}
\`\`\``;

if (botComment) {
Expand Down Expand Up @@ -118,9 +118,9 @@ jobs:
VERSION: ${{ env.VERSION }}
run: |
for i in {1..30}; do
if pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socket-sdk-python==${VERSION}; then
if pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketdev==${VERSION}; then
echo "Package ${VERSION} is now available and installable on Test PyPI"
pip uninstall -y socket-sdk-python
pip uninstall -y socketdev
echo "success=true" >> $GITHUB_OUTPUT
exit 0
fi
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
env:
VERSION: ${{ env.VERSION }}
run: |
if curl -s -f https://pypi.org/pypi/socket-sdk-python/$VERSION/json > /dev/null; then
if curl -s -f https://pypi.org/pypi/socketdev/$VERSION/json > /dev/null; then
echo "Version ${VERSION} already exists on PyPI"
echo "pypi_exists=true" >> $GITHUB_OUTPUT
else
Expand All @@ -62,9 +62,9 @@ jobs:
VERSION: ${{ env.VERSION }}
run: |
for i in {1..30}; do
if pip install socket-sdk-python==${VERSION}; then
if pip install socketdev==${VERSION}; then
echo "Package ${VERSION} is now available and installable on PyPI"
pip uninstall -y socket-sdk-python
pip uninstall -y socketdev
echo "success=true" >> $GITHUB_OUTPUT
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion .hooks/sync_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

VERSION_PATTERN = re.compile(r"__version__\s*=\s*['\"]([^'\"]+)['\"]")
PYPROJECT_PATTERN = re.compile(r'^version\s*=\s*".*"$', re.MULTILINE)
PYPI_API = "https://test.pypi.org/pypi/socket-sdk-python/json"
PYPI_API = "https://test.pypi.org/pypi/socketdev/json"

def read_version_from_version_file(path: pathlib.Path) -> str:
content = path.read_text()
Expand Down
14 changes: 2 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@

socket-python-sdk
#################

.. warning::
**DEPRECATED**: This package is deprecated. Please migrate to the new ``socketdev`` package:

.. code-block:: bash

pip uninstall socket-sdk-python
pip install socketdev

The API remains exactly the same, only the package name has changed. This package will no longer receive updates.
socketdev
#########

Purpose
-------
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "socket-sdk-python"
version = "2.2.3"
name = "socketdev"
version = "3.0.0"
requires-python = ">= 3.9"
dependencies = [
'requests',
'typing-extensions>=4.12.2'
]
readme = "README.rst"
license = {file = "LICENSE"}
description = "Socket Security Python SDK [DEPRECATED: Please use 'socketdev' package instead]"
description = "Socket Security Python SDK"
keywords = ["socketsecurity", "socket.dev", "sca", "oss", "security", "sdk"]
authors = [
{name = "Douglas Coburn", email = "douglas@socket.dev"}
Expand All @@ -21,7 +21,7 @@ maintainers = [
{name = "Douglas Coburn", email = "douglas@socket.dev"}
]
classifiers = [
"Development Status :: 7 - Inactive",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -51,7 +51,7 @@ test = [
]

[project.urls]
Homepage = "https://github.com/socketdev/socket-sdk-python"
Homepage = "https://github.com/socketdev/socketdev"

[tool.ruff]
# Exclude a variety of commonly ignored directories.
Expand Down
72 changes: 0 additions & 72 deletions requirements-dev.lock

This file was deleted.

72 changes: 0 additions & 72 deletions requirements.lock

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/deploy-test-pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BACKUP_FILE="${VERSION_FILE}.bak"

# Get existing versions from TestPyPI
echo "Checking existing versions on TestPyPI..."
EXISTING_VERSIONS=$(curl -s https://test.pypi.org/pypi/socket-sdk-python/json | python -c "
EXISTING_VERSIONS=$(curl -s https://test.pypi.org/pypi/socketdev/json | python -c "
import sys, json
data = json.load(sys.stdin)
versions = [v for v in data.get('releases', {}).keys() if v.startswith('$ORIGINAL_VERSION.dev')]
Expand Down
12 changes: 0 additions & 12 deletions socketdev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@
from socketdev.labels import Labels
from socketdev.licensemetadata import LicenseMetadata
from socketdev.log import log
import warnings


# Deprecation warning for socket-sdk-python package
warnings.warn(
"The 'socket-sdk-python' package is deprecated and will no longer receive updates. "
"Please migrate to the new 'socketdev' package: pip install socketdev. "
"The API remains the same, only the package name has changed. "
"For more information, see: https://github.com/SocketDev/socket-sdk-python",
DeprecationWarning,
stacklevel=2
)

__author__ = "socket.dev"
__version__ = __version__
Expand Down
2 changes: 1 addition & 1 deletion socketdev/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.2.3"
__version__ = "3.0.0"
Loading
Loading