Giter VIP home page Giter VIP logo

Comments (8)

floringogianu avatar floringogianu commented on July 24, 2024 2

Until there's a package, this seems to work just fine if you want a single command install that also works with virtualenv config files: pip install git+git://github.com/maximecb/gym-minigrid.git#egg=gym-minigrid

from minigrid.

lcswillems avatar lcswillems commented on July 24, 2024 1

I added you to both repositories!

I think this issue can be closed :)

from minigrid.

maximecb avatar maximecb commented on July 24, 2024

The problem is that other dependencies can be a moving target, something can still break even with pip packages. Though I agree this might help alleviate the problem.

How much work is it to create a pip package?

from minigrid.

lcswillems avatar lcswillems commented on July 24, 2024

You need to create an account on pypi, create a setup.py file, execute a command to build and another one to upload. This is detailed here: https://packaging.python.org/tutorials/packaging-projects/.

I don't know how long it takes, but I assume it takes a little bit of time the first time, and quite nothing after.

from minigrid.

lcswillems avatar lcswillems commented on July 24, 2024

I have just created a package for torch-rl. The process can seem complicated but it is in fact very simple (it took me 5 minutes to do it).

  1. Create an account on https://pypi.org/account/register/
  2. Install some packages pip3 install --upgrade setuptools wheel twine
  3. In the root of the package, execute python3 setup.py sdist bdist_wheel to build it.
  4. In the root of the package, execute twine upload dist/* to upload it.

Your package should be live at https://pypi.org/project/gym-minigrid/ .

I think it is worth to create a PyPI package because it will be easier for people to use it. Moreover, it is easy to version your package by changing the version in setup.py.

from minigrid.

lcswillems avatar lcswillems commented on July 24, 2024

I have just released that I could create the package for you (by executing the commands in the previous post). Hence, I created it. The package is now here: https://pypi.org/project/gym-minigrid/.

If you create an account to PyPI, I will add you as the owner of the package on PyPI.

I think you will also have to add:

build/*
dist/*

to your .gitignore.

Edit: I also did the same thing for gym-miniworld. The package is now here: https://pypi.org/project/gym-miniworld/ . I think you should also edit the .gitignore of this repository.

from minigrid.

maximecb avatar maximecb commented on July 24, 2024

Thanks @lcswillems, I registered account maximecb on pipy and added those items to the .gitignore.

from minigrid.

maximecb avatar maximecb commented on July 24, 2024

Awesome, thanks.

from minigrid.

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.