cs107-lecture-examples

Example codes used during Harvard CS107 lectures
git clone https://git.0xfab.ch/cs107-lecture-examples.git
Log | Files | Refs | README | LICENSE

README.md (654B)


      1 # A simple Python project for CS107/AC207
      2 
      3 Demonstration of PEP517 and PEP518 for package building and distribution.
      4 
      5 > See [https://packaging.python.org/tutorials/packaging-projects/](https://packaging.python.org/tutorials/packaging-projects/)
      6 
      7 ## Steps
      8 
      9 1. Clean previous distributions: `rm dist/*`
     10 2. Build the package release: `python -m build .`
     11 3. Upload to [test.pypi.org](test.pypi.org): `twine upload --repository testpypi dist/*`
     12 4. Repo: [https://test.pypi.org/project/Fall2022-CS107/](https://test.pypi.org/project/Fall2022-CS107/)
     13 
     14 ## Installing the package
     15 
     16 ```bash
     17 python -m pip install -i https://test.pypi.org/simple/ Fall2022_CS107
     18 ```