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

Publish pip package from travis #38

Open
kkazmierczyk opened this issue Nov 18, 2024 · 2 comments · May be fixed by #81
Open

Publish pip package from travis #38

kkazmierczyk opened this issue Nov 18, 2024 · 2 comments · May be fixed by #81
Assignees
Labels
enhancement New feature or request

Comments

@kkazmierczyk
Copy link
Collaborator

kkazmierczyk commented Nov 18, 2024

Once #37 is done, to avoid repetitive manual deployment, we can automate publishing pipy package and github one by using travis.

The solution is described on https://docs.travis-ci.com/user/deployment-v2/

Current steps to publish:
git tag 2.0 # Create tag
git push --tags # Push tag (you can do it from Pycharm)
python3 -m build # Build pip package with version from tag
python3 -m twine upload --repository testpypi dist/* # Send to test pip repository
pip install --extra-index-url https://test.pypi.org/simple/ javacore-analyser --upgrade # Test if you can run the tool
javacore_analyser_batch ~/Documents/waitdata/waitData2.zip /tmp/waitreport # Smoke test of new version

python3 -m twine upload dist/* # Send to production pip repository

Navigate to
https://github.com/IBM/javacore-analyser/tags
click on Create release
Select previous tag and click on "Generate release notes"
Attach the files from dist directory (whl package and tar.gz)
Click to Submit

@kkazmierczyk kkazmierczyk added the good first issue Good for newcomers label Nov 18, 2024
@kkazmierczyk kkazmierczyk self-assigned this Nov 18, 2024
@kkazmierczyk
Copy link
Collaborator Author

Currently it is blocked by #12

kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
@kkazmierczyk kkazmierczyk linked a pull request Dec 23, 2024 that will close this issue
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
@kkazmierczyk
Copy link
Collaborator Author

Note: travis does not support toml file which we are using: travis-ci/dpl#822. Will have to make publish manually from https://packaging.python.org/en/latest/tutorials/packaging-projects/:
python3 -m twine upload --repository testpypi dist/*

kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
kkazmierczyk added a commit that referenced this issue Dec 23, 2024
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
@kkazmierczyk kkazmierczyk added enhancement New feature or request and removed good first issue Good for newcomers labels Dec 23, 2024
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 a pull request may close this issue.

1 participant