Coder Social home page Coder Social logo

spacetelescope / action-publish_to_pypi Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 7.0 28 KB

Github action definition to allow for publication of a python package to PyPI upon a qualifying release event.

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 17.04% Shell 72.01% Python 10.94%

action-publish_to_pypi's People

Contributors

bgannon2 avatar jneu avatar pllim avatar rendinam avatar zanecodes avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

action-publish_to_pypi's Issues

Comments and questions

  1. Would be nice to have some examples of what makes a good version and a bad one.
  2. What if a PyPI package of that name exists already but not ours?
  3. "Whenever a new release with a semver-compliant tag is made on Github from the repository, ..." -- So, not only the tag needs to be semver, but the person need to push the "edit tag" and then "publish release" buttons, right? This should be made clearer.
  4. "an e-mail message" -- Whose email will it use? Is it customizable, say, to point to a mailing list?
  5. Nice to have: Screenshots to go with the instructions.

Migrate from macos-10.15 to macos-11?

github looks to have deprecated macos-10.15 runners in Aug 2022.
https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/

I have a long running build_wheels job that has been stalled for a few hours to build the macos-10.15 wheel that I think is hanging because these runners no longer exist. I think this line
https://github.com/spacetelescope/action-publish_to_pypi/blob/master/.github/workflows/workflow.yml#L36
needs to get updated to macos-11 or macos-latest?

I have a job that is stalled, I believe because the macos-10.15 runners don't exist.
https://github.com/spacetelescope/romanisim/actions/runs/5091745247/jobs/9152188689

Sorry if I'm way off base---I don't really know anything about github actions / runners / pypi / wheels / ..., but the breadcrumbs looked pretty clear to me. I am confused though about what I'm doing differently to see this.

stistools published as wrong version

A recent update to stistools tagged as 1.4.3 got published to PyPI as version 0.0.0 (at the bottom).

The github actions log shows:

2022-12-22T19:21:10.6494752Z Version validation argument: refs/tags/1.4.3
2022-12-22T19:21:10.6495019Z Tag: 1.4.3
2022-12-22T19:21:10.6495221Z Tag is a valid semver value.
2022-12-22T19:21:10.6533239Z Prepare for publication...
...
2022-12-22T19:21:11.4063530Z Uploading distributions to https://upload.pypi.org/legacy/
2022-12-22T19:21:11.4064081Z Uploading stistools-0.0.0.tar.gz
2022-12-22T19:21:11.4064238Z 
2022-12-22T19:21:12.8159664Z   0%|          | 0.00/112k [00:00<?, ?B/s]
2022-12-22T19:21:12.8212836Z 100%|##########| 112k/112k [00:01<00:00, 81.4kB/s]
2022-12-22T19:21:12.8213027Z 
2022-12-22T19:21:12.8213098Z View at:
2022-12-22T19:21:12.8213349Z https://pypi.org/project/stistools/0.0.0/

Any idea what's going on here?

cc: @stscirij

`$GITHUB_REF` not found when publishing `costools`

When running the validate action when publishing costools 1.2.6, the following issue occurs:
https://github.com/spacetelescope/costools/actions/runs/4104843972/jobs/7081101370

Version validation argument: 
Tag: 
Traceback (most recent call last):
  File "<stdin>", line 9, in <module>
  File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/semver.py", line 726, in parse
    raise ValueError("%s is not valid SemVer string" % version)
ValueError:  is not valid SemVer string

It appears that this should be $GITHUB_REF, but the variable is empty:

import os
import semver
gitref = os.environ['GITHUB_REF']
print(f'\nVersion validation argument: {gitref}')
tag = gitref.split('/')[-1]
print(f'Tag: {tag}')
version = semver.VersionInfo.parse(tag.lstrip('v'))
print('Tag is a valid semver value.')

Skipping a platform when building wheels

Is there a way I can skip a platform when building wheels for a specific repository?
More specifically, is there a way to pass a configuration option to cibuildwheel skipping a platform, e.g.

CIBW_SKIP: "*-manylinux_i686"

PEP 517?

๐Ÿคท ๐Ÿ˜‰ ๐Ÿ˜ฌ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.