Skip to content

Commit 7eb9fa3

Browse files
committed
use toml instead of setup.py, update python prerequisites, update license, update ci workflow to include docs, remove travis, auto generate version number, update read-me
1 parent 8ebf15b commit 7eb9fa3

15 files changed

Lines changed: 43 additions & 114 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.9', '3.10', '3.11']
18+
python-version: ['3.10', '3.11', '3.12']
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
@@ -48,10 +48,10 @@ jobs:
4848
python-version: 3.x
4949
- name: Install dependencies
5050
run: |
51-
python -m pip install --upgrade pip setuptools wheel
51+
python -m pip install --upgrade build
5252
- name: Build package
5353
run: |
54-
python setup.py sdist bdist_wheel
54+
python -m build
5555
- name: Deploy to PyPi
5656
uses: pypa/gh-action-pypi-publish@release/v1
5757
with:
@@ -64,6 +64,6 @@ jobs:
6464
uses: aliencube/microsoft-teams-actions@v0.8.0
6565
with:
6666
webhook_uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
67-
title: CTERA Python SDK version ${{ steps.tagName.outputs.tag }} was released
68-
summary: Python SDK Version
69-
actions: '[{ "@type": "OpenUri", "name": "PyPi", "targets": [{ "os": "default", "uri": "https://pypi.org/project/cterasdk/"}] }]'
67+
title: New Release: CTERA SDK ${{ steps.tagName.outputs.tag }}
68+
summary: Python SDK
69+
actions: '[{ "@type": "OpenUri", "name": "PyPi", "targets": [{ "os": "default", "uri": "https://pypi.org/project/cterasdk/"}] }, { "@type": "OpenUri", "name": "Docs", "targets": [{ "os": "default", "uri": "https://ctera-python-sdk.readthedocs.io/en/latest/"}] }]'

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.travis/install.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis/run.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

Dockerfile.cterasdk-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6
1+
FROM python:3.11
22

33
# Install packages required for the tests
44
COPY test-requirements.txt /tmp/test-requirements.txt

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2020, CTERA Networks
1+
Copyright 2025, CTERA Networks
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

MANIFEST.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
recursive-exclude tests *
22
recursive-exclude docs *
3-
recursive-exclude samples *
4-
recursive-exclude .travis *
5-
exclude doc8.ini Dockerfile.cterasdk-build .flake8 .gitignore Makefile .pylintrc skipper.yaml test-requirements.txt tox.ini .travis.yml ut-requirements.txt
6-
exclude
3+
exclude doc8.ini Dockerfile.cterasdk-build .flake8 .gitignore Makefile .pylintrc skipper.yaml test-requirements.txt tox.ini ut-requirements.txt
74
global-exclude *.py[cod]

README.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
CTERA SDK for Python
33
====================
44

5-
.. image:: https://travis-ci.com/ctera/ctera-python-sdk.svg?branch=master
6-
:target: https://travis-ci.com/ctera/ctera-python-sdk
75
.. image:: https://github.com/ctera/ctera-python-sdk/workflows/CI/badge.svg
86
:target: https://github.com/ctera/ctera-python-sdk/actions?query=workflow%3ACI
97
.. image:: https://readthedocs.org/projects/ctera-python-sdk/badge/?version=latest
@@ -51,7 +49,7 @@ Install from source:
5149
5250
$ git clone https://github.com/ctera/ctera-python-sdk.git
5351
$ cd ctera-python-sdk
54-
$ python setup.py install
52+
$ python -m build
5553
5654
Importing the Library
5755
======================

cterasdk/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# pylint: disable=wrong-import-position
22
import cterasdk.settings # noqa: E402, F401
33
import cterasdk.exceptions # noqa: E402, F401
4-
from .version import __version__ # noqa: E402, F401
54

65
from .common import Object, PolicyRule # noqa: E402, F401
76
from .convert import fromjsonstr, tojsonstr, fromxmlstr, toxmlstr # noqa: E402, F401

cterasdk/version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)