-
Notifications
You must be signed in to change notification settings - Fork 4
EXP-1213: Add GitHub Actions release automation #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
5d488ac
46305a7
b0d0b69
f970780
541da38
f6217b8
9140078
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: release | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: extractions/setup-just@v3 | ||
| - uses: actions/setup-python@v7 | ||
| with: | ||
| python-version: '3.14' | ||
| - name: Build package | ||
| run: just install build | ||
| - name: Publish to PyPi | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| password: ${{ secrets.PYPI_API_TOKEN }} | ||
| - name: Upload assets to release | ||
| uses: AButler/upload-release-assets@v3.0.1 | ||
| with: | ||
| files: 'dist/*' | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
|
Comment on lines
+10
to
+27
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| *.egg-info | ||
| .cache/ | ||
| venv/ | ||
| .venv/ | ||
| .tox | ||
| test-*.xml | ||
| .coverage | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Install the project and build its dependencies. | ||
| install: | ||
| python -m venv venv | ||
| venv/bin/pip install -e '.[dev]' | ||
|
|
||
| # build sdist and wheel into dist/ | ||
| build: | ||
| venv/bin/pip install build | ||
| venv/bin/python -m build |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| [build-system] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we're committing to switching to |
||
| requires = ["setuptools>=61", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "pystalk" | ||
| description = "An extremely simple Python client for beanstalkd" | ||
| dynamic = ["version"] | ||
| readme = "README.md" | ||
| requires-python = ">=3.6, <4" | ||
| license = { file = "LICENSE.txt" } | ||
| authors = [{ name = "EasyPost", email = "oss@easypost.com" }] | ||
| dependencies = [ | ||
| "PyYAML>=3.0", | ||
| "attrs>=19.2", | ||
| "six", | ||
| ] | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Environment :: Console", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3.6", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Intended Audience :: System Administrators", | ||
| "Operating System :: OS Independent", | ||
| "Topic :: Database", | ||
| "License :: OSI Approved :: ISC License (ISCL)", | ||
| ] | ||
| [project.optional-dependencies] | ||
| dev = [ | ||
| "flake8", | ||
| "mock", | ||
| "mypy==0.971", | ||
| "pytest==7.*", | ||
| "pytest-cov==3.*", | ||
| "pytest-mock==3.*", | ||
| "types-PyYAML", | ||
| "types-six", | ||
| ] | ||
| docs = [ | ||
| "PyYAML>=3.0", | ||
| "sphinx", | ||
| "sphinx-autobuild", | ||
| ] | ||
|
Comment on lines
+37
to
+47
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: anytime there are lists that ordering isn't important, they should be ordered alphabetically for easier maintenance. |
||
|
|
||
| [project.urls] | ||
| Source = "https://github.com/easypost/pystalk" | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "pystalk.__version__" } | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| exclude = ["tests", "tests.*"] | ||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.