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

Deploy Conan develop branch on test.pypi.org #3995

Closed
3 tasks done
uilianries opened this issue Nov 25, 2018 · 5 comments
Closed
3 tasks done

Deploy Conan develop branch on test.pypi.org #3995

uilianries opened this issue Nov 25, 2018 · 5 comments

Comments

@uilianries
Copy link
Member

To help us debug your issue please explain:

Hi!

My proposal here is return to use test.pypi.org (used until Conan 0.4.1) when merging a new PR into develop branch. I see no difficult installing Conan on my machine running pip install . but for who wants to install the latest version (non-stable) without git, it could be an good option.

For example, bincrafters-package-tools is uploaded to test.pypi.org for every new change in master branch (we follow github flow), only tags are uploaded to pypi.org. That flow helped me to find many bugs, including missing files in the package.

The version released could be incremental, using the suffix dev as well.

Conan Version: ANY
OS: ANY

  • I've read the CONTRIBUTING guide.
  • I've specified the Conan version, operating system version and any tool that can be relevant.
  • I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
@memsharded
Copy link
Member

I like very much this idea, and it could help a lot to close the loop easier with feedback from users.
Is this possible @lasote ? What would be the complexity?

@lasote
Copy link
Contributor

lasote commented Nov 26, 2018

Hi, yes, I like it too. The complexity is not high, just automate it in jenkins for the develop branch, but a couple things need to be done, and you know, the CI stuff takes time:

  1. Mechanism to bump the dev version in our __init__.py file
  2. Jenkins job tune: pypi credentials (managed as secret credentials in Jenkins) and deploy when develop

@lasote lasote added this to the 1.10 milestone Nov 26, 2018
@lasote lasote mentioned this issue Nov 26, 2018
@ghost ghost removed the stage: review label Nov 26, 2018
@uilianries
Copy link
Member Author

uilianries commented Nov 26, 2018

It didn't work!

https://conan-ci.jfrog.info/job/ConanTestSuite/job/develop/199/

[ConanTestSuite_develop-6XXKRZDZTIMMO5UOSXZYUZHTL2TUKGT57GNQCTS4IAHI6WAWGY5A] Running shell script
+ python .ci/bump_dev_version.py
Traceback (most recent call last):
  File ".ci/bump_dev_version.py", line 22, in <module>
    bump_dev()
  File ".ci/bump_dev_version.py", line 18, in bump_dev
    replace_in_file(vfile, "-dev'", "-dev%s'" % snapshot)
  File ".ci/bump_dev_version.py", line 6, in replace_in_file
    with open(file_path, "r") as handle:
IOError: [Errno 2] No such file or directory: '/home/jenkins_ci/workspace/ConanTestSuite_develop-6XXKRZDZTIMMO5UOSXZYUZHTL2TUKGT57GNQCTS4IAHI6WAWGY5A/.ci/conans/__init__.py'

@lasote
Copy link
Contributor

lasote commented Nov 27, 2018

I fixed it already. The first auto-packages started to show up: https://test.pypi.org/project/conan/#history

@uilianries
Copy link
Member Author

Amazing! 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants