Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Publish to pypi#59

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ThomasWaldmann merged 2 commits intomicropython:masterfromwnienhaus:publish-to-pypi
Nov 21, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions.github/workflows/publish.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
name: Publish Python Package

on:
# trigger when publishing a release
release:
types: [published]

# also allow triggering this workflow manually for testing
workflow_dispatch:

jobs:
publish:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
# just fetching 1 commit is not enough for setuptools-scm, so we fetch all
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install setuptools setuptools_scm
- name: Build package
run: |
python setup.py sdist
rm dist/*.orig # clean sdist_upip noise
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event.release.tag_name # only when releasing a new version
with:
password: ${{ secrets.PYPI_API_TOKEN }}
7 changes: 4 additions & 3 deletionssetup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,8 +2,6 @@
import sdist_upip
from setuptools import setup

VERSION = "1.0.0"


def long_desc_from_readme():
with open('README.rst', 'r') as fd:
Expand All@@ -20,7 +18,9 @@ def long_desc_from_readme():

setup(
name="micropython-py-esp32-ulp",
version=VERSION,
use_scm_version={
'local_scheme': 'no-local-version',
},
description="Assembler toolchain for the ESP32 ULP co-processor, written in MicroPython",
long_description=long_desc_from_readme(),
long_description_content_type='text/x-rst',
Expand All@@ -34,6 +34,7 @@ def long_desc_from_readme():
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: Implementation :: MicroPython',
],
setup_requires=['setuptools_scm'],
platforms=["esp32", "linux", "darwin"],
cmdclass={"sdist": sdist_upip.sdist},
packages=["esp32_ulp"],
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp