question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create the python package too

See original GitHub issue

https://github.com/rom1504/taming-transformers/blob/master/.github/workflows/python-publish.yml is a good way to release when a GitHub release is created (put __token__ as user secret, and get a token in pypi for the password)

https://github.com/PrismarineJS/mineflayer/blob/master/.github/workflows/npm-publish.yml if you also have something like this then the release procedure will be to create a commit named “Release x.y.z” containing version update to package.json and setup.py (and maybe a change log) and then everything will be automatic:

  • npm publish will publish to npm and create a GitHub release
  • that will trigger pypi release which will release to pypi

(For the npm one you also need to put some npm token in secret)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Carreaucommented, Jul 13, 2021

Ok, I think I fixed it.

Invitation sent.

We can switch to version 2 for the python package I think, since it would be a breaking change. Thanks.

Problem is that the version I published are 2015.x.x, so you either need to delete them (which I’m not even sure would work), or publish a version number greater than 2015.x.x, you can though prepend the version number with 1! to restart the versioning scheme.

Epoch have been made explicitely for this:

However, by specifying an explicit epoch, the sort order can be changed appropriately, as all versions from a later epoch are sorted after versions from an earlier epoch:

2013.10
2014.04
1!1.0
1!1.1
1!2.0

So this will allow you to have lower version numbers seen as more recent.

0reactions
Carreaucommented, Jul 15, 2021

Congrats! Don’t forget to remove me as owner of all goes well.

On Thu, Jul 15, 2021, 11:01 Romain Beaumont @.***> wrote:

Closed #1 https://github.com/extremeheat/JSPyBridge/issues/1.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extremeheat/JSPyBridge/issues/1#event-5024125617, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACR5T57KLT4HLJLWWXWLMDTX2PYBANCNFSM47YAXJDQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making a Python Package
Create the basic package structure · Write a setup.py · pip install -e . · Put some tests in package/test · pytest in...
Read more >
How to Create Python Packages - Towards Data Science
In this article, we will learn how to build our own packages. And add them to the Python Package Index (PyPI). Afterward, we...
Read more >
Packaging Python Projects
This tutorial walks you through how to package a simple Python project. It will show you how to add the necessary files and...
Read more >
How to create a Python package in 2022 - Mathspp
In order to create a Python package, you need to write the code that implements the functionality you want to put in your...
Read more >
How to Build a Python Package? - DevTeam.Space
You now need to build the packages that Python will require. This process involves creating a source distribution. You need to create a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found