Giter VIP home page Giter VIP logo

Comments (8)

jpmckinney avatar jpmckinney commented on August 23, 2024

Hmm, I didn't suspect that Process deployed the master branch of Views, since master branches in our setup are development branches…

Anyhow, the deployment can be somewhat simplified by pip install -e git+https://github.com/open-contracting/kingfisher-views.git#egg=ocdskingfisherviews

And then instead of changing into its directory, ocdskingfisher-views-cli will simply be available as a command-line tool from any directory.

from deploy.

odscjames avatar odscjames commented on August 23, 2024

since master branches in our setup are development branches…

For scrape, process and views we don't have any versioning process at present tho, so it's not a "dev" branch. It's more a continuous deployment type thing - as soon as something is merged to master, it should be considered deployable. Happy to discuss that, tho a new issue would be good, let's keep this issue on track.

I'll tag @kindly to comment on method of installation, we'll chat.

from deploy.

odscjames avatar odscjames commented on August 23, 2024

Have chatted. Personally because you have to change into the directory to activate the virtual environment anyway it never bothered me that the command only works from one place (and I think we definitely want to keep a virtual env) - but happy to try an option that allows running from any directory.

from deploy.

jpmckinney avatar jpmckinney commented on August 23, 2024

I think if it's installed with setup.py then it will be available from any directory – once the virtualenv is activated.

Whether we install via setup.py or requirements.txt is the discussion in open-contracting/lib-cove-ocds#28 (comment)

If we end up installing with requirements.txt, then we can just have the command run from one place.

from deploy.

odscjames avatar odscjames commented on August 23, 2024

Make sure Python dependencies are working, including knock on effects

from deploy.

odscjames avatar odscjames commented on August 23, 2024

The original problem that prompted this ticket has been fixed and deploys are fine.

Is there anything that has come out of this discussion you want to pick up as distinct tasks to look at? I think because views doesn't have a setup.py there isn't at the moment, and open-contracting-archive/kingfisher-vagrant#329 might change how it's installed anyway.

For scrape, process and views we don't have any versioning process at present tho, so it's not a "dev" branch. It's more a continuous deployment type thing - as soon as something is merged to master, it should be considered deployable.

Should this be documented somewhere, the Sphinx docs for each repo maybe, or the standards handbook?

from deploy.

jpmckinney avatar jpmckinney commented on August 23, 2024

I made this PR: https://github.com/open-contracting/standard-development-handbook/pull/222/files

from deploy.

odscjames avatar odscjames commented on August 23, 2024

Now that's merged, I think this can be closed?

from deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.