-
Notifications
You must be signed in to change notification settings - Fork 7
Prepare a package for publishing #6
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
Changes from all commits
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,30 @@ | ||
# This workflows uploads a Python Package using Flit when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
name: Upload a release to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Flit | ||
run: | | ||
python -m pip install flit | ||
|
||
- name: Publish | ||
env: | ||
FLIT_USERNAME: __token__ | ||
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: python -m flit publish |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,17 @@ build-backend = "flit_core.buildapi" | |
|
||
[project] | ||
name = "godice" | ||
authors = [{name = "Particula", email = "iavtomator@gmail.com"}] | ||
authors = [ | ||
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. @Geek5510 please update/extend authors list as needed. I recognize my work was based on knowledge of others about device API |
||
{name = "Guy Levi", email = "todo_update@it.com"}, | ||
{name = "Anton Ptashnik", email = "iavtomator@gmail.com"}, | ||
] | ||
license = {file = "LICENSE.md"} | ||
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. @Geek5510 I'm not strong in licensing but I'm almost sure a published package should have a correct one. I see the repo has some custom license while open source projects usually have MIT or similar one. |
||
classifiers = [ | ||
"Framework :: AsyncIO", | ||
"Operating System :: Microsoft :: Windows :: Windows 10", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS", | ||
] | ||
readme = "README.md" | ||
dynamic = ["version", "description"] | ||
dependencies = [ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a badge will render correctly after publishing the package