{ "info": { "author": "George L Fulk", "author_email": "fulkgl@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Games/Entertainment", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# PyBaccarat\nPlay the card game Baccarat\n\nTo check out a copy of the source:\n mkdir /github.com/fulkgl\n cd /github.com/fulkgl\n git clone https://github.com/fulkgl/PyBaccarat.git\n\nThis is an implementation of the card game Baccarat. It includes the code\nneeded to play a game interactively, replay a historical game, or play a\ngame with a particular system.\n\nThese programs have been built and tested with versions:\n Python 2.7.13\n Python 3.6.4\n\n

Updating this code

\n
    \n
  1. GIT (source control library). Check out a copy of the code.\n
    To keep the origin and structure of the code obvious, I start\nwith a $BASE (%BASE%) location. It can be a location of your choosing.\nAssign an environment variable to define the starting base location:\nin Linux export BASE=/home/george or Windows\nset BASE=\\users\\george. Windows will use %BASE%\ninstead of $BASE and the back-slash for directory\nseparator instead of forward slash.\n
    1. \n
    2. mkdir $BASE/github.com/fulkgl
    3. \n
    4. chdir $BASE/github.com/fulkgl
    5. \n
    6. git clone https://github.com/fulkgl/PyBaccarat.git
    7. \n
    \n
  2. Clean up temp files.
  3. \n
      \n
    1. del /s/q build dist pybaccarat.egg-info
    2. \n
    3. rmdir /s/q build dist pybaccarat.egg-info
    4. \n
    5. del /s/q tests\\*.pyc pybaccarat\\*.pyc
    6. \n
    \n
  4. Build the code
  5. \n
    python setup.py build bdist sdist\n
\n\n\n\n\n\nRun unit tests:\n cd base-location\n
python tests\\unittest_card.py\n
python tests\\unittest_shoe.py\n
python tests\\unittest_hand.py\n
python tests\\unittest_scoreboard.py\n\nTo check the coding standards and minor quality check:\n cd base-location\n
pycodestyle pybaccarat\\playingcards.py\n
pycodestyle pybaccarat\\baccarat.py\n
pycodestyle pybaccarat\\baccaratsystems.py\n
pycodestyle bin\\play_baccarat.py\n
pylint --rcfile=\\usr\\local\\bin\\pylint2.rc pybaccarat\\playingcards.py\n
pylint --rcfile=\\usr\\local\\bin\\pylint2.rc pybaccarat\\baccarat.py\n
pylint --rcfile=\\usr\\local\\bin\\pylint2.rc pybaccarat\\baccaratsystems.py\n
pylint --rcfile=\\usr\\local\\bin\\pylint2.rc bin\\play_baccarat.py\n\nTo run the build and make distribution packages:\n cd base-location\n
python setup.py sdist bdist_egg\n
rem dist/* contains source and binary distribution packages\n\n

Updating this code

\n
    \n\n\n
      \n
    1. git clone https://github.com/fulkgl/PyBaccarat.git\n
      This will make a copy of code from a remote host to local, \nsetting up 3 trees (working directory, index, and head). \nWhat you normally see is the working directory. The index and head\ntrees are inside the .git directory.
    2. \n
    3. git status
      Shows you files missing from git and files\nthat are changed.
    4. \n
    5. git diff README.md
      Git diff will show you\nchanged files differences.\n
    6. git add README.md
      Use the git add\ncommand to move changes from the working directory to the index.\nFiles that are new from the repo are initially checked in with\nthe git add command. Files that have been changed are also \ncheck in this way. You often use git add one file at a time since\nyou specify each file with this command. Use \"git reset file\"\nto reverse the effects of a git add command.
    7. \n
    8. git commit -m \"description\"
      Use the git commit \ncommand to move changes from the index to the head.\nYou will do this for all the git added files once.\nUse \"git checkout\" to reverse the effects of a git commit.
    9. \n
    10. git push origin master
      Use the git push command to \nmove changes from the head to\nthe remote host.
    11. \n
    12. git init is used to create a new repo the first time.\nAlso a git remote add origin is used the first time to\nassociate a connection to the remote host.
    13. \n
    14. browser https://github.com/fulkgl/PyBaccarat\n
      See that the latest things look correct on the webpage.
    15. \n
    \n\n
    twine upload dist/* -r legacy\n
  1. update PiPy
  2. \n
  3. build, test, install
  4. \n@rem python setup.py build bdist sdist upload\n
", "description_content_type": "", "docs_url": null, "download_url": "https://pypi.python.org/packages/source/P/pybaccarat/pybaccarat-0.18.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fulkgl/PyBaccarat", "keywords": "baccarat,game,playing cards,cards,card game", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pybaccarat", "package_url": "https://pypi.org/project/pybaccarat/", "platform": "", "project_url": "https://pypi.org/project/pybaccarat/", "project_urls": { "Download": "https://pypi.python.org/packages/source/P/pybaccarat/pybaccarat-0.18.tar.gz", "Homepage": "https://github.com/fulkgl/PyBaccarat" }, "release_url": "https://pypi.org/project/pybaccarat/0.18/", "requires_dist": null, "requires_python": "", "summary": "Play the card game Baccarat", "version": "0.18" }, "last_serial": 4178399, "releases": { "0.10": [ { "comment_text": "", "digests": { "md5": "525a6f9b6468a8b62b6002820c666136", "sha256": "6ef8345bb34f96edbc9c6dbf7e5194ad4dfcd3df044c3a1262d1a5d3eb708978" }, "downloads": -1, "filename": "pybaccarat-0.10-py2.7.egg", "has_sig": false, "md5_digest": "525a6f9b6468a8b62b6002820c666136", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 24501, "upload_time": "2017-11-20T22:58:35", "url": "https://files.pythonhosted.org/packages/36/f4/ef98097333ce59e1836b0f88857d22db2e367a9003e07be7f18d0e0190ce/pybaccarat-0.10-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "337f14cefdd71b709100c52a08bb4de5", "sha256": "fefdaa8c444292e8a53807f6fcd2495ed92e7647e3a2c6a0b3b304a720a55829" }, "downloads": -1, "filename": "pybaccarat-0.10.tar.gz", "has_sig": false, "md5_digest": "337f14cefdd71b709100c52a08bb4de5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11541, "upload_time": "2017-11-20T22:58:34", "url": "https://files.pythonhosted.org/packages/10/c6/493151ca60b47d9df45f4f11701a9d31ac26095a5e212d211dfd9bd40f21/pybaccarat-0.10.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "e89f99de69946bae64611abd778c011d", "sha256": "d6543b665e8e500a8fb2c01e56686000391655101e17a01dc67ecc3719515691" }, "downloads": -1, "filename": "pybaccarat-0.12.tar.gz", "has_sig": false, "md5_digest": "e89f99de69946bae64611abd778c011d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18624, "upload_time": "2018-06-08T16:42:15", "url": "https://files.pythonhosted.org/packages/77/98/ff8239a8c8d32b40c14bd3453cf6757fa0858ff901515636a8d6d6a83d8f/pybaccarat-0.12.tar.gz" } ], "0.18": [ { "comment_text": "", "digests": { "md5": "a7bda666613ebefc5fa408ae0f66178b", "sha256": "a7b754f8c485598c3aa6b7c8ef08c72fa9d10c4d358f93c5d44d5015380fe29c" }, "downloads": -1, "filename": "pybaccarat-0.18.tar.gz", "has_sig": false, "md5_digest": "a7bda666613ebefc5fa408ae0f66178b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210753, "upload_time": "2018-08-16T23:08:57", "url": "https://files.pythonhosted.org/packages/e7/f7/6271fbbf797e5daa578dfc231e8d45ee189375d537a3783b6b773ea645b9/pybaccarat-0.18.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a7bda666613ebefc5fa408ae0f66178b", "sha256": "a7b754f8c485598c3aa6b7c8ef08c72fa9d10c4d358f93c5d44d5015380fe29c" }, "downloads": -1, "filename": "pybaccarat-0.18.tar.gz", "has_sig": false, "md5_digest": "a7bda666613ebefc5fa408ae0f66178b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210753, "upload_time": "2018-08-16T23:08:57", "url": "https://files.pythonhosted.org/packages/e7/f7/6271fbbf797e5daa578dfc231e8d45ee189375d537a3783b6b773ea645b9/pybaccarat-0.18.tar.gz" } ] }