|
| 1 | +from setuptools import setup |
| 2 | + |
| 3 | +""" |
| 4 | +pip install twine |
| 5 | +pip install build |
| 6 | +
|
| 7 | +CREATING RELEASES------------------------------------------------------------------------------------------------------- |
| 8 | + - Update README.md version number |
| 9 | + - Update setup.cfg version number |
| 10 | + - Update goopylib/__init__.py __version__ variable |
| 11 | + - Run setup_extensions.py and build goopylib .pyd C extensions |
| 12 | + - Test all Example python files, run goopylib_tests.py and test functions on Windows |
| 13 | + - Run goopylib_tests.py countlines() function and update README.md with line count |
| 14 | + - Push to GitHub, pull from MacOS computer |
| 15 | + - Run setup_extensions.py and build goopylib .so C extensions |
| 16 | + - Test all Example python files, run goopylib_tests.py and test functions on MacOS |
| 17 | + - Push files to GitHub |
| 18 | + - Create GitHub Release |
| 19 | + - Update download_url in setup.cfg |
| 20 | + - Build goopylib Release |
| 21 | + - Upload goopylib Release on TestPyPi |
| 22 | + - Install and check from TestPyPi |
| 23 | + - Upload goopylib Release on PyPi |
| 24 | + - Test goopylib installation on Windows |
| 25 | + - Test goopylib installation on MacOS |
| 26 | + |
| 27 | + To create source distribution: |
| 28 | + 1. python -m build --sdist |
| 29 | + 2. python setup.py sdist |
| 30 | + |
| 31 | + To create (platform) wheel: |
| 32 | + 1. python -m build --wheel |
| 33 | + 2. python setup.py bdist_wheel |
| 34 | + |
| 35 | + To create release (wheel and source distribution): |
| 36 | + 1. python -m build |
| 37 | + 2. python setup.py sdist bdist_wheel |
| 38 | +
|
| 39 | + To check release: twine check dist/* |
| 40 | + To upload test release: twine upload --repository testpypi dist/* |
| 41 | + To install test release: pip install -i https://test.pypi.org/simple/ goopylib==version |
| 42 | + |
| 43 | + To upload release: twine upload dist/* |
| 44 | + To install release: pip install goopylib==version |
| 45 | + |
| 46 | + Username: BhavyeMathur |
| 47 | +""" |
| 48 | + |
| 49 | +setup(package_dir={':maths': 'goopylib/maths', ":objects": 'goopylib/objects', ":applications": 'goopylib/applications', |
| 50 | + ":sound": 'goopylib/sound', ":physics": 'goopylib/physics'}) |
0 commit comments