Skip to content

Commit 50706a1

Browse files
authored
Merge pull request #2 from ModernMAK/indev
Update Package Info & GitHub CI
2 parents 7ce96a6 + c8a6bfa commit 50706a1

File tree

4 files changed

+68
-4
lines changed

4 files changed

+68
-4
lines changed

.github/workflows/publish-pypi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install build
22+
- name: Build package
23+
run: python -m build
24+
- name: Publish package
25+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
26+
with:
27+
user: __token__
28+
password: ${{ secrets.PYPI_API_TOKEN }}
29+
repository_url: https://pypi.org/legacy/
30+

.github/workflows/pytest-skipped.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow should allow protected branches to merge when Pytest is a required check
2+
# While modifying pytest.yaml will invalidate tests, modifying this file (pytest-skipped.yaml) will not invalidate tests
3+
name: Pytest
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
paths-ignore:
9+
- 'src/**'
10+
- 'tests/**'
11+
- '.github/workflows/pytest.yaml'
12+
pull_request:
13+
branches: [ main ]
14+
paths-ignore:
15+
- 'src/**'
16+
- 'tests/**'
17+
- '.github/workflows/pytest.yaml'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- run: 'echo "No build required" '

.github/workflows/pytest.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ name: Pytest
66
on:
77
push:
88
branches: [ main ]
9+
paths:
10+
- 'src/**'
11+
- 'tests/**'
12+
- '.github/workflows/pytest.yaml'
913
pull_request:
1014
branches: [ main ]
15+
paths:
16+
- 'src/**'
17+
- 'tests/**'
18+
- '.github/workflows/pytest.yaml'
1119

1220
jobs:
1321
build:

setup.cfg

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
[metadata]
2-
name = struct-lib
3-
version = 2022.1-b0
2+
name = obj-struct-lib
3+
version = 2022.1-b1
44
author = Marcus Kertesz
5-
description = An object-oriented alternative to the built-in struct module. Still uses struct under the hood, but allows defining user structures, and packing into/from binaryio/bytesio types.
5+
description = An object-oriented alternative to the built-in struct module.
66
long_description = file: README.md
77
long_description_content_type = text/markdown
88
url = https://github.com/ModernMAK/Object-Struct-Library
99
project_urls =
1010
Bug Tracker = https://github.com/ModernMAK/Object-Struct-Library/issues
1111
classifiers =
12-
Programming Language :: Python :: 3
12+
Programming Language :: Python :: 3 :: Only
13+
Programming Language :: Python :: 3.9
14+
Programming Language :: Python :: 3.10
1315
License :: OSI Approved :: MIT License
1416
Operating System :: OS Independent
17+
Topic :: Software Development :: Libraries
1518

1619
[options]
1720
package_dir =

0 commit comments

Comments
 (0)