You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version has to be >=3.7 ot there will be imports issues!
20
20
21
21
Useful link to [create a python package from a git repository](https://towardsdatascience.com/build-your-first-open-source-python-project-53471c9942a7)
22
-
In particular, to upload
22
+
23
23
## Installation:
24
24
Using a conda environment is very much advised. Instructions here: [manage conda environments](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
25
25
- from a local repository (recommended if plans to work on it/regularly pull upgrades)
@@ -75,22 +75,21 @@ Description: # routines
75
75
setup(name='npyx',
76
76
version='1.0',... # change to 1.1 or whatev
77
77
```
78
-
Then re-generate the distribution files for the new version using twine:
78
+
Then delete the old distribution files before re-generating them for the new version using twine:
79
79
```
80
+
rm -r ./dist
81
+
rm -r ./build
82
+
rm -r ./npyx.egg-info
80
83
python setup.py sdist bdist_wheel # this will generate version 1.1 wheel without overwriting version 1.0 wheel in ./dist
81
84
```
82
-
Before pushing them to PyPI (it will keep track of older versions!)
85
+
Before pushing them to PyPI (older versions are saved online!)
83
86
```
84
87
$ twine upload dist/*
85
88
Uploading distributions to https://upload.pypi.org/legacy/
0 commit comments