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

PyPI release #195

Closed
2 tasks done
osma opened this issue Oct 22, 2018 · 6 comments
Closed
2 tasks done

PyPI release #195

osma opened this issue Oct 22, 2018 · 6 comments
Milestone

Comments

@osma
Copy link
Member

osma commented Oct 22, 2018

It should be possible to install Annif from PyPI.

There is a test build on TestPyPI. Outstanding issues:

  • README is incorrectly formatted - probably need to specify it's in Markdown format
  • cannot find config.py since it's outside the annif module - need to think about how to handle configuration
@osma
Copy link
Member Author

osma commented Nov 13, 2018

There is now a new 0.36 release on TestPyPI: https://test.pypi.org/manage/project/annif/releases/

@osma osma modified the milestones: v0.36, v0.37 Nov 13, 2018
@osma
Copy link
Member Author

osma commented Nov 13, 2018

Moving to v0.37 since v0.36 is already out. But basically this involves testing the v0.36 release that is now on TestPyPI and if everything works, upload it (or a subsequent v0.36.N patch release) to the real PyPI.
Finally, automate the upload via Travis so that when v0.37 is done, it will be pushed to PyPI automatically.

osma added a commit that referenced this issue Nov 21, 2018
@osma
Copy link
Member Author

osma commented Nov 21, 2018

Renamed the package to lowercase "annif" and deleted the "Annif" package from TestPyPI to avoid confusion.

@osma
Copy link
Member Author

osma commented Nov 21, 2018

Now there's annif 0.36.1 on TestPyPI and trying to install it into a venv like this:

pip install --extra-index-url https://test.pypi.org/simple/ annif

Installing seems to work fine but there is a problem with configuration handling. Annif looks for a projects.cfg file in the current directory only. It's possible to override the default configuration using the ANNIF_SETTINGS environment variable, but it's a bit awkward. I think two things are needed:

  1. Make it possible to set the path to projects.cfg with a command line option
  2. Make it possible to set the path to projects.cfg using an environment variable such as ANNIF_PROJECTS

@osma
Copy link
Member Author

osma commented Nov 21, 2018

With #211 implemented, the configuration handling is now good enough. But there's another problem with connexion, swagger-ui is optional since the 2.0 release.

@osma
Copy link
Member Author

osma commented Nov 21, 2018

Autodeploy via Travis is working, hooray!

@osma osma closed this as completed Nov 21, 2018
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

1 participant