Skip to content

Commit

Permalink
Repo is now on PyPl
Browse files Browse the repository at this point in the history
  • Loading branch information
greydanus committed May 20, 2024
1 parent de3767b commit 73c230b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Installing with `pip`
--------

``` shell
python -m pip install git+https://github.com/greydanus/mnist1d.git@master
pip install mnist1d
```

This allows you to build the default dataset locally:
Expand All @@ -52,6 +52,13 @@ x,y,t = data['x'], data['y'], data['t']
If you want to play around with this, see [notebooks/mnist1d-pip.ipynb](https://github.com/greydanus/mnist1d/blob/master/notebooks/mnist1d-pip.ipynb).


Alternatively, you can always `pip install` via the GitHub repo:

``` shell
python -m pip install git+https://github.com/greydanus/mnist1d.git@master
```


Comparing MNIST and MNIST-1D
--------

Expand Down
15 changes: 15 additions & 0 deletions pypl_notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SJG Notes for PYPL uploads:


* `git tag v0.0.1`
* `git push origin v0.0.1`
* (commit)
* `python3 -m build`
* Upload w/`twine` (Test)
* `python3 -m twine upload --repository testpypi dist/*`
* `python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps mnist1d`
* View on `https://test.pypi.org/project/mnist1d/`
* Upload w/`twine` (Main)
* `python3 -m twine upload dist/*`
* `python3 -m pip install mnist1d`
* View on `https://pypi.org/project/mnist1d/`
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ all = ["torch","notebook"]
[tool.setuptools]
packages = ["mnist1d"]

[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"

# [tool.setuptools.packages.find]
# where = ["mnist1d"]

Expand Down

0 comments on commit 73c230b

Please sign in to comment.