Skip to content
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

Adding feature to publish to TestPyPI #527

Merged
merged 14 commits into from
Oct 7, 2022

Conversation

Magnus167
Copy link
Member

Adding a feature to publish to TestPyPI using GitHub Actions

@Magnus167 Magnus167 linked an issue Sep 29, 2022 that may be closed by this pull request
Copy link
Member

@lsimonsen lsimonsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Magnus167 and @mikiinterfiore left a few comments for you. Let me know what you think.

tests/integration/test_testpypi_version.py Outdated Show resolved Hide resolved
tests/integration/test_testpypi_version.py Outdated Show resolved Hide resolved
Comment on lines 6 to 13
try:
from .version import git_revision as __git_revision__
from .version import version as __version__
except ModuleNotFoundError:
from setup import get_version_info
FULLVERSION, GIT_REVISION = get_version_info()
__version__ = FULLVERSION
__git_revision__ = GIT_REVISION
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we added this to the macrosynergy.__init__ we should be able to get it as:

from macrosynergy import __version__

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated that now

# test for TestPyPI version number

package = 'macrosynergy'
with requests.get(f'https://test.pypi.org/pypi/{package}/json') as r:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not put the package name directly in the URL, so that it becomes with requests.get(f'https://test.pypi.org/pypi/macrosynergy/json') as r:?

setup.py Outdated
Comment on lines 37 to 40

MICRO = 18
ISRELEASED = True

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reasons for the blank spaces?

@lsimonsen lsimonsen added the enhancement New feature or request label Sep 29, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2022

Codecov Report

❗ No coverage uploaded for pull request base (develop@b55ef47). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #527   +/-   ##
==========================================
  Coverage           ?   60.35%           
==========================================
  Files              ?       26           
  Lines              ?     2797           
  Branches           ?        0           
==========================================
  Hits               ?     1688           
  Misses             ?     1109           
  Partials           ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@lsimonsen lsimonsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good to go 🚀

@Magnus167 Magnus167 merged commit 416a64d into develop Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub actions: Publish PyPI package
4 participants