Skip to content

Commit 5a24fe1

Browse files
committed
Upgrade to work at python 3.10+
1 parent b0c42dd commit 5a24fe1

File tree

6 files changed

+29
-25
lines changed

6 files changed

+29
-25
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ on:
55
inputs:
66
py_version:
77
description: 'Python version'
8-
default: '3.7'
8+
default: '3.8'
99
required: false
1010
type: string
1111

1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 1
19-
- uses: actions/setup-python@v2
19+
- uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ inputs.py_version }}
2222
- name: Install dependencies
@@ -27,7 +27,7 @@ jobs:
2727
- name: Build package
2828
run: python setup.py sdist bdist_wheel
2929
- name: Store dist for 2w
30-
uses: actions/upload-artifact@v2
30+
uses: actions/upload-artifact@v4
3131
with:
3232
name: CrossPM packages
3333
path: dist/

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
needs: build-packages
1717
steps:
1818
- name: Download Artifacts
19-
uses: actions/download-artifact@v2
19+
uses: actions/download-artifact@v4
2020
with:
2121
name: CrossPM packages
2222
path: dist/
2323
- name: Publish package
24-
uses: pypa/gh-action-pypi-publish@release/v1
24+
uses: pypa/gh-action-pypi-publish@release/v4
2525
with:
2626
user: __token__
2727
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/pr-tests.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
python-version:
20-
- '3.6'
21-
- '3.7'
2220
- '3.8'
2321
- '3.9'
2422
- '3.10'
23+
- '3.11'
2524

2625
steps:
27-
- uses: actions/checkout@v1
26+
- uses: actions/checkout@v4
2827
with:
2928
fetch-depth: 1
30-
- uses: actions/setup-python@v2
29+
- uses: actions/setup-python@v5
3130
with:
3231
python-version: ${{ matrix.python-version }}
3332
- name: Install dependencies
@@ -37,7 +36,7 @@ jobs:
3736
- name: Run Tests on Python ${{ matrix.python-version }}
3837
run: |
3938
python -mflake8 crosspm
40-
python -mcoverage run -m py.test tests
39+
python -mcoverage run -m pytest tests
4140
build-artifact:
4241
uses: ./.github/workflows/build.yml
4342
needs: tests

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
docopt==0.6.2
22
dohq-artifactory>=0.8.3
3-
Jinja2>=2.11
3+
Jinja2>=3.1.3
44
patool==1.12
55
pyunpack==0.2
6-
PyYAML>=5.2,<6.0
7-
requests>=2.25.1,<3.0.0
8-
urllib3<1.25,>=1.21.1
6+
PyYAML>=6.0
7+
requests>=2.30.0,<3.0.0
8+
urllib3>=2.2.0

setup.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
long_description=long_description,
4242
download_url='https://github.com/devopshq/crosspm.git',
4343
entry_points={'console_scripts': ['crosspm=crosspm.__main__:main']},
44-
python_requires='>=3.6.0',
44+
python_requires='>=3.8.0',
4545
classifiers=[
4646
'Development Status :: {}'.format(develop_status),
4747
'Environment :: Console',
@@ -50,9 +50,10 @@
5050
'License :: OSI Approved :: MIT License',
5151
'Natural Language :: English',
5252
'Programming Language :: Python :: 3',
53-
'Programming Language :: Python :: 3.6',
54-
'Programming Language :: Python :: 3.7',
5553
'Programming Language :: Python :: 3.8',
54+
'Programming Language :: Python :: 3.9',
55+
'Programming Language :: Python :: 3.10',
56+
'Programming Language :: Python :: 3.11',
5657
],
5758
keywords=[
5859
'development',
@@ -75,19 +76,17 @@
7576
tests_require=[
7677
"pytest>=5.2",
7778
"pytest-flask>=1.0.0",
78-
"PyYAML>=5.2",
79+
"PyYAML>=6.0",
7980
],
8081
install_requires=[
81-
"requests>=2.25.1,<3.0.0",
82-
'urllib3<1.25,>=1.21.1',
82+
"requests>=2.30.0,<3.0.0",
83+
'urllib3>=2.2.0',
8384
'docopt==0.6.2',
84-
"PyYAML>=5.2,<6.0",
85+
"PyYAML>=6.0",
8586
"dohq-artifactory>=0.8.3",
86-
"Jinja2>=2.11",
87+
"Jinja2>=3.1.3",
8788
'patool==1.12', # need for pyunpack
8889
'pyunpack==0.2',
89-
# 'pyopenssl>=16.2.0',
90-
# 'cryptography>=1.7',
9190
],
9291
package_data={
9392
'': [

tests/conftest.py

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
from crosspm.helpers.package import Package
77

88

9+
def pytest_configure(config):
10+
config.addinivalue_line(
11+
"markers", "artifactoryaql: testing artifactoryaql"
12+
)
13+
14+
915
@pytest.fixture(scope="function")
1016
def package():
1117
params = {'arch': 'x86', 'osname': 'win', 'package': 'package'}

0 commit comments

Comments
 (0)